respeaker / mic_array_dfu

ReSpeaker Microphone Array DFU tool for firmware upgrade
19 stars 22 forks source link

LIBUSB_ERROR_BUSY error on Linux Mint #4

Closed hamishfagg closed 7 years ago

hamishfagg commented 7 years ago

Using this tool does not work on my linux install, it fails with LIBUSB_ERROR_BUSY.

It can be fixed by adding a call to libusb_detach_kernel_driver() but I don't know enough about libUSB to make a PR.

xiongyihui commented 7 years ago

Hello @IVData It would be helpful if you could tell where to add the libusb_detach_kernel_driver()

hamishfagg commented 7 years ago

Probably around line 397 in xmosdfu.c. I don't know the side-effects of doing this though.

xiongyihui commented 7 years ago

just added it at https://github.com/respeaker/mic_array_dfu/blob/master/src/xmosdfu.c#L101