raspberrypi / usbboot

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

rpiboot: Allow selecting by serial number #206

Closed tdewey-rpi closed 6 months ago

tdewey-rpi commented 6 months ago

Add a new command line flag to select the compute module by serial number. This requires walking the USB device list, finding the serial of each and comparing it against the supplied string.

This mechanism does not bypass the VID/PID checks.

Untested at time of PR. Review with extreme caution.

tdewey-rpi commented 6 months ago

Aiming to test this out tomorrow AM GMT.

timg236 commented 6 months ago

Seems ok