From owner-freebsd-usb@FreeBSD.ORG Sat Feb 7 17:06:24 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95A70106564A for ; Sat, 7 Feb 2009 17:06:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 2B02E8FC08 for ; Sat, 7 Feb 2009 17:06:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=ar-1rcyr13IA:10 a=6I5d2MoRAAAA:8 a=GwWb7bmAaJpPI8aI5SsA:9 a=Z9ECX2SFs-KmiREKuFQA:7 a=gNHzAWi7R1dYza3WDRfmKHxndFQA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.186]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1195647775; Sat, 07 Feb 2009 18:06:22 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Sat, 7 Feb 2009 18:08:47 +0100 User-Agent: KMail/1.9.7 References: <200902071036.32995.hselasky@c2i.net> <200902071303.53394.hselasky@c2i.net> <20090207.095745.-1987210212.imp@bsdimp.com> In-Reply-To: <20090207.095745.-1987210212.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902071808.48709.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: eToken and USB2 (ugen issue?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 17:06:25 -0000 On Saturday 07 February 2009, M. Warner Losh wrote: > In message: <200902071303.53394.hselasky@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 /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". > : > > : > 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