raspberrypi / usbboot

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

Add option to look for CM with specific USB path. #66

Closed burtyb closed 2 years ago

burtyb commented 3 years ago

Adds "-p" option with works similar to the port number but accepts a USB pathname (like 1-1.3.1).

nbuchwitz commented 2 years ago

@pelwell /others Do you see any chance that this can get a review? I think filtering by usb paths can be quite useful

timg236 commented 2 years ago

Can you give an example about how this would be used?

nbuchwitz commented 2 years ago

We have multiple automatic provisioning systems for CM/CM3/CM4S which consists out of 8 SO-DIMM sockets attached to 2 USB hubs. By specifying the port with a path, I can run different instances for the ports. The current approach with -1 - -9 doesn't work here as the devices are scattered over different hubs and ports

timg236 commented 2 years ago

ok LGTM

earcam commented 1 year ago

@burtyb you've made my day, thank you (wish I'd run rpiboot --help and spotted the -p option instead of losing hours on interweb)