On Thu, Jul 25, 2013 at 4:04 PM, Egli, Samuel <samuel.e...@siemens.com> wrote:
> Hi all,
>
> I want to report (what I belief is) a bug on the windows implementation  of 
> libusbx.
> The issue arose using dfu-util (which uses libusbx) when changing from an 
> older
> U-Boot version (v2011-09) to the current one (v2013-07). This topic was also
> discussed on dfu-util mailing list.
>
> I seems to be an windows issue because on linux I don't have any problem. 
> However,
> with older dfu implementation on u-boot it worked fine on both OSes.
>
> So I did tests with latest release libusbx-1.0.16. I compiled this for linux 
> and windows. Debug code added by me is prefixed with "DDD->" and is placed in
> dfu-util code.
>
> Log for dfu-util -a 1 -D MLO -v -v -v
>
> Linux: http://pastebin.com/iq80kg0p -> ok
> Win:   http://pastebin.com/Ax7RDFHk -> fails
>
>
> Here the log for lsusb on linux for the different u-boot versions
>
> U-Boot v2011-09: http://pastebin.com/jeC01WxQ
> U-Boot v2013-07: http://pastebin.com/mvNLkUAs
>
>
> It is interesting to make diff between the last two logs.
>
> I'm assuming that there is some problem with bConfigurationValue in the new 
> U-Boot version. But I still need to further investigate on this.
> To me it looks like, even though bNumConfigurations=1 in both u-boot 
> versions, libusb has a problem on windows (only) that bConfigurationValue=2.
>
> I added some debug code windows_usb.c. This shows that
> "config_index >= dev->num_configurations" becomes
> "1 >= 1"
> and finally leads to return LIBUSB_ERROR_INVALID_PARAM.
>
> I will try to "fix" the device descriptor on the u-boot side. Anyway it's
> probably good let you know about this.
>
> Best
>  Sam

Adding libusbx mailing list in the CC.


-- 
Xiaofan

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to