raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
913 stars 231 forks source link

Failed to read correct length, returned 0 #226

Closed CHHE-ledtec closed 3 months ago

CHHE-ledtec commented 3 months ago

Describe the bug

getting

sudo ./rpiboot RPIBOOT: build-date Jun 10 2024 version 20240422~085300 4a3d3117 Waiting for BCM2835/6/7/2711/2712... Loading embedded: bootcode4.bin Sending bootcode.bin Failed to read correct length, returned 0

On a Completly New cm4 that is placed on a waveshare base board A

Steps to reproduce the behaviour

insert CM4 to base board PLugg base board with usb

run command

sudo ./rpiboot in folder

Device(s)

Raspberry Pi CM4

Compute Module IO board.

cm4 waveshare base board A -- same error with B

RPIBOOT logs

sudo ./rpiboot RPIBOOT: build-date Jun 10 2024 version 20240422~085300 4a3d3117 Waiting for BCM2835/6/7/2711/2712... Loading embedded: bootcode4.bin Sending bootcode.bin Failed to read correct length, returned 0

Kernel logs

[868542.956994] usb 1-6.7.4: USB disconnect, device number 78 [868584.724235] usb 1-6.7.1.3: USB disconnect, device number 76 [868787.348419] usb 1-6.7.1.3: new full-speed USB device number 79 using xhci_hcd [868787.553603] usb 1-6.7.1.3: config index 0 descriptor too short (expected 55, got 32) [868787.553611] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64 [868787.553615] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x2 has invalid maxpacket 512, setting to 64 [868787.569579] usb 1-6.7.1.3: New USB device found, idVendor=0a5c, idProduct=2711, bcdDevice= 0.00 [868787.569586] usb 1-6.7.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [868787.569589] usb 1-6.7.1.3: Product: BCM2711 Boot [868787.569591] usb 1-6.7.1.3: Manufacturer: Broadcom [868787.569593] usb 1-6.7.1.3: SerialNumber: a35fe646 [868840.978260] usb 1-6.7.1.3: USB disconnect, device number 79 [868858.660424] usb 1-6.7.1.3: new full-speed USB device number 80 using xhci_hcd [868858.869488] usb 1-6.7.1.3: config index 0 descriptor too short (expected 55, got 32) [868858.869497] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64 [868858.869501] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x2 has invalid maxpacket 512, setting to 64 [868858.885835] usb 1-6.7.1.3: New USB device found, idVendor=0a5c, idProduct=2711, bcdDevice= 0.00 [868858.885840] usb 1-6.7.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [868858.885844] usb 1-6.7.1.3: Product: BCM2711 Boot [868858.885847] usb 1-6.7.1.3: Manufacturer: Broadcom [868858.885849] usb 1-6.7.1.3: SerialNumber: a35fe646 [868876.054638] usb 1-6.7.1.3: USB disconnect, device number 80 [869097.512438] usb 1-6.7.1.2: new full-speed USB device number 81 using xhci_hcd [869097.714352] usb 1-6.7.1.2: not running at top speed; connect to a high speed hub [869097.758380] usb 1-6.7.1.2: New USB device found, idVendor=0fce, idProduct=e134, bcdDevice=94.54 [869097.758387] usb 1-6.7.1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=5 [869097.758391] usb 1-6.7.1.2: Product: CCR-80 [869097.758394] usb 1-6.7.1.2: Manufacturer: SEMC [869097.758396] usb 1-6.7.1.2: SerialNumber: 094107E80206A74 [869097.771478] usb-storage 1-6.7.1.2:1.0: USB Mass Storage device detected [869097.771715] scsi host9: usb-storage 1-6.7.1.2:1.0 [869182.128447] usb 1-6.7.1.3: new full-speed USB device number 82 using xhci_hcd [869182.333003] usb 1-6.7.1.3: config index 0 descriptor too short (expected 55, got 32) [869182.333011] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64 [869182.333014] usb 1-6.7.1.3: config 1 interface 0 altsetting 0 endpoint 0x2 has invalid maxpacket 512, setting to 64 [869182.348979] usb 1-6.7.1.3: New USB device found, idVendor=0a5c, idProduct=2711, bcdDevice= 0.00 [869182.348986] usb 1-6.7.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [869182.348989] usb 1-6.7.1.3: Product: BCM2711 Boot [869182.348991] usb 1-6.7.1.3: Manufacturer: Broadcom [869182.348993] usb 1-6.7.1.3: SerialNumber: a35fe646

Device UART logs

no uart cable avliable

timg236 commented 3 months ago

This appears to be an issue specific to your hardware setup rather than the software in this repo.

Please try the troubleshooting guide https://github.com/raspberrypi/usbboot?tab=readme-ov-file#troubleshooting

or the Raspberry Pi forums for support questions https://forums.raspberrypi.com/viewforum.php?f=98&sid=38132b53425df4ec7180bdadb0a85eda