I have built with cross-compiler mingw for the target platform (Windows). I have patched the mentioned fragment to ignore the error in libusb_set_configuration. With this change I am able to upload the firmware. But the driver doesn't receive any data from the device. (see kingst.log)
The patch ignores the return value of libusb_set_configuration(). All further calls to the USB library are successful: ezusb_reset(hdl,1) ezusb_install_firmware(ctx, hdl, name) ezusb_reset(hdl,0) I am not sure what configuration should be set here. I would be interesting to see a successful operation with that device on a Linux PC hardware. Could you generate a similar log with "sigrok-cli --scan" and send it to me? >Probably ez-usb devices were never properly tested on Windows. >Another option would be using some other external program to upload >this firmware to EZ / FX2 chip you have. Well, at least the log tells me that the firmware upload was successful. Best regards, Helge -----Original Message----- From: Paul Fertser [mailto:fercer...@gmail.com] Sent: Sunday, October 18, 2020 12:08 PM To: Helge Kruse Cc: sigrok-devel@lists.sourceforge.net Subject: Re: [sigrok-devel] Getting firmware for Kingston LA2016 On Sun, Oct 18, 2020 at 11:46:43AM +0200, Helge Kruse wrote: > Anyway, the nightly build should support the LA2016. The --scan result is > attached. The essential lines are probably: > sr: [00:01.403000] kingst-la2016: Found a LA2016 device. > sr: [00:01.403000] kingst-la2016: device at 'usb/2-8' has no firmware > loaded! > sr: [00:01.404000] ezusb: uploading firmware to device on 2.11 > sr: [00:01.405000] ezusb: Unable to set configuration: > LIBUSB_ERROR_INVALID_PARAM Good progress. I suggest you comment out this if block: https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/ezusb.c;h=c2d270c4f8 5164298f626aa7de3826bc8e1ddd80;hb=f2cd2debf9dcbf0e83ec70d8ea41d8421a400dfd#l 126 This might be related to https://github.com/libusb/libusb/issues/743 Probably ez-usb devices were never properly tested on Windows. Another option would be using some other external program to upload this firmware to EZ / FX2 chip you have. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com
kingst-la2016.log
Description: Binary data
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel