On Sun, Jun 13, 2010 at 10:54 AM, Stacey Sheldon <[email protected]> wrote:
> I don't have a windows machine so I'm unable to test my changes in that
> environment.  This has been tested on ubuntu 9.10 (karmic).

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.

> From reading the docs, I had concluded that the existing strategy for
> dealing with windows/linux compatibility for usb device access was to
> use libusb.  If that's not the case then there's probably no chance that
> this patch will work on windows.

Yes the compatibility is through libftdi and libusb-0.1/libusb-win32.

> Wherever possible, I've used publicly exported APIs from libftdi and
> whenever I needed to dig into struct usb_device and struct usb_bus, I
> only used struct members that are defined in both libusb[1] and
> libusb-win32[2].  I'd say there's at least a decent chance that it's
> portable anywhere libusb is available.

Agreed. Maybe I was wrong and your patch will work. But testing under
Windows would still be good to have. I do not have the hardware
to test though.

> In the libusb 1.0 release stream, it looks like the bus number and the
> device address are formally exposed through these API functions:
>  libusb_get_bus_number()
>  libusb_get_device_address()
> The 1.0 libraries are available on ubuntu but I didn't see any mention
> of the 1.0 series being available on windows.

It is in the process of integration.
http://www.libusb.org/
http://www.libusb.org/wiki/windows_backend

libftdi-1.0 is using libusb-1.0. But I have some problems
to build the git tree under Cygwin due to Cmake issues.

> What version of libusb are you using?
I use all major versions, under Linux and Windows. I am
one of the admins of libusb-win32 project and one of the
contributing testers of libusb-1.0 under Linux/Windows.
http://www.libusb.org/browser/libusb/THANKS
http://git.libusb.org/?p=libusb-pbatard.git;a=blob;f=libusb/os/windows_usb.c;hb=HEAD


-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to