linux-msm / qdl

BSD 3-Clause "New" or "Revised" License
225 stars 79 forks source link

added kernel detach to avoid error: LIBUSB_ERROR_BUSY #64

Closed AMV007 closed 5 months ago

AMV007 commented 5 months ago

fixed kernel claim increased timeout for bulk transfer, not enough 100 ms

andersson commented 5 months ago

We did some testing and have confirmed that the LIBUSB_ERROR_BUSY is something we want, so I was hoping to merge that. Could you please provide a small problem description and split out the timeout change to its own PR?

AMV007 commented 5 months ago

ok, created separate commit only for LIBUSB_ERROR_BUSY : https://github.com/linux-msm/qdl/pull/68

I got mate, who can reflash over Windows with QFIL without problems, but at linux got constant timeout in random places, usually at big image part 2 gb:

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>

LOG: INFO: Calling handler for program FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>

ERROR: n = -1, errno = 110 (Connection timed out) qdl: failed to write: Connection timed out