linux-msm / qdl

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

support macos: use libusb instead of udev #12

Closed notly closed 1 month ago

notly commented 4 years ago

Signed-off-by: hello hello@ifnot.cc

jwinarske commented 3 years ago

@notly I just tried your branch. I don't think libusb is being cleaned up properly. After qdl exits I attempt to run it again and get:

qdl: libusb_claim_interface: Device or resource busy

Opened PR which fixes this -> https://github.com/nullog/qdl/pull/1

jwinarske commented 3 years ago

Did some testing on this with UFS target (USB 3.0 Fedora 33). Same flat build folder for both tests, files in question have been un-sparsed using img2img.

I've included the largest deltas.

The libusb branch should be re-based to tip of tree, and pick up the larger buffer size in case of SS.

system_a =  1,610,612,736 bytes
userdata =  1,999,998,976 bytes
modem_a =      62,558,208 bytes
dsp_a =        67,108,864 bytes

udev (master)

[PROGRAM] flashed "system_a" successfully at 12582kB/s [PROGRAM] flashed "userdata" successfully at 12440kB/s [PROGRAM] flashed "modem_a" successfully at 12218kB/s [PROGRAM] flashed "dsp_a" successfully at 10922kB/s

libusb

[PROGRAM] flashed "system_a" successfully at 12098kB/s [PROGRAM] flashed "userdata" successfully at 12056kB/s [PROGRAM] flashed "modem_a" successfully at 15273kB/s [PROGRAM] flashed "dsp_a" successfully at 13107kB/s

konradybcio commented 1 month ago

superseded by #59