On Sun, Jun 13, 2010 at 11:51 PM, Stacey Sheldon <[email protected]> wrote: > Xiaofan Chen wrote: >> I see. Ubuntu (as well as Debian) still ships libusb-0.1 and not >> libusb-compat-0.1. I remember the vanilla libftdi did not work >> with libusb-compat-0.1. > > Yeah, I linked to the libusb-compat-0.1 source because I couldn't find a > web link to the 0.1 code. I confirmed that the usb.h file and the > relevant structs are identical to the one on installed on my machine.
The old 0.1 svn repository is still there. http://libusb.svn.sourceforge.net/viewvc/libusb/trunk/libusb/usb.h.in?revision=573&view=markup > The OpenPilot project has quite a few developers using these JTAGs on > windows. I think they're all using pre-built binary versions of OpenOCD > so they're not really in a position to pick up my patch. > > If you could build a new binary of OpenOCD against libusb-0.1 that > included my patch and make it available to us, I'm sure I could find > testers on various versions of windows to provide you with a report. > Would that be possible? Yes that is possible. I will try to do that. Meanwhile, you can point them to here and maybe some of them can build openocd with libftdi and libusb-win32. http://forum.sparkfun.com/viewtopic.php?f=18&t=11221 >> libftdi-1.0 is using libusb-1.0. But I have some problems >> to build the git tree under Cygwin due to Cmake issues. But I did build it with a bootstrapped version at one time. > If we get an OpenOCD 0.4 build against the old libusb-win32 (0.1) and > the old libftdi, that would give us a way of testing if this works on > windows. Porting this functionality to work against the new libusb-1.0 > library shouldn't be too difficult once we know the general idea works > on windows. > Actually if you link against libftdi-1.0, you will being using libusb-1.0, no matter it is Linux or Windows. Last time I tried it, there is no speed difference to use libftdi-1.0 under Linux. But that may well be due to the fact that OpenOCD does not make use of the async transfer capability of libftdi-1.0 (or libftdi under Linux which does have async capability as well, not libftdi under Windows). http://www.intra2net.com/en/developer/libftdi/repository.php libftdi-1.0 is drop-in replacement of libftdi right now. But it may extend the API. http://www.intra2net.com/en/developer/libftdi/repository.php -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
