From owner-freebsd-usb@FreeBSD.ORG Sun Feb 9 02:57:09 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0956A30; Sun, 9 Feb 2014 02:57:09 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 626121784; Sun, 9 Feb 2014 02:57:09 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) by freebsd.czest.pl (8.14.5/8.14.5) with ESMTP id s192uObN094676; Sun, 9 Feb 2014 02:56:24 GMT (envelope-from wkoszek@freebsd.czest.pl) Received: (from wkoszek@localhost) by freebsd.czest.pl (8.14.5/8.14.5/Submit) id s192uOvs094675; Sun, 9 Feb 2014 02:56:24 GMT (envelope-from wkoszek) Date: Sun, 9 Feb 2014 02:56:24 +0000 From: "Wojciech A. Koszek" To: Juergen Lock Subject: Re: linux libusb again, I made an updated port... Message-ID: <20140209025624.GE12994@FreeBSD.org> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140208084546.GA74796@enceladus10.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-0.4 required=5.0 tests=RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on freebsd.czest.pl X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (freebsd.czest.pl [212.87.224.105]); Sun, 09 Feb 2014 02:56:28 +0000 (UTC) Cc: freebsd-emulation@FreeBSD.org, bapt@FreeBSD.org, freebsd-usb@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 02:57:09 -0000 On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > > On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > > > Hi! > > > > > > This came up on irc so I tried to build a linux libusb port (before > > > I learned about ports/146895), mine uses linux_base-gentoo-stage3 > > > like linux_kdump with a src/lib/libusb head snapshot so it's more > > > up to date than wkoszek's build (ports/146895), and it's really > > > easy to update it again. Also maybe it can be used as linux > > > libusb-1.0.so too; I didn't actually test it tho. > > > > > > Should this be committed? Is wkoszek's version better since it > > > also builds on < 10.x? Comments welcome... > > > > > > wkoszek's version: > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > > > > > > Mine: > > > > > > http://people.freebsd.org/~nox/tmp/linux_libusb.shar > > > > > > Distfile: > > > > > > http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > > > > > > 10/amd64 package: > > > > > > http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > > > > > > (built via: > > > > > > poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > > > > > > - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > > > doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > > > Cc'd...) > > > > > > > Juergen, > Hi! > > > > What would be the reason for this update? > > > > My stuff may be out of date, but it was all tested and working. I verified > > it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > > this stuff was written. > > > I was just thinking an updated version may be useful, but if it's > already working for everyone maybe less so... > > Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > stuff added some functions since 9.x at least... maybe hps would know > (Cc'd.) > Juergen, I think this package is useful and is looking for maintainer, so if you have time and energy, I'm OK with upgrading it, but I suggest testing it first. Bjoern might be interested too. > > Can you show the diff between USB code from src/lib and from the distfile? > > > That's just a checkout from head, see the port Makefile for how it's > generated. (.if defined(BOOTSTRAP)...) > > > Instead of having a port with .c code, I'd drive towards having src/lib > > changes (if any) be commited. And then that port only has to do: > > > > cp -rf src/lib/libusb port/tmp/dir > > > > and build it with different -DDEFINES if necessary. > > > That's what I orginally had but hps suggested I check out from head > instead. (Tho that was when I couldn't get it building at first, which > turned out to be just a CFLAGS -I problem so the 10.0 code should now > build this way as well.) I guess it's the same stuff if the code is there with no modification. If we could have this port checked in to the ports/ repository, this would be great. Basically I'd concentrate on delivering good end-user experience Thanks for working on it. Lots of people will apprecite it. -- Wojciech A. Koszek wkoszek@FreeBSD.czest.pl http://FreeBSD.czest.pl/~wkoszek/ From owner-freebsd-usb@FreeBSD.ORG Sun Feb 9 11:00:57 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3EB85D9; Sun, 9 Feb 2014 11:00:57 +0000 (UTC) Received: from mout1.freenet.de (mout1.freenet.de [IPv6:2001:748:100:40::2:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9D5B91AA3; Sun, 9 Feb 2014 11:00:57 +0000 (UTC) Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout1.freenet.de with esmtpa (ID perox@freenet.de) (port 25) (Exim 4.80.1 #4) id 1WCS86-0007kN-U7; Sun, 09 Feb 2014 12:00:54 +0100 Received: from localhost ([::1]:35648 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID perox@freenet.de) (Exim 4.80.1 #4) id 1WCS86-00029A-Q0; Sun, 09 Feb 2014 12:00:54 +0100 Received: from mx4.freenet.de ([195.4.92.14]:56366) by mjail1.freenet.de with esmtpa (ID perox@freenet.de) (Exim 4.80.1 #4) id 1WCS4V-0008H5-PK; Sun, 09 Feb 2014 11:57:11 +0100 Received: from web3.emo.freenet-rz.de ([194.97.107.236]:52871 helo=web9.emo.freenet-rz.de) by mx4.freenet.de with esmtpa (ID perox@freenet.de) (port 587) (Exim 4.80.1 #4) id 1WCS4V-0004t9-Jn; Sun, 09 Feb 2014 11:57:11 +0100 Received: from localhost ([127.0.0.1] helo=emo.freenet.de) by web9.emo.freenet-rz.de with esmtpa (Exim 4.72 1 (Panther_1)) id 1WCS4V-0001Ov-DM; Sun, 09 Feb 2014 11:57:11 +0100 Date: Sun, 09 Feb 2014 11:57:11 +0100 From: perox@freenet.de Subject: Re: Entering password at GELI prompt using USB keyboard To: freebsd-usb@freebsd.org X-Priority: 3 MIME-Version: 1.0 X-Abuse: 500871696 / 91.19.8.233 Message-Id: <9c80f43ea7ce4ca958ac585976f150fe@email.freenet.de> User-Agent: freenetMail Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Originated-At: 91.19.8.233!48940 Cc: Andriy Gapon X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 11:00:58 -0000 QXJnLCBjaGVlcmVkIHRvbyBzb29uIDooIEl0IGFjdHVhbGx5IHdhc24ndCB0aGUgY25nZXRzKCkv Z2V0cygpIGNoYW5nZS4gSSBhbHNvDQp0cmllZCBlbmFibGluZyB0aGUgQVBJQyBhZ2FpbiAoYnkg aGludC5hcGljLjAuZGlzYWJsZWQ9MCwgaGludC5hcGljLjEuZGlzYWJsZWQ9MA0KaW4gbG9hZGVy LmNvbmYpIGF0IHRoZSBzYW1lIHRpbWUuIFRoZSBwYXNzd29yZCBlbnRlcmluZyBzZWVtcyB0byB3 b3JrIGFzIGxvbmcNCmFzIHRoZSBBUElDIGlzIGVuYWJsZWQuIEkgaGF2ZSBiZWVuIGtlZXBpbmcg aXQgZGlzYWJsZWQgc2luY2UgOC4xIG9yIHNvIGJlY2F1c2UgDQpteSBzeXN0ZW0gd291bGQgZnJl ZXplIGFmdGVyIGEgZmV3IGRheXMgd2l0aCB0aGUgQVBJQyBlbmFibGVkLCBwcm9iYWJseSBzb21l DQppbnRlcnJ1cHQgc3Rvcm0sIG5ldmVyIGNoZWNrZWQgdGhpcyBpbiBkZXRhaWwNCg0KU28gbm93 LCBJJ20gc3R1Y2sgYmV0d2VlbiBhIHJvY2sgYW5kIGEgaGFyZCBwbGFjZTogV2hlbiB0aGUgQVBJ QyBpcyBlbmFibGVkLA0KSSBjYW4gZW50ZXIgdGhlIEdFTEkgcGFzc3dvcmQgYW5kIGJ5IHN5c3Rl bSBib290cyBidXQgaGFyZCBmcmVlemVzIGFmdGVyIHR3bw0KZGF5cy4gSWYgdGhlIEFQSUMgaXMg ZGlzYWJsZWQgSSBjYW5ub3QgZW50ZXIgdGhlIHBhc3N3b3JkIGJ1dCB0aGUgc3lzdGVtDQp3b3Vs ZCBydW4gd2l0aG91dCBwcm9ibGVtcy4NCg0KSXQncyBwcm9iYWJseSB0aW1lIHRvIGludmVzdGln YXRlIGZ1cnRoZXIgb24gdGhlIGludGVycnVwdCBzdG9ybSBpc3N1ZSBpbg0Kb3JkZXIgdG8gYmUg YWJsZSB0byB1c2UgdGhlIEFQSUMgaW4gZnV0dXJlLiBIb3dldmVyLCBJJ20gbm90IHBhcnRpY3Vs YXJseQ0Ka25vd2xlZGVnYWJsZSBpbiB0aGlzIGFyZWEuIFdpbGwgcHJvYmFibHkgc3RhcnQgd2l0 aCB2bXN0YXQgLWkgOikgQW55IG90aGVyDQpoaW50cz8NCg0KUmVnYXJkcw0KIC0NCg0KCgotLS0K QWxsZSBQb3N0ZsOkY2hlciBhbiBlaW5lbSBPcnQuIEpldHp0IHdlY2hzZWxuIHVuZCBFLU1haWwt QWRyZXNzZSBtaXRuZWhtZW4hIGh0dHA6Ly9lbWFpbC5mcmVlbmV0LmRlL2Jhc2ljL0luZm9ybWF0 aW9uZW4KCg== From owner-freebsd-usb@FreeBSD.ORG Sun Feb 9 14:33:18 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26E5F3DA; Sun, 9 Feb 2014 14:33:18 +0000 (UTC) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id EF93C1A10; Sun, 9 Feb 2014 14:33:16 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id E07581E007B9; Sun, 9 Feb 2014 15:33:09 +0100 (CET) Received: from enceladus10.kn-bremen.de (noident@localhost [127.0.0.1]) by enceladus10.kn-bremen.de (8.14.5/8.14.5) with ESMTP id s19Dx6JG013175; Sun, 9 Feb 2014 14:59:06 +0100 (CET) (envelope-from nox@enceladus10.kn-bremen.de) Received: (from nox@localhost) by enceladus10.kn-bremen.de (8.14.5/8.14.5/Submit) id s19Dx6m4013174; Sun, 9 Feb 2014 14:59:06 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 9 Feb 2014 14:59:06 +0100 To: "Wojciech A. Koszek" Subject: CFT: Re: linux libusb again, I made an updated port... Message-ID: <20140209135905.GA13024@enceladus10.kn-bremen.de> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140209025624.GE12994@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: bapt@FreeBSD.org, hselasky@FreeBSD.org, Juergen Lock , freebsd-emulation@FreeBSD.org, bz@FreeBSD.org, freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 14:33:18 -0000 On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: > On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > > On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > > > On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > > > > Hi! > > > > > > > > This came up on irc so I tried to build a linux libusb port (before > > > > I learned about ports/146895), mine uses linux_base-gentoo-stage3 > > > > like linux_kdump with a src/lib/libusb head snapshot so it's more > > > > up to date than wkoszek's build (ports/146895), and it's really > > > > easy to update it again. Also maybe it can be used as linux > > > > libusb-1.0.so too; I didn't actually test it tho. > > > > > > > > Should this be committed? Is wkoszek's version better since it > > > > also builds on < 10.x? Comments welcome... > > > > > > > > wkoszek's version: > > > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > > > > > > > > Mine: > > > > > > > > http://people.freebsd.org/~nox/tmp/linux_libusb.shar > > > > > > > > Distfile: > > > > > > > > http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > > > > > > > > 10/amd64 package: > > > > > > > > http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > > > > > > > > (built via: > > > > > > > > poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > > > > > > > > - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > > > > doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > > > > Cc'd...) > > > > > > > > > > Juergen, > > Hi! > > > > > > What would be the reason for this update? > > > > > > My stuff may be out of date, but it was all tested and working. I verified > > > it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > > > this stuff was written. > > > > > I was just thinking an updated version may be useful, but if it's > > already working for everyone maybe less so... > > > > Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > > stuff added some functions since 9.x at least... maybe hps would know > > (Cc'd.) > > > > Juergen, > > I think this package is useful and is looking for maintainer, so if you have > time and energy, I'm OK with upgrading it, but I suggest testing it first. > Bjoern might be interested too. > You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it printed nothing, neither with my nor with your older version, but maybe it's just `too new' for our current linuxolator. > > > Can you show the diff between USB code from src/lib and from the distfile? > > > > > That's just a checkout from head, see the port Makefile for how it's > > generated. (.if defined(BOOTSTRAP)...) > > > > > Instead of having a port with .c code, I'd drive towards having src/lib > > > changes (if any) be commited. And then that port only has to do: > > > > > > cp -rf src/lib/libusb port/tmp/dir > > > > > > and build it with different -DDEFINES if necessary. > > > > > That's what I orginally had but hps suggested I check out from head > > instead. (Tho that was when I couldn't get it building at first, which > > turned out to be just a CFLAGS -I problem so the 10.0 code should now > > build this way as well.) > > I guess it's the same stuff if the code is there with no modification. If we > could have this port checked in to the ports/ repository, this would be > great. Basically I'd concentrate on delivering good end-user experience > > Thanks for working on it. Lots of people will apprecite it. > Ok so let's wait for more testers then? Juergen From owner-freebsd-usb@FreeBSD.ORG Sun Feb 9 18:33:16 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2EC7A0; Sun, 9 Feb 2014 18:33:16 +0000 (UTC) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8A4581AD5; Sun, 9 Feb 2014 18:33:15 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 0DA3425D3A17; Sun, 9 Feb 2014 18:33:12 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id DB323C22BFE; Sun, 9 Feb 2014 18:33:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id I4vhuVQ1BiBx; Sun, 9 Feb 2014 18:33:09 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4410:20b6:bd9c:9f36:2242] (unknown [IPv6:fde9:577b:c1a9:4410:20b6:bd9c:9f36:2242]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 730DDC22BBD; Sun, 9 Feb 2014 18:33:03 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: CFT: Re: linux libusb again, I made an updated port... From: "Bjoern A. Zeeb" In-Reply-To: <20140209135905.GA13024@enceladus10.kn-bremen.de> Date: Sun, 9 Feb 2014 18:32:29 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <6A6EDDBE-509E-45F2-961D-3EC3788CAD9C@FreeBSD.org> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> To: Juergen Lock X-Mailer: Apple Mail (2.1827) Cc: freebsd-emulation@FreeBSD.org, "Wojciech A. Koszek" , bapt@FreeBSD.org, freebsd-usb@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 18:33:16 -0000 On 09 Feb 2014, at 13:59 , Juergen Lock wrote: Hi guys, > On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: >> On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: >>> On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: >>>> On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: >>>>> Hi! >>>>>=20 >>>>> This came up on irc so I tried to build a linux libusb port = (before >>>>> I learned about ports/146895), mine uses linux_base-gentoo-stage3 >>>>> like linux_kdump with a src/lib/libusb head snapshot so it's more >>>>> up to date than wkoszek's build (ports/146895), and it's really >>>>> easy to update it again. Also maybe it can be used as linux >>>>> libusb-1.0.so too; I didn't actually test it tho. >>>>>=20 >>>>> Should this be committed? Is wkoszek's version better since it >>>>> also builds on < 10.x? Comments welcome... >>>>>=20 >>>>> wkoszek's version: >>>>>=20 >>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D146895 >>>>>=20 >>>>> Mine: >>>>>=20 >>>>> http://people.freebsd.org/~nox/tmp/linux_libusb.shar >>>>>=20 >>>>> Distfile: >>>>>=20 >>>>> = http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.= bz2 >>>>>=20 >>>>> 10/amd64 package: >>>>>=20 >>>>> = http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r2614= 48.txz >>>>>=20 >>>>> (built via: >>>>>=20 >>>>> poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb >>>>>=20 >>>>> - btw for some reason the dependency = emulators/linux_base-gentoo-stage3 >>>>> doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. = bapt >>>>> Cc'd...) >>>>>=20 >>>>=20 >>>> Juergen, >>> Hi! >>>>=20 >>>> What would be the reason for this update? >>>>=20 >>>> My stuff may be out of date, but it was all tested and working. I = verified >>>> it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for = which >>>> this stuff was written. >>>>=20 >>> I was just thinking an updated version may be useful, but if it's >>> already working for everyone maybe less so... >>>=20 >>> Or would it work as a linux libusb-1.0.so too? I know the libusb = 1.0 >>> stuff added some functions since 9.x at least... maybe hps would = know >>> (Cc'd.) >>>=20 >>=20 >> Juergen, >>=20 >> I think this package is useful and is looking for maintainer, so if = you have >> time and energy, I'm OK with upgrading it, but I suggest testing it = first. >> Bjoern might be interested too. >>=20 > You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it = printed Thanks. > nothing, neither with my nor with your older version, but maybe it's = just > `too new' for our current linuxolator. I got a lsusb to work after a bit more hacking. But that wasn=92t the = end of the story. >=20 >>>> Can you show the diff between USB code from src/lib and from the = distfile? >>>>=20 >>> That's just a checkout from head, see the port Makefile for how it's >>> generated. (.if defined(BOOTSTRAP)...) >>>=20 >>>> Instead of having a port with .c code, I'd drive towards having = src/lib >>>> changes (if any) be commited. And then that port only has to do: >>>>=20 >>>> cp -rf src/lib/libusb port/tmp/dir >>>>=20 >>>> and build it with different -DDEFINES if necessary. >>>>=20 >>> That's what I orginally had but hps suggested I check out from head >>> instead. (Tho that was when I couldn't get it building at first, = which >>> turned out to be just a CFLAGS -I problem so the 10.0 code should = now >>> build this way as well.) >>=20 >> I guess it's the same stuff if the code is there with no = modification. If we >> could have this port checked in to the ports/ repository, this would = be >> great. Basically I'd concentrate on delivering good end-user = experience >>=20 >> Thanks for working on it. Lots of people will apprecite it. >>=20 > Ok so let's wait for more testers then? I=92ll give it a spin the next days. Since I last talked to some of you I had a lot of findings yet I had not = been able to make any possible solution to fully work yet. The in-tree = which supposedly should compile with a Ubuntu was unfortunately ruled = out the earliest:( Some had glibc dependencies I kicked out which the = F10 (our current default) environment didn=92t provide, others are just = not doing the right thing in some cases and required hacking. In the = end I stayed with Wojciech=92s version as it was the best option to = start with and I could make the most progress quickly. /bz =97=20 Bjoern A. Zeeb ????????? ??? ??????? ??????: '??? ??? ???? ?????? ??????? ?? ?? ??????? ??????? ??? ????? ????? ???? ?????? ?? ????? ????', ????????? ?????????, "??? ????? ?? ?????", ?.??? From owner-freebsd-usb@FreeBSD.ORG Mon Feb 10 04:19:31 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9FCAF571; Mon, 10 Feb 2014 04:19:31 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 431931C5C; Mon, 10 Feb 2014 04:19:30 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) by freebsd.czest.pl (8.14.5/8.14.5) with ESMTP id s1A4Ijan005918; Mon, 10 Feb 2014 04:18:45 GMT (envelope-from wkoszek@freebsd.czest.pl) Received: (from wkoszek@localhost) by freebsd.czest.pl (8.14.5/8.14.5/Submit) id s1A4IjI5005917; Mon, 10 Feb 2014 04:18:45 GMT (envelope-from wkoszek) Date: Mon, 10 Feb 2014 04:18:45 +0000 From: "Wojciech A. Koszek" To: Juergen Lock Subject: Re: CFT: Re: linux libusb again, I made an updated port... Message-ID: <20140210041845.GG12994@FreeBSD.org> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140209135905.GA13024@enceladus10.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-0.4 required=5.0 tests=RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on freebsd.czest.pl X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (freebsd.czest.pl [212.87.224.105]); Mon, 10 Feb 2014 04:18:49 +0000 (UTC) Cc: freebsd-emulation@FreeBSD.org, bz@FreeBSD.org, bapt@FreeBSD.org, freebsd-usb@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 04:19:31 -0000 On nie, lut 09, 2014 at 02:59:06 +0100, Juergen Lock wrote: > On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: > > On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > > > On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > > > > On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > > > > > Hi! > > > > > > > > > > This came up on irc so I tried to build a linux libusb port (before > > > > > I learned about ports/146895), mine uses linux_base-gentoo-stage3 > > > > > like linux_kdump with a src/lib/libusb head snapshot so it's more > > > > > up to date than wkoszek's build (ports/146895), and it's really > > > > > easy to update it again. Also maybe it can be used as linux > > > > > libusb-1.0.so too; I didn't actually test it tho. > > > > > > > > > > Should this be committed? Is wkoszek's version better since it > > > > > also builds on < 10.x? Comments welcome... > > > > > > > > > > wkoszek's version: > > > > > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > > > > > > > > > > Mine: > > > > > > > > > > http://people.freebsd.org/~nox/tmp/linux_libusb.shar > > > > > > > > > > Distfile: > > > > > > > > > > http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > > > > > > > > > > 10/amd64 package: > > > > > > > > > > http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > > > > > > > > > > (built via: > > > > > > > > > > poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > > > > > > > > > > - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > > > > > doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > > > > > Cc'd...) > > > > > > > > > > > > > Juergen, > > > Hi! > > > > > > > > What would be the reason for this update? > > > > > > > > My stuff may be out of date, but it was all tested and working. I verified > > > > it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > > > > this stuff was written. > > > > > > > I was just thinking an updated version may be useful, but if it's > > > already working for everyone maybe less so... > > > > > > Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > > > stuff added some functions since 9.x at least... maybe hps would know > > > (Cc'd.) > > > > > > > Juergen, > > > > I think this package is useful and is looking for maintainer, so if you have > > time and energy, I'm OK with upgrading it, but I suggest testing it first. > > Bjoern might be interested too. > > > You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it printed > nothing, neither with my nor with your older version, but maybe it's just > `too new' for our current linuxolator. I assume you have at least 1 USB device while trying this. I don't remember exactly, but while trying within Linuxolator, you may need devfs/procfs to be mounted under Linuxolator's root directory. So you'll have to figure this out. Does it return with 0 exit code? If not, lsusb should be simple enough to let you place printf() all over the place and understand out when it's failing. -- Wojciech A. Koszek wkoszek@FreeBSD.czest.pl http://FreeBSD.czest.pl/~wkoszek/ From owner-freebsd-usb@FreeBSD.ORG Mon Feb 10 11:06:57 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3600919F for ; Mon, 10 Feb 2014 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 17E7F1FF4 for ; Mon, 10 Feb 2014 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1AB6vko080235 for ; Mon, 10 Feb 2014 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1AB6u4Y080233 for freebsd-usb@FreeBSD.org; Mon, 10 Feb 2014 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Feb 2014 11:06:56 GMT Message-Id: <201402101106.s1AB6u4Y080233@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/186317 usb ums module not loaded by devd for Razer Lachesis mouse o usb/186110 usb connected over USB, only first document is printed o usb/185968 usb PocketBook Pro 912 USB connection problem o usb/185838 usb Sony DSC-H5 not connecting on USB o usb/185837 usb [umass] Pendrive Kingston DataTraveler 8G not recogniz o usb/185747 usb Patcf that fix support for USB key "Kingston DT 101 G2 o usb/185628 usb usbd_req_re_enumerate set address failed USB_ERR_STALL o kern/185208 usb (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error o usb/184014 usb USB storage devices do not work in FreeBSD 9.2 or high o usb/183728 usb libusb20 examples filenames cause problems on windows. o usb/183505 usb [usb] Arduino Leonardo exposes three interface descrip f usb/183409 usb USB Class 2 audio device playback issue o usb/183302 usb USB no proper work o usb/183090 usb Logitech USB microphone failure o usb/182820 usb usbusX if destroy page fault panic o usb/182361 usb [panic] Suspend when using USB disc as root causes ker o usb/181987 usb USB isochronous transfer of the USB driver (Mentor Gra o usb/181425 usb USB keyboard with full N-key rollover not working o usb/181159 usb Problem attaching USB device o usb/180837 usb [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk ( o usb/180726 usb XHCI umass support breaks between r248085 and r252560 o usb/180657 usb [PATCH] Filco Majestouch 2 keyboard recognized as keyb o usb/180617 usb New quirk (another member of Western Digital My Passpo o usb/180254 usb FreeBSD 9.1 on 384GB memory server o usb/180119 usb FreeBSD 9.1 umass driver does not correctly handle Pan o usb/179505 usb Kernel detaches Arduino Leonardo (and similar) board u o usb/179342 usb Freebsd 10.0-current USB 3.0 not working (xhci_do_coma o usb/179109 usb After detach USB Flash a keyboard does not work. o usb/179107 usb [usb] After detach USB Flash a keyboard does not work. o usb/178771 usb [usbdevs] [patch] Western Digital My Passport HD o usb/178722 usb FreeBSD 9.1-STABLE r250561 breaks support for webcam L o usb/178267 usb [usb] USB causing interrupt storm on irq16 o usb/177897 usb [u3g][patch] add support for the Huawei E352 modem o usb/177896 usb man page for usb_quirk suggests adding device to kerne o usb/177895 usb similar 1TB Western Digital "My Passports" - some load o usb/177666 usb [usbdevs] [patch] Add support for Texas Instruments / o usb/176913 usb [ehci] High interrupt load with ehci o usb/176841 usb [umass] Sony DSC-H2 USB connection fails o usb/176417 usb [xhci][cam][umass] kernelpanic while removing plugged o usb/175731 usb detaching USB keyboard freezes other USB keyboards o usb/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with Free o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb [xhci] xhci driver bug after suspend to RAM (ACPI S3 m o usb/173616 usb LG USB DVD-RW USB STALL o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb [xhci] high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while f kern/153514 usb [cam] [panic] CAM related panic o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o kern/138292 usb [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader f usb/128745 usb [zyd] zyd theoretically supported usb device makes ker o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a f usb/117150 usb [zyd] usb zyd device under moderate load panics system o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati f usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [new driver] [request] umass driver support for InSyst s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 330 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Feb 10 13:37:13 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D57233C5; Mon, 10 Feb 2014 13:37:13 +0000 (UTC) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 34BE01D8B; Mon, 10 Feb 2014 13:37:13 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 3F8F125D37D1; Mon, 10 Feb 2014 13:37:11 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 2E315C22C19; Mon, 10 Feb 2014 13:37:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id dVagEZ4qxuLx; Mon, 10 Feb 2014 13:37:07 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6] (unknown [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 15ACBC22B81; Mon, 10 Feb 2014 13:37:05 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: CFT: Re: linux libusb again, I made an updated port... From: "Bjoern A. Zeeb" In-Reply-To: <20140210041845.GG12994@FreeBSD.org> Date: Mon, 10 Feb 2014 11:06:27 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> <20140210041845.GG12994@FreeBSD.org> To: "Wojciech A. Koszek" X-Mailer: Apple Mail (2.1827) Cc: bapt@FreeBSD.org, freebsd-emulation@FreeBSD.org, Juergen Lock , freebsd-usb@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 13:37:13 -0000 On 10 Feb 2014, at 04:18 , Wojciech A. Koszek = wrote: > On nie, lut 09, 2014 at 02:59:06 +0100, Juergen Lock wrote: >> On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: >>> On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: >>>> On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: >>>>> On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: >>>>>> Hi! >>>>>>=20 >>>>>> This came up on irc so I tried to build a linux libusb port = (before >>>>>> I learned about ports/146895), mine uses linux_base-gentoo-stage3 >>>>>> like linux_kdump with a src/lib/libusb head snapshot so it's more >>>>>> up to date than wkoszek's build (ports/146895), and it's really >>>>>> easy to update it again. Also maybe it can be used as linux >>>>>> libusb-1.0.so too; I didn't actually test it tho. >>>>>>=20 >>>>>> Should this be committed? Is wkoszek's version better since it >>>>>> also builds on < 10.x? Comments welcome... >>>>>>=20 >>>>>> wkoszek's version: >>>>>>=20 >>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D146895 >>>>>>=20 >>>>>> Mine: >>>>>>=20 >>>>>> http://people.freebsd.org/~nox/tmp/linux_libusb.shar >>>>>>=20 >>>>>> Distfile: >>>>>>=20 >>>>>> = http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.= bz2 >>>>>>=20 >>>>>> 10/amd64 package: >>>>>>=20 >>>>>> = http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r2614= 48.txz >>>>>>=20 >>>>>> (built via: >>>>>>=20 >>>>>> poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb >>>>>>=20 >>>>>> - btw for some reason the dependency = emulators/linux_base-gentoo-stage3 >>>>>> doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. = bapt >>>>>> Cc'd...) >>>>>>=20 >>>>>=20 >>>>> Juergen, >>>> Hi! >>>>>=20 >>>>> What would be the reason for this update? >>>>>=20 >>>>> My stuff may be out of date, but it was all tested and working. I = verified >>>>> it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for = which >>>>> this stuff was written. >>>>>=20 >>>> I was just thinking an updated version may be useful, but if it's >>>> already working for everyone maybe less so... >>>>=20 >>>> Or would it work as a linux libusb-1.0.so too? I know the libusb = 1.0 >>>> stuff added some functions since 9.x at least... maybe hps would = know >>>> (Cc'd.) >>>>=20 >>>=20 >>> Juergen, >>>=20 >>> I think this package is useful and is looking for maintainer, so if = you have >>> time and energy, I'm OK with upgrading it, but I suggest testing it = first. >>> Bjoern might be interested too. >>>=20 >> You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it = printed >> nothing, neither with my nor with your older version, but maybe it's = just >> `too new' for our current linuxolator. >=20 > I assume you have at least 1 USB device while trying this. I don't = remember > exactly, but while trying within Linuxolator, you may need = devfs/procfs to > be mounted under Linuxolator's root directory. My understanding and from looking at trace is that if we cannot find it = in /compat/linux we ale search in /; so no need for an extra mount = unless maybe you run chrooted. > So you'll have to figure this out. >=20 > Does it return with 0 exit code? >=20 > If not, lsusb should be simple enough to let you place printf() all = over the > place and understand out when it's failing.=20 For me the problem was a clock_gettime() call in the libusb which my = glibc did not provide. That made all things fail (silently) until I = used linux =93rtld" tracing to see the unresolved symbol from libusb/the = commercial 3rd party software dynamically loading libusb. =97=20 Bjoern A. Zeeb ????????? ??? ??????? ??????: '??? ??? ???? ?????? ??????? ?? ?? ??????? ??????? ??? ????? ????? ???? ?????? ?? ????? ????', ????????? ?????????, "??? ????? ?? ?????", ?.??? From owner-freebsd-usb@FreeBSD.ORG Mon Feb 10 23:13:52 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3757221A; Mon, 10 Feb 2014 23:13:52 +0000 (UTC) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 2A52014DF; Mon, 10 Feb 2014 23:13:51 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id B77E41E007A8; Tue, 11 Feb 2014 00:13:42 +0100 (CET) Received: from enceladus10.kn-bremen.de (noident@localhost [127.0.0.1]) by enceladus10.kn-bremen.de (8.14.5/8.14.5) with ESMTP id s1ANB9N0054412; Tue, 11 Feb 2014 00:11:10 +0100 (CET) (envelope-from nox@enceladus10.kn-bremen.de) Received: (from nox@localhost) by enceladus10.kn-bremen.de (8.14.5/8.14.5/Submit) id s1ANB9rH054411; Tue, 11 Feb 2014 00:11:09 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 11 Feb 2014 00:11:09 +0100 To: "Bjoern A. Zeeb" Subject: Re: CFT: Re: linux libusb again, I made an updated port... Message-ID: <20140210231109.GA54389@enceladus10.kn-bremen.de> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> <20140210041845.GG12994@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: bapt@FreeBSD.org, hselasky@FreeBSD.org, "Wojciech A. Koszek" , Juergen Lock , freebsd-emulation@FreeBSD.org, freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 23:13:52 -0000 On Mon, Feb 10, 2014 at 11:06:27AM +0000, Bjoern A. Zeeb wrote: > > On 10 Feb 2014, at 04:18 , Wojciech A. Koszek wrote: > > > On nie, lut 09, 2014 at 02:59:06 +0100, Juergen Lock wrote: > >> On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: > >>> On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > >>>> On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > >>>>> On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > >>>>>> Hi! > >>>>>> > >>>>>> This came up on irc so I tried to build a linux libusb port (before > >>>>>> I learned about ports/146895), mine uses linux_base-gentoo-stage3 > >>>>>> like linux_kdump with a src/lib/libusb head snapshot so it's more > >>>>>> up to date than wkoszek's build (ports/146895), and it's really > >>>>>> easy to update it again. Also maybe it can be used as linux > >>>>>> libusb-1.0.so too; I didn't actually test it tho. > >>>>>> > >>>>>> Should this be committed? Is wkoszek's version better since it > >>>>>> also builds on < 10.x? Comments welcome... > >>>>>> > >>>>>> wkoszek's version: > >>>>>> > >>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > >>>>>> > >>>>>> Mine: > >>>>>> > >>>>>> http://people.freebsd.org/~nox/tmp/linux_libusb.shar > >>>>>> > >>>>>> Distfile: > >>>>>> > >>>>>> http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > >>>>>> > >>>>>> 10/amd64 package: > >>>>>> > >>>>>> http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > >>>>>> > >>>>>> (built via: > >>>>>> > >>>>>> poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > >>>>>> > >>>>>> - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > >>>>>> doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > >>>>>> Cc'd...) > >>>>>> > >>>>> > >>>>> Juergen, > >>>> Hi! > >>>>> > >>>>> What would be the reason for this update? > >>>>> > >>>>> My stuff may be out of date, but it was all tested and working. I verified > >>>>> it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > >>>>> this stuff was written. > >>>>> > >>>> I was just thinking an updated version may be useful, but if it's > >>>> already working for everyone maybe less so... > >>>> > >>>> Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > >>>> stuff added some functions since 9.x at least... maybe hps would know > >>>> (Cc'd.) > >>>> > >>> > >>> Juergen, > >>> > >>> I think this package is useful and is looking for maintainer, so if you have > >>> time and energy, I'm OK with upgrading it, but I suggest testing it first. > >>> Bjoern might be interested too. > >>> > >> You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it printed > >> nothing, neither with my nor with your older version, but maybe it's just > >> `too new' for our current linuxolator. > > > > I assume you have at least 1 USB device while trying this. I don't remember > > exactly, but while trying within Linuxolator, you may need devfs/procfs to > > be mounted under Linuxolator's root directory. > > My understanding and from looking at trace is that if we cannot find it in /compat/linux we ale search in /; so no need for an extra mount unless maybe you run chrooted. > > > > So you'll have to figure this out. > > > > Does it return with 0 exit code? > > > > If not, lsusb should be simple enough to let you place printf() all over the > > place and understand out when it's failing. > > For me the problem was a clock_gettime() call in the libusb which my glibc did not provide. That made all things fail (silently) until I used linux ?rtld" tracing to see the unresolved symbol from libusb/the commercial 3rd party software dynamically loading libusb. > And my linux_kdump ends like this: 35607 lsusb CALL munmap(0x28247000,0x8000) 35607 lsusb RET munmap 0 35607 lsusb CALL linux_open(0x28090c31,0,0x28081e00) 35607 lsusb NAMI "/compat/linux/dev/usbctl" 35607 lsusb NAMI "/dev/usbctl" 35607 lsusb RET linux_open 3 35607 lsusb CALL linux_ioctl(0x3,0xffe5 ,0xffffc5d8) 35607 lsusb RET linux_ioctl 0 35607 lsusb CALL close(0x3) 35607 lsusb RET close 0 35607 lsusb CALL linux_exit_group(0x1) 35607 lsusb UNKNOWN(11) and the exit code is 1, so I guess it's failing on an unhandled syscall or something like that. Juergen From owner-freebsd-usb@FreeBSD.ORG Tue Feb 11 19:57:40 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 30E38B06; Tue, 11 Feb 2014 19:57:40 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 693C91AA0; Tue, 11 Feb 2014 19:57:39 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) by freebsd.czest.pl (8.14.5/8.14.5) with ESMTP id s1BJuo8W021794; Tue, 11 Feb 2014 19:56:50 GMT (envelope-from wkoszek@freebsd.czest.pl) Received: (from wkoszek@localhost) by freebsd.czest.pl (8.14.5/8.14.5/Submit) id s1BJuoxN021791; Tue, 11 Feb 2014 19:56:50 GMT (envelope-from wkoszek) Date: Tue, 11 Feb 2014 19:56:50 +0000 From: "Wojciech A. Koszek" To: Juergen Lock Subject: Re: CFT: Re: linux libusb again, I made an updated port... Message-ID: <20140211195650.GI12994@FreeBSD.org> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> <20140210041845.GG12994@FreeBSD.org> <20140210231109.GA54389@enceladus10.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140210231109.GA54389@enceladus10.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-0.4 required=5.0 tests=RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on freebsd.czest.pl X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (freebsd.czest.pl [212.87.224.105]); Tue, 11 Feb 2014 19:56:54 +0000 (UTC) Cc: freebsd-emulation@FreeBSD.org, "Bjoern A. Zeeb" , bapt@FreeBSD.org, freebsd-usb@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 19:57:40 -0000 On Tue, Feb 11, 2014 at 12:11:09AM +0100, Juergen Lock wrote: > On Mon, Feb 10, 2014 at 11:06:27AM +0000, Bjoern A. Zeeb wrote: > > > > On 10 Feb 2014, at 04:18 , Wojciech A. Koszek wrote: > > > > > On nie, lut 09, 2014 at 02:59:06 +0100, Juergen Lock wrote: > > >> On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: > > >>> On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > > >>>> On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > > >>>>> On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > > >>>>>> Hi! > > >>>>>> > > >>>>>> This came up on irc so I tried to build a linux libusb port (before > > >>>>>> I learned about ports/146895), mine uses linux_base-gentoo-stage3 > > >>>>>> like linux_kdump with a src/lib/libusb head snapshot so it's more > > >>>>>> up to date than wkoszek's build (ports/146895), and it's really > > >>>>>> easy to update it again. Also maybe it can be used as linux > > >>>>>> libusb-1.0.so too; I didn't actually test it tho. > > >>>>>> > > >>>>>> Should this be committed? Is wkoszek's version better since it > > >>>>>> also builds on < 10.x? Comments welcome... > > >>>>>> > > >>>>>> wkoszek's version: > > >>>>>> > > >>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > > >>>>>> > > >>>>>> Mine: > > >>>>>> > > >>>>>> http://people.freebsd.org/~nox/tmp/linux_libusb.shar > > >>>>>> > > >>>>>> Distfile: > > >>>>>> > > >>>>>> http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > > >>>>>> > > >>>>>> 10/amd64 package: > > >>>>>> > > >>>>>> http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > > >>>>>> > > >>>>>> (built via: > > >>>>>> > > >>>>>> poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > > >>>>>> > > >>>>>> - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > > >>>>>> doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > > >>>>>> Cc'd...) > > >>>>>> > > >>>>> > > >>>>> Juergen, > > >>>> Hi! > > >>>>> > > >>>>> What would be the reason for this update? > > >>>>> > > >>>>> My stuff may be out of date, but it was all tested and working. I verified > > >>>>> it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > > >>>>> this stuff was written. > > >>>>> > > >>>> I was just thinking an updated version may be useful, but if it's > > >>>> already working for everyone maybe less so... > > >>>> > > >>>> Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > > >>>> stuff added some functions since 9.x at least... maybe hps would know > > >>>> (Cc'd.) > > >>>> > > >>> > > >>> Juergen, > > >>> > > >>> I think this package is useful and is looking for maintainer, so if you have > > >>> time and energy, I'm OK with upgrading it, but I suggest testing it first. > > >>> Bjoern might be interested too. > > >>> > > >> You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it printed > > >> nothing, neither with my nor with your older version, but maybe it's just > > >> `too new' for our current linuxolator. > > > > > > I assume you have at least 1 USB device while trying this. I don't remember > > > exactly, but while trying within Linuxolator, you may need devfs/procfs to > > > be mounted under Linuxolator's root directory. > > > > My understanding and from looking at trace is that if we cannot find it in /compat/linux we ale search in /; so no need for an extra mount unless maybe you run chrooted. > > > > > > > So you'll have to figure this out. > > > > > > Does it return with 0 exit code? > > > > > > If not, lsusb should be simple enough to let you place printf() all over the > > > place and understand out when it's failing. > > > > For me the problem was a clock_gettime() call in the libusb which my glibc did not provide. That made all things fail (silently) until I used linux ?rtld" tracing to see the unresolved symbol from libusb/the commercial 3rd party software dynamically loading libusb. > > > And my linux_kdump ends like this: > > 35607 lsusb CALL munmap(0x28247000,0x8000) > 35607 lsusb RET munmap 0 > 35607 lsusb CALL linux_open(0x28090c31,0,0x28081e00) > 35607 lsusb NAMI "/compat/linux/dev/usbctl" > 35607 lsusb NAMI "/dev/usbctl" > 35607 lsusb RET linux_open 3 > 35607 lsusb CALL linux_ioctl(0x3,0xffe5 ,0xffffc5d8) > 35607 lsusb RET linux_ioctl 0 > 35607 lsusb CALL close(0x3) > 35607 lsusb RET close 0 > 35607 lsusb CALL linux_exit_group(0x1) > 35607 lsusb UNKNOWN(11) > > and the exit code is 1, so I guess it's failing on an unhandled > syscall or something like that. Juergen Can you send the full trace with all eventual child processes? If you could copy&paste: open libusb for each bus for each device open device to a separate program, we could make it libusb/Linuxolator regression test. This would also help us match ptrace<->line number output. Which FreeBSD are you using? This may indicate some relationship with http://www.freebsd.org/cgi/query-pr.cgi?pr=141439 -- Wojciech A. Koszek wkoszek@FreeBSD.czest.pl http://FreeBSD.czest.pl/~wkoszek/ From owner-freebsd-usb@FreeBSD.ORG Tue Feb 11 23:22:45 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D895CC7; Tue, 11 Feb 2014 23:22:45 +0000 (UTC) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 397D21DFA; Tue, 11 Feb 2014 23:22:44 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id D114C1E007B7; Wed, 12 Feb 2014 00:22:36 +0100 (CET) Received: from enceladus10.kn-bremen.de (noident@localhost [127.0.0.1]) by enceladus10.kn-bremen.de (8.14.5/8.14.5) with ESMTP id s1BNKnek091439; Wed, 12 Feb 2014 00:20:49 +0100 (CET) (envelope-from nox@enceladus10.kn-bremen.de) Received: (from nox@localhost) by enceladus10.kn-bremen.de (8.14.5/8.14.5/Submit) id s1BNKmTe091438; Wed, 12 Feb 2014 00:20:48 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Wed, 12 Feb 2014 00:20:48 +0100 To: "Wojciech A. Koszek" Subject: Re: CFT: Re: linux libusb again, I made an updated port... Message-ID: <20140211232048.GA91008@enceladus10.kn-bremen.de> References: <20140207201208.GA59695@enceladus10.kn-bremen.de> <20140207204928.GD12994@FreeBSD.org> <20140208084546.GA74796@enceladus10.kn-bremen.de> <20140209025624.GE12994@FreeBSD.org> <20140209135905.GA13024@enceladus10.kn-bremen.de> <20140210041845.GG12994@FreeBSD.org> <20140210231109.GA54389@enceladus10.kn-bremen.de> <20140211195650.GI12994@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140211195650.GI12994@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: bapt@FreeBSD.org, hselasky@FreeBSD.org, Juergen Lock , freebsd-emulation@FreeBSD.org, "Bjoern A. Zeeb" , freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 23:22:45 -0000 On Tue, Feb 11, 2014 at 07:56:50PM +0000, Wojciech A. Koszek wrote: > On Tue, Feb 11, 2014 at 12:11:09AM +0100, Juergen Lock wrote: > > On Mon, Feb 10, 2014 at 11:06:27AM +0000, Bjoern A. Zeeb wrote: > > > > > > On 10 Feb 2014, at 04:18 , Wojciech A. Koszek wrote: > > > > > > > On nie, lut 09, 2014 at 02:59:06 +0100, Juergen Lock wrote: > > > >> On Sun, Feb 09, 2014 at 02:56:24AM +0000, Wojciech A. Koszek wrote: > > > >>> On sob, lut 08, 2014 at 09:45:46 +0100, Juergen Lock wrote: > > > >>>> On Fri, Feb 07, 2014 at 08:49:28PM +0000, Wojciech A. Koszek wrote: > > > >>>>> On pi??, lut 07, 2014 at 09:12:08 +0100, Juergen Lock wrote: > > > >>>>>> Hi! > > > >>>>>> > > > >>>>>> This came up on irc so I tried to build a linux libusb port (before > > > >>>>>> I learned about ports/146895), mine uses linux_base-gentoo-stage3 > > > >>>>>> like linux_kdump with a src/lib/libusb head snapshot so it's more > > > >>>>>> up to date than wkoszek's build (ports/146895), and it's really > > > >>>>>> easy to update it again. Also maybe it can be used as linux > > > >>>>>> libusb-1.0.so too; I didn't actually test it tho. > > > >>>>>> > > > >>>>>> Should this be committed? Is wkoszek's version better since it > > > >>>>>> also builds on < 10.x? Comments welcome... > > > >>>>>> > > > >>>>>> wkoszek's version: > > > >>>>>> > > > >>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 > > > >>>>>> > > > >>>>>> Mine: > > > >>>>>> > > > >>>>>> http://people.freebsd.org/~nox/tmp/linux_libusb.shar > > > >>>>>> > > > >>>>>> Distfile: > > > >>>>>> > > > >>>>>> http://people.freebsd.org/~nox/tmp/distfiles/linux_libusb-11.0r261448.tar.bz2 > > > >>>>>> > > > >>>>>> 10/amd64 package: > > > >>>>>> > > > >>>>>> http://people.freebsd.org/~nox/tmp/packages/10amd64/linux_libusb-11.0r261448.txz > > > >>>>>> > > > >>>>>> (built via: > > > >>>>>> > > > >>>>>> poudriere bulk -v -j 10amd64 -p custom devel/linux_libusb > > > >>>>>> > > > >>>>>> - btw for some reason the dependency emulators/linux_base-gentoo-stage3 > > > >>>>>> doesn't build for 10i386 in poudriere bulk, I get a pkg segfault. bapt > > > >>>>>> Cc'd...) > > > >>>>>> > > > >>>>> > > > >>>>> Juergen, > > > >>>> Hi! > > > >>>>> > > > >>>>> What would be the reason for this update? > > > >>>>> > > > >>>>> My stuff may be out of date, but it was all tested and working. I verified > > > >>>>> it with Linux'ish lsusb(1) and USB-based FPGA JTAG programmer, for which > > > >>>>> this stuff was written. > > > >>>>> > > > >>>> I was just thinking an updated version may be useful, but if it's > > > >>>> already working for everyone maybe less so... > > > >>>> > > > >>>> Or would it work as a linux libusb-1.0.so too? I know the libusb 1.0 > > > >>>> stuff added some functions since 9.x at least... maybe hps would know > > > >>>> (Cc'd.) > > > >>>> > > > >>> > > > >>> Juergen, > > > >>> > > > >>> I think this package is useful and is looking for maintainer, so if you have > > > >>> time and energy, I'm OK with upgrading it, but I suggest testing it first. > > > >>> Bjoern might be interested too. > > > >>> > > > >> You mean bz@ ? Cc'd. I tried testing lsusb from debian sid but it printed > > > >> nothing, neither with my nor with your older version, but maybe it's just > > > >> `too new' for our current linuxolator. > > > > > > > > I assume you have at least 1 USB device while trying this. I don't remember > > > > exactly, but while trying within Linuxolator, you may need devfs/procfs to > > > > be mounted under Linuxolator's root directory. > > > > > > My understanding and from looking at trace is that if we cannot find it in /compat/linux we ale search in /; so no need for an extra mount unless maybe you run chrooted. > > > > > > > > > > So you'll have to figure this out. > > > > > > > > Does it return with 0 exit code? > > > > > > > > If not, lsusb should be simple enough to let you place printf() all over the > > > > place and understand out when it's failing. > > > > > > For me the problem was a clock_gettime() call in the libusb which my glibc did not provide. That made all things fail (silently) until I used linux ?rtld" tracing to see the unresolved symbol from libusb/the commercial 3rd party software dynamically loading libusb. > > > > > And my linux_kdump ends like this: > > > > 35607 lsusb CALL munmap(0x28247000,0x8000) > > 35607 lsusb RET munmap 0 > > 35607 lsusb CALL linux_open(0x28090c31,0,0x28081e00) > > 35607 lsusb NAMI "/compat/linux/dev/usbctl" > > 35607 lsusb NAMI "/dev/usbctl" > > 35607 lsusb RET linux_open 3 > > 35607 lsusb CALL linux_ioctl(0x3,0xffe5 ,0xffffc5d8) > > 35607 lsusb RET linux_ioctl 0 > > 35607 lsusb CALL close(0x3) > > 35607 lsusb RET close 0 > > 35607 lsusb CALL linux_exit_group(0x1) > > 35607 lsusb UNKNOWN(11) > > > > and the exit code is 1, so I guess it's failing on an unhandled > > syscall or something like that. > > Juergen > > Can you send the full trace with all eventual child processes? If you could > copy&paste: > > open libusb > for each bus > for each device > open device > > to a separate program, we could make it libusb/Linuxolator regression test. > This would also help us match ptrace<->line number output. > There are no child processes and it seems it doesn't even get to enumerate buses, i.e. the /dev/usbctl above is the only usb-related thing it opens. I've put the full kdump here: http://people.freebsd.org/~nox/tmp/lsusb.kdump.txt.xz (don't be surprised about the libz.so.1 path, the one from fc10 was too old so I had to point LD_LIBRARY_PATH at debian's one I copied.) > Which FreeBSD are you using? > 10.0-r. > This may indicate some relationship with > > http://www.freebsd.org/cgi/query-pr.cgi?pr=141439 > Well at least 10.0 should have that fix already. Maybe I can find an older (fc10?) lsusb later... Thanx, Juergen From owner-freebsd-usb@FreeBSD.ORG Wed Feb 12 15:53:00 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E1B33DE1 for ; Wed, 12 Feb 2014 15:53:00 +0000 (UTC) Received: from ratatosk.b1t.name (ratatosk.b1t.name [46.150.100.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9D11100 for ; Wed, 12 Feb 2014 15:53:00 +0000 (UTC) Received: from [192.168.1.129] (mau.donbass.com [92.242.127.250]) by ratatosk.b1t.name (Postfix) with ESMTPSA id 5FF122A8 for ; Wed, 12 Feb 2014 17:52:59 +0200 (EET) Message-ID: <52FB98DA.6080108@b1t.name> Date: Wed, 12 Feb 2014 17:52:58 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Subject: new usb device probably, needs quirks Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 15:53:00 -0000 Hi all. # usbconfig -d 5.2 dump_device_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (200mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0930 idProduct = 0x6544 bcdDevice = 0x0100 iManufacturer = 0x0001 < > iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 # usbconfig -d 5.2 reset Feb 12 17:44:56 urquan kernel: umass0: at uhub5, port 4, addr 2 (disconnected) Feb 12 17:44:57 urquan kernel: umass0: on usbus5 Feb 12 17:44:57 urquan kernel: umass0: SCSI over Bulk-Only; quirks = 0x4100 Feb 12 17:44:57 urquan kernel: umass0:1:0:-1: Attached to scbus1 Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0 Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> Removable Direct Access SCSI-0 device Feb 12 17:44:57 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F Feb 12 17:44:57 urquan kernel: da7: 40.000MB/s transfers Feb 12 17:44:57 urquan kernel: da7: 7397MB (15149056 512 byte sectors: 255H 63S/T 942C) Feb 12 17:44:57 urquan kernel: da7: quirks=0x2 Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): got CAM status 0x50 Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): fatal error, failed to attach to device Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0 Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> s/n E954F90DBA26CC60EDC50A0F detached Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): Periph destroyed # usbconfig -d 5.2 add_quirk UQ_MSC_NO_PREVENT_ALLOW # usbconfig -d 5.2 reset Feb 12 17:47:51 urquan kernel: umass0: at uhub5, port 4, addr 2 (disconnected) Feb 12 17:47:51 urquan kernel: umass0: on usbus5 Feb 12 17:47:51 urquan kernel: umass0: SCSI over Bulk-Only; quirks = 0xc100 Feb 12 17:47:51 urquan kernel: umass0:1:0:-1: Attached to scbus1 Feb 12 17:47:52 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0 Feb 12 17:47:52 urquan kernel: da7: < USB Flash Memory 1.00> Removable Direct Access SCSI-0 device Feb 12 17:47:52 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F Feb 12 17:47:52 urquan kernel: da7: 40.000MB/s transfers Feb 12 17:47:52 urquan kernel: da7: 7397MB (15149056 512 byte sectors: 255H 63S/T 942C) Feb 12 17:47:52 urquan kernel: da7: quirks=0x2 -- Sphinx of black quartz, judge my vow. From owner-freebsd-usb@FreeBSD.ORG Wed Feb 12 17:39:16 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94842138 for ; Wed, 12 Feb 2014 17:39:16 +0000 (UTC) Received: from g2host.com (mailfront3.g2host.com [208.42.184.241]) by mx1.freebsd.org (Postfix) with ESMTP id 619E61A5A for ; Wed, 12 Feb 2014 17:39:15 +0000 (UTC) Received: from [173.165.236.123] (account cjd@small-tree.com HELO cjd.local) by mailfront3.g2host.com (CommuniGate Pro SMTP 5.3.11) with ESMTPSA id 142897406; Wed, 12 Feb 2014 11:29:09 -0600 Message-ID: <52FBAF6A.5000304@small-tree.com> Date: Wed, 12 Feb 2014 11:29:14 -0600 From: Chris Duffy User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Question on Freebsd 9.1, usb interface to a UPSonic CXR 2000 using NUT code. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cjd@small-tree.com X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 17:39:16 -0000 I have a customer of mine that just bought a UPSonic CXR 2000 and is trying to connect the usb cable from this UPS to a Freebsd 9.1 system running the 2.6.5 NUT code. Freebsd/NUT does not see the device properly. I have also been working with the NUT people and they suggested that I discuss this issue with the freebsd-usb folks..... Here are some command output that the NUT people asked for and after seeing it, they think it may be a bug on Freebsd so here I am asking for help :) They also stated that they had thought that others may have gotten the blazer_usb driver to work properly on Freebsd but........ I deactivated the uhidd stuff since NUT suggested this in order to get more debug info.... # uhidd -v -u /dev/ugen1.3 ugen1.3[0]-> Report descriptor size = 27 ugen1.3[0]-> Kernel driver is active ugen1.3[0]-> kernel driver detached! ugen1.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 # /usr/local/libexec/nut/blazer_usb -a UPSonic -u root -DDDD 0.000000 debug level is '4' 0.176793 Checking device (06DA/0005) (/dev/usb//dev/ugen1.3) 0.183672 - VendorID: 06da 0.183696 - ProductID: 0005 0.183699 - Manufacturer: PPC 0.183703 - Product: USB UPS 0.183707 - Serial Number: unknown 0.183710 - Bus: /dev/usb 0.183714 Trying to match device 0.183718 Device matches 0.183746 Trying megatec protocol... 0.184566 send: Q1 0.423946 read: (239.3 239.3 229.9 027 50.0 2.19 22.8 00000001 0.423988 Status read in 1 tries 0.424000 Supported UPS detected with megatec protocol 1.455927 send: Unknown error 1.455973 Permissions problem: Input/output error Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 (2.6.5-Unversioned directory) I have checked all the ownership/permissions on the /dev related files and confirmed with NUT the proper stuff.... Is there something I am missing to support the usb attachment for UPS driver for this particular UPS? Thx for any pointers/help. Chris From owner-freebsd-usb@FreeBSD.ORG Fri Feb 14 08:20:05 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E275DD8 for ; Fri, 14 Feb 2014 08:20:05 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id CC4231BB6 for ; Fri, 14 Feb 2014 08:20:04 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 690FF100219; Fri, 14 Feb 2014 09:20:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id DCFD58FD773; Fri, 14 Feb 2014 09:20:57 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iaxnC+t-AWcc; Fri, 14 Feb 2014 09:20:56 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id CAF7C8FD750; Fri, 14 Feb 2014 09:20:56 +0100 (CET) Message-ID: <52FDD1E8.7040804@bitfrost.no> Date: Fri, 14 Feb 2014 09:20:56 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Volodymyr Kostyrko , freebsd-usb@FreeBSD.org Subject: Re: new usb device probably, needs quirks References: <52FB98DA.6080108@b1t.name> In-Reply-To: <52FB98DA.6080108@b1t.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 08:20:05 -0000 On 02/12/14 16:52, Volodymyr Kostyrko wrote: > Hi all. > > # usbconfig -d 5.2 dump_device_desc > ugen5.2: at usbus5, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON (200mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0930 > idProduct = 0x6544 > bcdDevice = 0x0100 > iManufacturer = 0x0001 < > > iProduct = 0x0002 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > # usbconfig -d 5.2 reset > > Feb 12 17:44:56 urquan kernel: umass0: at uhub5, port 4, addr 2 > (disconnected) > Feb 12 17:44:57 urquan kernel: umass0: class 0/0, rev 2.00/1.00, addr 2> on usbus5 > Feb 12 17:44:57 urquan kernel: umass0: SCSI over Bulk-Only; quirks = > 0x4100 > Feb 12 17:44:57 urquan kernel: umass0:1:0:-1: Attached to scbus1 > Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 > lun 0 > Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> Removable > Direct Access SCSI-0 device > Feb 12 17:44:57 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F > Feb 12 17:44:57 urquan kernel: da7: 40.000MB/s transfers > Feb 12 17:44:57 urquan kernel: da7: 7397MB (15149056 512 byte sectors: > 255H 63S/T 942C) > Feb 12 17:44:57 urquan kernel: da7: quirks=0x2 > Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): got CAM status 0x50 > Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): fatal error, > failed to attach to device > Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 > lun 0 > Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> s/n > E954F90DBA26CC60EDC50A0F detached > Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): Periph destroyed > > # usbconfig -d 5.2 add_quirk UQ_MSC_NO_PREVENT_ALLOW > # usbconfig -d 5.2 reset Hi, Can you send a patch adding this quirk to: sys/dev/usb/quirk/usb_quirk.c And vendor and product IDs to: sys/dev/usb/usbdevs Which you have tested? Thank you, --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Feb 14 08:21:47 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5528FDD for ; Fri, 14 Feb 2014 08:21:47 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id 9DBE51C2A for ; Fri, 14 Feb 2014 08:21:47 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 96955100221; Fri, 14 Feb 2014 09:21:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 1C8508FD8EF; Fri, 14 Feb 2014 09:22:41 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rM+2C2w6ffgJ; Fri, 14 Feb 2014 09:22:40 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 0C9BB8FD819; Fri, 14 Feb 2014 09:22:40 +0100 (CET) Message-ID: <52FDD24F.40904@bitfrost.no> Date: Fri, 14 Feb 2014 09:22:39 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Chris Duffy , freebsd-usb@freebsd.org Subject: Re: Question on Freebsd 9.1, usb interface to a UPSonic CXR 2000 using NUT code. References: <52FBAF6A.5000304@small-tree.com> In-Reply-To: <52FBAF6A.5000304@small-tree.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 08:21:48 -0000 On 02/12/14 18:29, Chris Duffy wrote: > I have a customer of mine that just bought a > > UPSonic CXR 2000 > > and is trying to connect the usb cable from this UPS > to a Freebsd 9.1 system running the 2.6.5 NUT code. > Freebsd/NUT does not see the device properly. > > I have also been working with the NUT people and > they suggested that I discuss this issue with the freebsd-usb > folks..... > > Here are some command output that the NUT people asked for > and after seeing it, they think it may be a bug on Freebsd > so here I am asking for help :) They also stated that they > had thought that others may have gotten the blazer_usb > driver to work properly on Freebsd but........ > > I deactivated the uhidd stuff since NUT suggested this > in order to get more debug info.... > > > # uhidd -v -u /dev/ugen1.3 > > ugen1.3[0]-> Report descriptor size = 27 > ugen1.3[0]-> Kernel driver is active > ugen1.3[0]-> kernel driver detached! > ugen1.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 > > > # /usr/local/libexec/nut/blazer_usb -a UPSonic -u root -DDDD > > 0.000000 debug level is '4' > 0.176793 Checking device (06DA/0005) (/dev/usb//dev/ugen1.3) > 0.183672 - VendorID: 06da > 0.183696 - ProductID: 0005 > 0.183699 - Manufacturer: PPC > 0.183703 - Product: USB UPS > 0.183707 - Serial Number: unknown > 0.183710 - Bus: /dev/usb > 0.183714 Trying to match device > 0.183718 Device matches > 0.183746 Trying megatec protocol... > 0.184566 send: Q1 > 0.423946 read: (239.3 239.3 229.9 027 50.0 2.19 22.8 00000001 > 0.423988 Status read in 1 tries > 0.424000 Supported UPS detected with megatec protocol > 1.455927 send: Unknown error > 1.455973 Permissions problem: Input/output error > > > Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 > (2.6.5-Unversioned directory) > > I have checked all the ownership/permissions on the /dev > related files and confirmed with NUT the proper stuff.... > > Is there something I am missing to support the usb attachment > for UPS driver for this particular UPS? > > Thx for any pointers/help. Hi, For ugenX.Y run: usbdump -i usbusX -f Y -s 65536 -vvv And you will see right away what USB traffic is causing the problem. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Feb 14 16:44:47 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41D21426; Fri, 14 Feb 2014 16:44:47 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 13A571C64; Fri, 14 Feb 2014 16:44:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1EGikrO067057; Fri, 14 Feb 2014 16:44:46 GMT (envelope-from brueffer@freefall.freebsd.org) Received: (from brueffer@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1EGijZ5067056; Fri, 14 Feb 2014 17:44:45 +0100 (CET) (envelope-from brueffer) Date: Fri, 14 Feb 2014 17:44:45 +0100 (CET) Message-Id: <201402141644.s1EGijZ5067056@freefall.freebsd.org> To: pinter@tresorium.hu, brueffer@FreeBSD.org, freebsd-usb@FreeBSD.org From: brueffer@FreeBSD.org Subject: Re: usb/165815: [usbdevs] [patch] add k3772z 3g modem support X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 16:44:47 -0000 Synopsis: [usbdevs] [patch] add k3772z 3g modem support State-Changed-From-To: open->closed State-Changed-By: brueffer State-Changed-When: Fri Feb 14 17:44:03 CET 2014 State-Changed-Why: This change was merged to 9-STABLE in r232873 a while ago. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=165815 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 15 13:26:06 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E36EED0; Sat, 15 Feb 2014 13:26:06 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D225B16EA; Sat, 15 Feb 2014 13:26:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1FDQ5qv082955; Sat, 15 Feb 2014 13:26:05 GMT (envelope-from brueffer@freefall.freebsd.org) Received: (from brueffer@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1FDQ5gx082954; Sat, 15 Feb 2014 14:26:05 +0100 (CET) (envelope-from brueffer) Date: Sat, 15 Feb 2014 14:26:05 +0100 (CET) Message-Id: <201402151326.s1FDQ5gx082954@freefall.freebsd.org> To: Daan@vehosting.nl, brueffer@FreeBSD.org, freebsd-usb@FreeBSD.org From: brueffer@FreeBSD.org Subject: Re: usb/155663: [usbdevs] [patch] Add support for Supertop Nano 1GB USB stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Feb 2014 13:26:06 -0000 Synopsis: [usbdevs] [patch] Add support for Supertop Nano 1GB USB stick State-Changed-From-To: open->closed State-Changed-By: brueffer State-Changed-When: Sat Feb 15 14:24:56 CET 2014 State-Changed-Why: Support for this was added in r241553 some time ago. Thanks for the contribution! http://www.freebsd.org/cgi/query-pr.cgi?pr=155663