Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Embedded: Pi 4: Imager doesn't see my USB SATA drive #795

Open
andrum993 opened this issue Jan 29, 2024 · 11 comments
Open

[BUG] Embedded: Pi 4: Imager doesn't see my USB SATA drive #795

andrum993 opened this issue Jan 29, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@andrum993
Copy link

Describe the bug
Pi 4B 8GB. Running Network Install (embedded Imager) to do a reinstall on my USB-connected SATA drive. Bridge is ASM1153 to a Kingston A400 series 2.5" SATA drive.

To Reproduce

  1. Boot Pi 4 with no boot media present and Ethernet connected.
  2. Hold shift to enter Network Install.
  3. Plug in USB SATA drive.
  4. Click 'Choose Storage' button in Imager.

or

  1. Boot Pi 4 with USB SATA drive present but no Pi boot files present.
  2. Hold shift to enter Network Install.
  3. Click 'Choose Storage' button in Imager.

Expected behaviour
Drive shows up in Imager's 'Storage' dialog. Can image drive OK.

Actual behaviour
Imager's 'Storage' dialog is empty. Cannot image drive using embedded Imager.

@andrum993 andrum993 added the bug Something isn't working label Jan 29, 2024
@maxnet
Copy link
Collaborator

maxnet commented Jan 29, 2024

Suspect the problem is that it is an UAS protocol bridge claiming the drive is non-removable.

Can you try if booting the following files from a FAT32 formatted SD card works better?

embedded-20240129.zip

@andrum993
Copy link
Author

andrum993 commented Jan 29, 2024 via email

maxnet added a commit that referenced this issue Jan 29, 2024
@maxnet
Copy link
Collaborator

maxnet commented Jan 29, 2024

It was working previously with the embedded Imager, so something's changed.

Probably the lsblk version, which we outsource disk enumeration to.
Arch users also complained about the newer versions indicating drives were non-removable that were flagged as removable before.

Is there a way of getting to a shell within the Network Install environment to have a look?

Yes, put blockingshell in cmdline.txt
Or set console to serial, and use debugshell instead

There are more problems with UAS drives.
My JMicron based bridge gives write errors half way through Imager writing the image.
Am a bit tempted to disable UAS support in kernel, to force it to fallback to USB mass storage protocol instead.
However that may only delay the problem. User will then likely still have problems after booting into the final OS.

@andrum993
Copy link
Author

andrum993 commented Jan 29, 2024

Thanks - the files in the zip file worked - drive shows up and I can successfully image the drive 👍

@tdewey-rpi
Copy link
Collaborator

@andrum993 Just confirming - did you later encounter the issues that @maxnet suggested may occur?

@andrum993
Copy link
Author

@andrum993 Just confirming - did you later encounter the issues that @maxnet suggested may occur?

No. This is a known working setup - the only part that wasn't working was embedded Imager, until maxnet fixed it.

I was waiting until the fix showed up in the Network Install version of embedded Imager before I closed this issue. I've just checked, and the fix has not yet made it to Network Install, so I would propose to keep this issue open.

@tdewey-rpi
Copy link
Collaborator

Agreed - I'll hold it open until we've actually got the network install version out.

@andrum993
Copy link
Author

Just a heads up that Network Install is now enabled in the default bootloader EEPROM on Pi 5, but this bug prevents its use on any drive that Linux uses UAS on. Hopefully embedded Imager will get updated soon🤞

@andrum993
Copy link
Author

Hi @tdewey-rpi. Do you have an ETA for when this fix will find its way into Network Install - starting to get a bit annoying.

@tdewey-rpi
Copy link
Collaborator

Hi @tdewey-rpi. Do you have an ETA for when this fix will find its way into Network Install - starting to get a bit annoying.

I've not had the bandwidth to look at this yet, but will take a look this week as it may address a range of concerns with the embedded Imager.

@JackDean
Copy link

JackDean commented Jun 8, 2024

I can confirm that this is still broken for PI 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants