U-Boot RPi SSD-USB boot issues

Mike Hoogstraten mike.hoogstraten at walsumlaan.nl
Fri Nov 27 14:10:29 CET 2020


Good day,

I ran into a problem with a Raspberry Pi 4 setup and this seems to be a
U-boot issue.

Setup:

RPi 4 - 4GB
Home assistant 5.x / 64 bits
Startech USB SATA
Crucial MX500 SSD
Arduino Mega USB connected

The problem is also mentioned at the hassio github:

https://github.com/home-assistant/operating-system/issues/1011

When booting the RPi with HassOS Development 5 build 5 I get the following
error:

U-Boot 2020.10 (Nov 11 2020 - 13:45:31 +0000)

DRAM:  3.9 GiB
RPI 4 Model B (0xc03112)
MMC:   mmcnr at 7e300000: 1, emmc2 at 7e340000: 0
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet at 7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... WARN halted endpoint, queueing URB
anyway.
Unexpected XHCI event TRB, skipping... (3aef7cf0 00000000 13000000 03008400)
BUG at drivers/usb/host/xhci-ring.c:498/abort_td()!
BUG!
resetting ...


I have update the U-Boot using Ubuntu to the latest RC and still have this
problem:

U-Boot 2021.01-rc2 (Nov 27 2020 - 13:05:06 +0100)

DRAM:  3.9 GiB
RPI 4 Model B (0xc03112)
MMC:   mmcnr at 7e300000: 1, emmc2 at 7e340000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   eth0: ethernet at 7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... WARN halted endpoint, queueing URB
anyway.
Unexpected XHCI event TRB, skipping... (3aee6130 00000000 13000000 03008400)
BUG at drivers/usb/host/xhci-ring.c:500/abort_td()!
BUG!
resetting ...


This all occurs when the Arduino Mega is connected using USB to the RPi.

When the Arduino Mega is not connected the RPi boots fine like this:

DRAM:  3.9 GiB
RPI 4 Model B (0xc03112)
MMC:   mmcnr at 7e300000: 1, emmc2 at 7e340000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   eth0: ethernet at 7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!

Device 0: Vendor: ASMT     Rev: 0    Prod: ASM105x
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
... is now current device
Scanning usb 0:1...
Found U-Boot script /boot.scr
2398 bytes read in 1 ms (2.3 MiB/s)
## Executing script at 02400000

Device 0: Vendor: ASMT     Rev: 0    Prod: ASM105x
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
... is now current device
loading env...

usb read: device 0 block # 1214464, count 32 ... 32 blocks read: OK
## Error: bad CRC, import failed
Found valid slot A, 2 attempts remaining
storing env...

usb write: device 0 block # 1214464, count 32 ... 32 blocks written: OK
Loading kernel
17396224 bytes read in 60 ms (276.5 MiB/s)
 Starting kernel
## Flattened Device Tree blob at 2eff4100
   Booting using the fdt blob at 0x2eff4100
   Using Device Tree in place at 000000002eff4100, end 000000002f002fed

Starting kernel ...


Is this a U-Boot problem? I hope I provided enough information and this
helps the U-Boot project.

Best regards,

Mike (Miviho)


More information about the U-Boot mailing list