raspberrypi / usbboot

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

Selecting USB port message loop #72

Closed JE-Tv1 closed 2 years ago

JE-Tv1 commented 3 years ago

When I use the option to look for CMs attached to USB port, the Rpiboot continues to output "Loading embedded: bootcode.bin". I am currently using a raspberry pi 4 B to boot a CM3+ with CMIO.

Is there any way to not get these infinite messages and just like the usual blank waiting?

RpiBootStuck

PCSerra commented 3 years ago

I have the same issue the tool at https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe on windows 10, trying to program a CM3+ via USB.

stephenglynch commented 3 years ago

Also have this issue on windows 10 with a CM4 via USB

vanarebane commented 3 years ago

TL:DR: Just use another USB port on the master device

Same issue here.

I have a 1G RAM, 8G eMMC without wifi module that works fine on the official IO board.

Then I have a 4G RAM, 8G eMMC with wifi that has the same loading loop as others here.

So only difference is the board, drivers and IO board is working.

EDIT: Alright, fixed the problem when reading the official guide:

Note There is a bug in the BCM2835 (CM1) bootloader which returns a slightly incorrect USB packet to the host. Most USB hosts seem to ignore this benign bug and work fine; we do, however, see some USB ports that don't work due to this bug. We don't quite understand why some ports fail, as it doesn't seem to be correlated with whether they are USB2 or USB3 (we have seen both types working), but it's likely to be specific to the host controller and driver. This bug has been fixed in BCM2837.

salmanfarisvp commented 3 years ago

@vanarebane can you share how you solved the issue?

Edit: Solved it by connecting a different USB Port

vanarebane commented 3 years ago

@salmanfarisvp that's right, just used another port. Maybe windows assigns some drivers to specific port? I have seen some other device drivers also fixed by switching ports

salmanfarisvp commented 3 years ago

@vanarebane Thanks 👍. I was using balena Fin v1.

CrowntailTW0608 commented 2 years ago

I've the same issue and I removed all USB devices (including mouse) to solved the problem

lenkapolaskova commented 2 years ago

Hello, I have the same problem. Selecting another port does not solve the problem.

cvabc commented 2 years ago

Sample problem here on a windows 11 pc for cm4.

timg236 commented 2 years ago

No response from OP. Closing.

N.B. We can't provide support for the multitude of Windows versions and USB versions. I recommend using a Raspberry Pi or Linux PC as the host and avoiding hubs.

nerososft commented 2 years ago

Sample problem here on a windows 11 pc for cm4.

me too

carlonluca commented 2 years ago

For those with the same problem in a VMWare machine, I solved by setting the USB to version 2 instead of 3 in the machine settings.

bigttys0 commented 1 year ago

Data packets sent to and from the USB port must be exactly 8 bytes in size. Any packets sent with a size that is not 8 bytes will not be read correctly by the USB port and may cause errors or data loss. To ensure reliable communication between the USB port and the device, it is important to ensure the exact size of data packet is sent.

Or, use USB2.

wangchaoHZ commented 1 year ago

i have the same issue too,CM4 on Windows 10