Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2009 18:08:47 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: eToken and USB2 (ugen issue?)
Message-ID:  <200902071808.48709.hselasky@c2i.net>
In-Reply-To: <20090207.095745.-1987210212.imp@bsdimp.com>
References:  <200902071036.32995.hselasky@c2i.net> <200902071303.53394.hselasky@c2i.net> <20090207.095745.-1987210212.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 07 February 2009, M. Warner Losh wrote:
> In message: <200902071303.53394.hselasky@c2i.net>
>
>             Hans Petter Selasky <hselasky@c2i.net> 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 /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<bus>.<addr>.<ifaceindex>.<endpointno>
> : > >
> : > >I recommend using libusb20 to access your USB device.
> : > >
> : > >See "man libusb20".
> : >
> : > Hi,
> : > Thanks for the response. These are all out of the ports
> : > (openct,opensc). Are there any pointers somewhere on how to best
> : > teach old apps about the new USB2 world on FreeBSD ?
> :
> : Hi Mike,
> :
> : Most commonly the following advice helps:
> :
> : Add to /etc/libmap.conf:
> : libusb-0.1.so         libusb20.so
> : libusb-0.1.so.8               libusb20.so.1
> :
> : Also see:
> : http://wiki.freebsd.org/USB
>
> What about for apps that don't use libusb?
>

Hi Warner,

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 .

I recommend people using the libusb or libusb20 API. Using a library makes 
porting much easier!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902071808.48709.hselasky>