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

Failed to read correct length, returned 0 #200

Closed
CHHE-ledtec opened this issue Feb 9, 2024 · 2 comments
Closed

Failed to read correct length, returned 0 #200

CHHE-ledtec opened this issue Feb 9, 2024 · 2 comments

Comments

@CHHE-ledtec
Copy link

Describe the bug

RPIBOOT: build-date Feb 9 2024 version 20221215~105525 20a431c
Waiting for BCM2835/6/7/2711/2712...
Loading embedded: bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

chhe@pop-os:/usbboot$ sudo ./rpiboot -d msd
RPIBOOT: build-date Feb 9 2024 version 20221215
105525 20a431c
Loading: msd/bootcode.bin
Loading: msd/bootcode4.bin
Waiting for BCM2835/6/7/2711/2712...
Loading: msd/bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

chhe@pop-os:/usbboot$ sudo ./rpiboot -d recovery
RPIBOOT: build-date Feb 9 2024 version 20221215
105525 20a431c
Loading: recovery/bootcode4.bin
Waiting for BCM2835/6/7/2711/2712...
Loading: recovery/bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

Steps to reproduce the behaviour

plugged in new cm4 with waveshare baseboard b

tried it with 2 new units

chhe@pop-os:/usbboot$ sudo ./rpiboot
RPIBOOT: build-date Feb 9 2024 version 20221215
105525 20a431c
Waiting for BCM2835/6/7/2711/2712...
Loading embedded: bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

chhe@pop-os:/usbboot$ sudo ./rpiboot -d msd
RPIBOOT: build-date Feb 9 2024 version 20221215
105525 20a431c
Loading: msd/bootcode.bin
Loading: msd/bootcode4.bin
Waiting for BCM2835/6/7/2711/2712...
Loading: msd/bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

chhe@pop-os:/usbboot$ sudo ./rpiboot -d recovery
RPIBOOT: build-date Feb 9 2024 version 20221215
105525 20a431c
Loading: recovery/bootcode4.bin
Waiting for BCM2835/6/7/2711/2712...
Loading: recovery/bootcode4.bin
Sending bootcode.bin
Failed to read correct length, returned 0

Device(s)

Raspberry Pi CM4

Compute Module IO board.

Waveshare B<se Board B

RPIBOOT logs

No response

Kernel logs

[4565296.966249] usb 1-6.7.2: New USB device found, idVendor=0a5c, idProduct=2711, bcdDevice= 0.00
[4565296.966257] usb 1-6.7.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[4565296.966260] usb 1-6.7.2: Product: BCM2711 Boot
[4565296.966263] usb 1-6.7.2: Manufacturer: Broadcom
[4565296.966266] usb 1-6.7.2: SerialNumber: f784ddd8
[4565492.086412] usb 1-6.7.2: USB disconnect, device number 119
[4567716.518542] usb 1-6.7.2: new full-speed USB device number 120 using xhci_hcd
[4567716.727869] usb 1-6.7.2: config index 0 descriptor too short (expected 55, got 32)
[4567716.727878] usb 1-6.7.2: config 1 interface 0 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64
[4567716.727882] usb 1-6.7.2: config 1 interface 0 altsetting 0 endpoint 0x2 has invalid maxpacket 512, setting to 64
[4567716.743847] usb 1-6.7.2: New USB device found, idVendor=0a5c, idProduct=2711, bcdDevice= 0.00
[4567716.743852] usb 1-6.7.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[4567716.743855] usb 1-6.7.2: Product: BCM2711 Boot
[4567716.743857] usb 1-6.7.2: Manufacturer: Broadcom
[4567716.743860] usb 1-6.7.2: SerialNumber: f784ddd8

Device UART logs

No response

@timg236
Copy link
Collaborator

timg236 commented Feb 9, 2024

This sounds like a hardware issue with the USB cable / WaveShare board assuming that the host computer is an RPi

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

@timg236
Copy link
Collaborator

timg236 commented Nov 5, 2024

Closed due to inactivity

@timg236 timg236 closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants