Bug 2155882

Summary: Raspberry Pi 4 does not boot with USB HDD attached
Product: [Fedora] Fedora Reporter: Joshua Noeske <fedora>
Component: uboot-toolsAssignee: Peter Robinson <pbrobinson>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: dan, dennis, jean, jordan, miwagner1, nrevo, ole.d, pbrobinson, pwhalen
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joshua Noeske 2022-12-22 18:05:43 UTC
Description of problem:
When I attach an USB HDD to my Raspberry Pi 4, it does not boot any more. When U-Boot initialises the USB controller, it shows:

scanning bus xhci_pci for devices... Device NOT ready
    Request Sense returned 02 04 01

Afterwards, nothing happens.

Version-Release number of selected component (if applicable):
The package uboot-images-armv8 (which I could not select as component, sadly) is at version 2022.10-1.fc37.

How reproducible:
I am not sure what exactly is meant with that, but this happens every time with my Pi.


Steps to Reproduce:
1. Install Fedora Linux on an SD Card as described in https://docs.fedoraproject.org/en-US/quick-docs/raspberry-pi/
2. Finish initialisation.
3. Plug HDD and reboot the Pi.

Actual results:
Pi does not boot and is stuck with the message above being the last thing printed on the screen

Expected results:
The Pi boots just fine.

Additional info:
While this happens, the HDD is in the spin-up phase, thus I think this might mean that the device is not ready *yet*. But the boot process does not continue by itself, and since I want to use the Pi headless without physical access all the time, it is no solution to always unplug the HDD before rebooting.
I have not tried it with another HDD since I only have one, but it is brand-new and it works fine with other devices.
Moreover, I have tried connecting an USB-stick during boot, and this also works fine.

Comment 1 Joshua Noeske 2022-12-22 18:20:17 UTC
Sorry, what I forgot to mention: I used the aarch64 raw image of Fedora, not the arm32 variant.

Comment 2 Peter Robinson 2022-12-25 03:57:21 UTC
What sort of PSU are you running the RPi with, is the HDD self powered or USB powered. What is the make/model.

Comment 3 Joshua Noeske 2022-12-25 08:45:05 UTC
I am using the official EU PSU for the RPi. The HDD is a WD Elements Portable 2TB, so it does not have an external PSU. 
I successfully ran the same setup with Ubuntu Server/Raspberry Pi OS installed on the Pi. The HDD was connected at all times and the Pi was able to boot successfully with it connected and spinning up during boot.

Comment 4 miwagner1 2023-04-13 02:54:57 UTC
I have the exact same results with a couple of my pi4s and USB-powered HDD which have been used to USB boot Raspberry pi os in the Past.
F37 IoT with all of my WD drives.