Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support macos: use libusb instead of udev #12

Closed
wants to merge 1 commit into from

Conversation

notly
Copy link

@notly notly commented May 29, 2020

Signed-off-by: hello [email protected]

@jwinarske
Copy link

jwinarske commented Apr 22, 2021

@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 -> nullog#1

@jwinarske
Copy link

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

@jeanlego jeanlego mentioned this pull request Jul 15, 2021
@konradybcio
Copy link
Member

superseded by #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants