From owner-freebsd-usb@FreeBSD.ORG Sat Feb 7 18:40:17 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 1EA3710656F7 for ; Sat, 7 Feb 2009 18:40:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id CB9898FC18 for ; Sat, 7 Feb 2009 18:40:16 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n17IcnRe083010; Sat, 7 Feb 2009 11:38:49 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 07 Feb 2009 11:38:50 -0700 (MST) Message-Id: <20090207.113850.454687644.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200902071808.48709.hselasky@c2i.net> References: <200902071303.53394.hselasky@c2i.net> <20090207.095745.-1987210212.imp@bsdimp.com> <200902071808.48709.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 18:40:18 -0000 In message: <200902071808.48709.hselasky@c2i.net> Hans Petter Selasky writes: : 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 . Any reason not to provide the old name as an alias to the new? : I recommend people using the libusb or libusb20 API. Using a library makes : porting much easier! That's true. And very cool that it helps enable more technology... Warner