raspberrypi / usbboot

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

Fix error reporting. #49

Open ED6E0F17 opened 4 years ago

ED6E0F17 commented 4 years ago

Failure may come from the device or the host, so report both return codes.

"Failed : -4,0x0" indicates "LIBUSB_ERROR_NO_DEVICE", which I am seeing 25% of the time regardless of the length of delay before requesting status, but does not mean that uploading bootcode.bin has failed.