Re: HEADSUP usb2/usb4bsd to become default in GENERIC

2009-02-07 Thread Alfred Perlstein
* Maxim Sobolev [090206 01:50] wrote: > Alfred Perlstein wrote: > > - Update GENERIC to use usb2 device names. > > Wasn't there a plan to rename usb2 devices to match oldusb names (where > applicable) once oldusb had been killed? I don't see it in the list. Probably, although coming from t

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread M. Warner Losh
In message: <200902072044.53830.hsela...@c2i.net> Hans Petter Selasky writes: : On Saturday 07 February 2009, M. Warner Losh wrote: : : Hi, : : > : : > : Applications that use /dev/ugen, needs to be recompiled at least and : > : modified to open /dev/ugenX.Y.A.B instead of /dev/ugenY

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread Hans Petter Selasky
On Saturday 07 February 2009, M. Warner Losh wrote: Hi, > : > : Applications that use /dev/ugen, needs to be recompiled at least and > : modified to open /dev/ugenX.Y.A.B instead of /dev/ugenY.B . > > Any reason not to provide the old name as an alias to the new? Technically it will complicate t

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread M. Warner Losh
In message: <200902071808.48709.hsela...@c2i.net> Hans Petter Selasky writes: : On Saturday 07 February 2009, M. Warner Losh wrote: : > In message: <200902071303.53394.hsela...@c2i.net> : > : > Hans Petter Selasky writes: : > : On Saturday 07 February 2009, Mike Tancsa wro

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread Hans Petter Selasky
On Saturday 07 February 2009, M. Warner Losh wrote: > In message: <200902071303.53394.hsela...@c2i.net> > > Hans Petter Selasky writes: > : On Saturday 07 February 2009, Mike Tancsa wrote: > : > At 04:36 AM 2/7/2009, Hans Petter Selasky wrote: > : > >Hi Mike, > : > > > : > >The ugen de

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread M. Warner Losh
In message: <200902071303.53394.hsela...@c2i.net> Hans Petter Selasky writes: : On Saturday 07 February 2009, Mike Tancsa wrote: : > At 04:36 AM 2/7/2009, Hans Petter Selasky wrote: : > >Hi Mike, : > > : > >The ugen devices are invisible and dynamically created. : > > : > >Try open /de

Re: usb_reset, libusb20_compat01 and USB2

2009-02-07 Thread Bruce Cran
On Sat, 7 Feb 2009 15:20:24 +0100 Hans Petter Selasky wrote: > Try this patch to libusb20: > > http://perforce.freebsd.org/chv.cgi?CH=157335 > > Seems like there is different behaviour between libusb20 and > libusb0.1.xx That works - thanks! -- Bruce Cran

Re: usb_reset, libusb20_compat01 and USB2

2009-02-07 Thread Hans Petter Selasky
On Saturday 07 February 2009, Bruce Cran wrote: > usb_close Hi, Try this patch to libusb20: http://perforce.freebsd.org/chv.cgi?CH=157335 Seems like there is different behaviour between libusb20 and libusb0.1.xx --HPS ___ freebsd-usb@freebsd.org mai

usb_reset, libusb20_compat01 and USB2

2009-02-07 Thread Bruce Cran
I've been working to port dfu-util, OpenMoko's USB DFU application, to FreeBSD to work under USB2. One problem I've found is that the device starts out in Runtime Mode so dfu-util calls usb_reset to put it into DFU mode; it seems to expect usb_reset to cause the system to detach and reattach the d

USB2/USB4BSD - code reference available

2009-02-07 Thread Hans Petter Selasky
Hi, I've taken the time to generate a doxygen code reference for the new USB stack. Result is available here: http://www.selasky.org/hans_petter/usb4bsd/ http://www.selasky.org/hans_petter/usb4bsd/html/index.html --HPS ___ freebsd-usb@freebsd.org mail

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread Hans Petter Selasky
On Saturday 07 February 2009, Mike Tancsa wrote: > At 04:36 AM 2/7/2009, Hans Petter Selasky wrote: > >Hi Mike, > > > >The ugen devices are invisible and dynamically created. > > > >Try open /dev/ugen0.2.0.0 (control endpoint) > > > >Also you need to re-link your application with > > "dev/usb2/incl

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread Mike Tancsa
At 04:36 AM 2/7/2009, Hans Petter Selasky wrote: Hi Mike, The ugen devices are invisible and dynamically created. Try open /dev/ugen0.2.0.0 (control endpoint) Also you need to re-link your application with "dev/usb2/include/usb2_ioctl.h" Format is /dev/ugen... I recommend using libusb20 to a

Re: eToken and USB2 (ugen issue?)

2009-02-07 Thread Hans Petter Selasky
Hi Mike, The ugen devices are invisible and dynamically created. Try open /dev/ugen0.2.0.0 (control endpoint) Also you need to re-link your application with "dev/usb2/include/usb2_ioctl.h" Format is /dev/ugen... I recommend using libusb20 to access your USB device. See "man libusb20". --HPS