raspberrypi / usbboot

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

How to check if ./usbboot/rpiboot has already been ran? #139

Closed iris2312 closed 1 year ago

iris2312 commented 2 years ago

I am using a Raspberry Pi and rpi-imager to flash images to raspberry pi Compute Modules (CM3s). I notice that it hangs if I run usbboot/rpiboot more than once, without unmounting a CM3. How can I handle this more gracefully by checking (using code) if it was already ran once?

pelwell commented 1 year ago

This is not possible, except by adding a timeout or detection of a specific USB gadget that all images would have to run. See #179.