linux-msm / qdl

BSD 3-Clause "New" or "Revised" License
196 stars 76 forks source link

Transition to libusb and support targeting device by serial number #59

Closed quic-bjorande closed 1 month ago

quic-bjorande commented 1 month ago

Transitioning to libusb avoids open-coded USB descriptor parsing and removes the strong dependency on the Linux-specific ioctl-based interface. This should allow QDL to run on other OSs, it cleans up the code a bit, and it allow us to more conveniently implement reading of the string descriptors, for a serial number comparison, in the support for selecting a specific board when more than one is available.

EmbeddedAndroid commented 1 month ago

Gave this a spin on my Mac M3, built and runs. I'll try flashing tonight to confirm full function. Thanks @quic-bjorande!

ricardosalveti commented 1 month ago

That's awesome, will give it a try as well, thanks for doing the work!

ricardosalveti commented 1 month ago

Tested flashing lmp/yocto image on a mac m3 and worked fine!