From owner-freebsd-usb@FreeBSD.ORG Mon Mar 9 15:18:18 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 F1191106564A; Mon, 9 Mar 2009 15:18:18 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8F35F8FC18; Mon, 9 Mar 2009 15:18:18 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 48B90FF67; Tue, 10 Mar 2009 04:18:17 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QpJCpA9NAU8w; Tue, 10 Mar 2009 04:18:13 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Tue, 10 Mar 2009 04:18:13 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id C1E1211432; Tue, 10 Mar 2009 04:18:12 +1300 (NZDT) Date: Mon, 9 Mar 2009 08:18:11 -0700 From: Andrew Thompson To: "M. Warner Losh" Message-ID: <20090309151811.GA40452@citylink.fud.org.nz> References: <200903091233.55089.hselasky@c2i.net> <20090309.065558.-432839106.imp@bsdimp.com> <200903091404.34912.hselasky@c2i.net> <20090309.073931.635732127.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090309.073931.635732127.imp@bsdimp.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Latest kernel breaks scanner 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: Mon, 09 Mar 2009 15:18:19 -0000 On Mon, Mar 09, 2009 at 07:39:31AM -0600, M. Warner Losh wrote: > In message: <200903091404.34912.hselasky@c2i.net> > Hans Petter Selasky writes: > : On Monday 09 March 2009, M. Warner Losh wrote: > : > In message: <200903091233.55089.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Sunday 08 March 2009, Andrew Thompson wrote: > : > : > On Sun, Mar 08, 2009 at 03:43:53PM -0600, M. Warner Losh wrote: > : > : > > In message: <20090308203157.GC30672@citylink.fud.org.nz> > : > : > > > : > : > > Andrew Thompson writes: > : > : > > : On Sun, Mar 08, 2009 at 01:06:59PM -0600, M. Warner Losh wrote: > : > : > > : > Sigh. Had a working system from Mar 4th. Upgraded now it > : > : > > : > doesn't work. Scanner not found by xsane. > : > : > > : > : > : > > : Are you sure its not this? > : > : > > : > : > : > > : 20090227: > : > : > > : The /dev handling for the new USB stack has changed, a > : > : > > : buildworld/installworld is required for libusb20. > : > : > > > : > : > > Yes. Been there, done that. Also have the libmap.conf changes in > : > : > > place for old binaries that had worked for months before that. xsane > : > : > > used to just work in this setup, but now fails. Looks like some kind > : > : > > of mismatch in the ABI: > : > : > > > : > : > > found USB scanner (UNKNOWN vendor and product) at device > : > : > > /dev/uscanner0 > : > : > > : > : > Not sure what would have caused that. Before you spend too much time on > : > : > this you may want to note that the integration patches for libusb into > : > : > the ports build will likely be committed tomorrow. This will bump the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > : > : > port numbers so the affected ports rebuild, hopefully sane with DTRT > : > : > after that. > : > : > : > : Maybe you need to chown or rm /dev/uscanner0 to enforce use of libusb > : > : backend? > : > > : > never had to do that before... > : > : Or recompile all of the sane backends. Probably an IOCTL on the uscanner0 is > : broken, and the fallback to libusb backend will maybe solve your problem > : temporarily if you rm /dev/uscanner0 . > > Can't do it. devel/libusb is broken. Been there tried that: Didn't > work. > > I do know that it has *NEVER* found the device when I don't have > uscanner loaded, even when ugen was loaded... > > : Actually that is another question: > : > : Should we remove ID's from uscanner.c which will work fine attaching through > : the libusb backend ? > > Unlikely, given my experience that it appears to be required... > > Anyway, it is going to be at least a week before I can do anything on > this again because the scanner is at home right now, and I'm in the > airport waiting for my flight to AsiaBSDCon 2009... This is about to be fixed, see above. Hopefully everything is good on your return :) Andrew