From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 09:03:49 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA179106564A for ; Sun, 12 Dec 2010 09:03:49 +0000 (UTC) (envelope-from oleg.nauman@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id AAC1A8FC0A for ; Sun, 12 Dec 2010 09:03:49 +0000 (UTC) Received: by pzk32 with SMTP id 32so406811pzk.13 for ; Sun, 12 Dec 2010 01:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zaZKHY/ArmkvB7/KJFViIyt3ZMCRrvnvviN37JkFJzE=; b=peVtgZfdDKDbzTZBkycQ+Zit5rehPepDtX6p46KIB5mY6+nUVlUjOvRg9PjwzrGWtK dXw7kkmSIqk3WZ8RgwDOLY9tfcNqD+c6SnRgntnoDZBy2fdqTR8bsWdBQJqCbwgR4Hz1 w4vucAxtziwMbgkXYiufu2WrC7WwPPPQHhmsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pwtHX3wNr3eunlpERd9mFQxdRwlfEuIEXW/w8t7Me3jMr0CS/0z9EnRcw+91IfCpnc CdV34ihl7gSwehrssdQVNXiaETywx+lXPCaAOt9FGKP4/YA5Wagt374BDxauqG7GJmsl 3uIE0d0EdHWTKZWbJfxijwl/MikXegCcZRmcY= MIME-Version: 1.0 Received: by 10.143.11.19 with SMTP id o19mr2103966wfi.100.1292144629017; Sun, 12 Dec 2010 01:03:49 -0800 (PST) Received: by 10.142.230.17 with HTTP; Sun, 12 Dec 2010 01:03:48 -0800 (PST) In-Reply-To: <21DC55BC-CC3B-48EF-8C9A-C29674CD38E7@van-laarhoven.org> References: <201012101915.40878.hselasky@c2i.net> <201012111103.09422.hselasky@c2i.net> <21DC55BC-CC3B-48EF-8C9A-C29674CD38E7@van-laarhoven.org> Date: Sun, 12 Dec 2010 11:03:48 +0200 Message-ID: From: Oleg Nauman To: Nick Hibma Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: USB related panic on 8.2-PRERELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 09:03:50 -0000 On Sun, Dec 12, 2010 at 12:48 AM, Nick Hibma wrote= : >>> But we will continue the saga about this strange USB modem, if no >>> objections from your side :) >>> Is it possible to apply some quirk or some another workaround which >>> will solve the issue with endless USB_ERR_STALLED reported while it >>> trying to attach its builtin cardreader? >> >> Nick, do you have any hints on this? > > It says in the messages log (a view messages ago) that it does not suppor= t GET MAX LUN. It is derived error I think When it attaches finally, it report no errors at all: Dec 12 10:38:36 rainhaven kernel: ugen5.2: at usbus5 Dec 12 10:38:36 rainhaven kernel: umodem0: on usbus5 Dec 12 10:38:36 rainhaven kernel: umodem0: data interface 1, has CM over da= ta, h as break Dec 12 10:38:36 rainhaven kernel: umass0: on usbus5 Dec 12 10:38:37 rainhaven root: /usr/local/etc/rc.d/webcamd: WARNING: faile= d to start webcamd Dec 12 10:38:37 rainhaven kernel: da0 at umass-sim0 bus 0 scbus2 target 0 l= un 0 Dec 12 10:38:37 rainhaven kernel: da0: Removable Direct Access SCSI-0 device Dec 12 10:38:37 rainhaven kernel: Dec 12 10:38:37 rainhaven kernel: da0: 40.000MB/s transfers Dec 12 10:38:37 rainhaven kernel: da0: 952MB (1950720 512 byte sectors: 64H 32S/T 952C) Dec 12 10:38:37 rainhaven root: Unknown USB device: vendor 0x106c product 0x3711 bus uhub5 Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not start on a track boundary. Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not end on a track boundary. >You can quirk that: > > While the device is attached use the following command: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0usbconfig -d ugenX.Y add_quirk UQ_MSC_NO_GETMA= XLUN I was trying that but it not helps. Another question that it is very tricky because USB subsystem probes to (re)attach modem too quickly so usbconfig reports "Device not configured" or "No device match or lack of permissions". I will recompile the kernel with USB_DEBUG option enabled and provide you with some additional info. Thank you for our help. > > where ugenX.Y is the ugen device for the device that causes you trouble. = usbconfig will add a quirk using the PID/VID/RID for the device it finds at= that location. > > If that works, let me know, and I will commit the quirk into the quirk ta= ble. > > Nick freebsd-current@ removed from CC list From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 12:17:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AF8B106566C for ; Sun, 12 Dec 2010 12:17:03 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id A5C6D8FC08 for ; Sun, 12 Dec 2010 12:17:01 +0000 (UTC) Received: from cpbrm-ews09.kpnxchange.com ([10.94.84.140]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 12 Dec 2010 13:17:01 +0100 Received: from CPSMTPM-cmt107.kpnxchange.com ([195.121.3.23]) by cpbrm-ews09.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 12 Dec 2010 13:17:00 +0100 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by CPSMTPM-cmt107.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Sun, 12 Dec 2010 13:17:00 +0100 Received: from hillary.van-laarhoven.org (Hillary.van-laarhoven.org [10.66.0.100]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by uitsmijter.van-laarhoven.org (Postfix) with ESMTPSA id 2E2D64567; Sun, 12 Dec 2010 13:16:59 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Nick Hibma In-Reply-To: Date: Sun, 12 Dec 2010 13:16:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <52B4841B-A79C-4E40-A42A-E17A3F44E778@van-laarhoven.org> References: <201012101915.40878.hselasky@c2i.net> <201012111103.09422.hselasky@c2i.net> <21DC55BC-CC3B-48EF-8C9A-C29674CD38E7@van-laarhoven.org> To: Oleg Nauman X-Mailer: Apple Mail (2.1082) X-OriginalArrivalTime: 12 Dec 2010 12:17:00.0629 (UTC) FILETIME=[7A7E4050:01CB99F6] X-RcptDomain: freebsd.org Cc: freebsd-usb@freebsd.org Subject: Re: USB related panic on 8.2-PRERELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 12:17:03 -0000 > It is derived error I think > When it attaches finally, it report no errors at all: Whatever it is, the quirk should resolve it. MAX LUN is not necessary = per se I think. > Dec 12 10:38:36 rainhaven kernel: ugen5.2: at usbus5 > Dec 12 10:38:36 rainhaven kernel: umodem0: , rev 2.00/1.00, addr 2> on usbus5 > Dec 12 10:38:36 rainhaven kernel: umodem0: data interface 1, has CM = over data, h > as break > Dec 12 10:38:36 rainhaven kernel: umass0: rev 2.00/1.00, addr 2> on usbus5 > Dec 12 10:38:37 rainhaven root: /usr/local/etc/rc.d/webcamd: WARNING: = failed to > start webcamd > Dec 12 10:38:37 rainhaven kernel: da0 at umass-sim0 bus 0 scbus2 = target 0 lun 0 > Dec 12 10:38:37 rainhaven kernel: da0: > Removable Direct Access SCSI-0 device > Dec 12 10:38:37 rainhaven kernel: > Dec 12 10:38:37 rainhaven kernel: da0: 40.000MB/s transfers > Dec 12 10:38:37 rainhaven kernel: da0: 952MB (1950720 512 byte > sectors: 64H 32S/T 952C) > Dec 12 10:38:37 rainhaven root: Unknown USB device: vendor 0x106c > product 0x3711 bus uhub5 This is a bogus devd entry that is confusing. I will remove that remark > Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not > start on a track boundary. > Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not end > on a track boundary. GEOM finds it. So it works. >> You can quirk that: >>=20 >> While the device is attached use the following command: >>=20 >> usbconfig -d ugenX.Y add_quirk UQ_MSC_NO_GETMAXLUN >=20 > I was trying that but it not helps. Another question that it is very > tricky because USB subsystem probes to (re)attach modem too quickly so > usbconfig reports "Device not configured" or "No device match or lack > of permissions". > I will recompile the kernel with USB_DEBUG option enabled and provide > you with some additional info. >=20 > Thank you for our help. Compile your kernel without usb and load it as a module, or at least = load umass as a module. Without umass the device should stay and you can add the quirk, then = load umass and try again. Nick= From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 18:49:26 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F9BB106564A for ; Sun, 12 Dec 2010 18:49:26 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0A11E8FC0C for ; Sun, 12 Dec 2010 18:49:25 +0000 (UTC) Received: from beaver.home.critical.ch (80-218-148-45.dclient.hispeed.ch [80.218.148.45]) (authenticated bits=0) by mx.critical.ch (8.14.3/8.14.3/critical-1.0) with ESMTP id oBCInOoE054198 for ; Sun, 12 Dec 2010 19:49:24 +0100 (CET) (envelope-from ehaupt@FreeBSD.org) Date: Sun, 12 Dec 2010 19:49:24 +0100 From: Emanuel Haupt To: freebsd-usb@FreeBSD.org Message-Id: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 18:49:26 -0000 Is there any way I can make sure that the following device: ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0403 idProduct = 0x6001 bcdDevice = 0x0400 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 Is always registered as: /dev/usb/1.3.0 Using a pattern match on iSerialNumber could achieve that but how would I configure something like that? According to the /etc/devd.conf manpage I could create a symlink but that wouldn't solve my problem. Emanuel From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 21:51:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC7B7106566B for ; Sun, 12 Dec 2010 21:51:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0688FC28 for ; Sun, 12 Dec 2010 21:51:39 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=vDUu4pv7IaR8DTRzVjjCCOYxZ4yAx/7/dG3VXczAVmg= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=DCZ_Jw7fLqvWdUWNpZMA:9 a=rndJmodSvlNFGQqCPckA:7 a=VNxsEk_aGFEsaPtDlambGkJre6oA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 61188685; Sun, 12 Dec 2010 22:51:38 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 12 Dec 2010 22:51:58 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> In-Reply-To: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012122251.58439.hselasky@c2i.net> Cc: Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 21:51:40 -0000 On Sunday 12 December 2010 19:49:24 Emanuel Haupt wrote: > Is there any way I can make sure that the following device: > > ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x0403 > idProduct = 0x6001 > bcdDevice = 0x0400 > iManufacturer = 0x0000 > iProduct = 0x0000 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > Is always registered as: > > /dev/usb/1.3.0 No, this is currently not possible unless you find the USB port which is enumerated first (I.E. has the lowest second number.) --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 22:01:45 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74660106566B for ; Sun, 12 Dec 2010 22:01:45 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 16CC08FC15 for ; Sun, 12 Dec 2010 22:01:44 +0000 (UTC) Received: by wyf19 with SMTP id 19so5373949wyf.13 for ; Sun, 12 Dec 2010 14:01:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.159.131 with SMTP id j3mr1204380wbx.205.1292191303839; Sun, 12 Dec 2010 14:01:43 -0800 (PST) Sender: andy@fud.org.nz Received: by 10.227.143.200 with HTTP; Sun, 12 Dec 2010 14:01:43 -0800 (PST) In-Reply-To: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> Date: Mon, 13 Dec 2010 11:01:43 +1300 X-Google-Sender-Auth: 0CYfuhe-L1CPa1NeB9NKTqTC2iE Message-ID: From: Andrew Thompson To: Emanuel Haupt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 22:01:45 -0000 On 13 December 2010 07:49, Emanuel Haupt wrote: > Is there any way I can make sure that the following device: > > ugen1.3: at usbus1, cfg=3D0 md=3DHOST spd= =3DFULL (12Mbps) pwr=3DON > > =A0bLength =3D 0x0012 > =A0bDescriptorType =3D 0x0001 > =A0bcdUSB =3D 0x0200 > =A0bDeviceClass =3D 0x0000 > =A0bDeviceSubClass =3D 0x0000 > =A0bDeviceProtocol =3D 0x0000 > =A0bMaxPacketSize0 =3D 0x0008 > =A0idVendor =3D 0x0403 > =A0idProduct =3D 0x6001 > =A0bcdDevice =3D 0x0400 > =A0iManufacturer =3D 0x0000 =A0 > =A0iProduct =3D 0x0000 =A0 > =A0iSerialNumber =3D 0x0003 =A0 > =A0bNumConfigurations =3D 0x0001 > > Is always registered as: > > /dev/usb/1.3.0 You would be better making a symlink using devd rules, something like notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x0403"; match "product" "0x6001"; action "ln -s /dev/$cdev /dev/mydevice"; }; Andrew From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 23:09:51 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FCAF106564A for ; Sun, 12 Dec 2010 23:09:51 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ey0-f178.google.com (mail-ey0-f178.google.com [209.85.215.178]) by mx1.freebsd.org (Postfix) with ESMTP id C12978FC0A for ; Sun, 12 Dec 2010 23:09:50 +0000 (UTC) Received: by eyh5 with SMTP id 5so3093685eyh.37 for ; Sun, 12 Dec 2010 15:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:subject:x-enigmail-version :content-type:content-transfer-encoding; bh=mxEjHuRZwQdQ0/iY2fElCGJfGUxVFh3EYD5hgs6w634=; b=boxmyvSYXFKP5mt7jf+1EKBV6zXm6+dVsLm47U6Ef0OH8WUCjnPKXXdFc7SF5y1NFT ZvATovivqiSLjCnEBtCoia4WOuuT8hQImQU9pPcDsn+dW1g5hcbzCa1IdtsCMiTrCopA q98GxZbdmT+ZfJYrgoblXxuBHt0t9oA5qOIsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :subject:x-enigmail-version:content-type:content-transfer-encoding; b=c6QLMJplo0JU1TV1TG1XZKb5OiHzYEaoa48ixKfGOErewBOhY+WJWiOOXRfIcZ7pni TYKm4lBApht5sMwWdjoTeiy9mycO/PiEY3hCzZBqFMF+IHYF/HZA46dd/7J3IYTCg6rA aGcJVieRBEGSMQz3/QD0v/VMfT2K8bbPaOtMg= Received: by 10.213.9.204 with SMTP id m12mr1799144ebm.68.1292193654284; Sun, 12 Dec 2010 14:40:54 -0800 (PST) Received: from [192.168.1.64] (ip4da3ae31.direct-adsl.nl [77.163.174.49]) by mx.google.com with ESMTPS id q58sm4586544eeh.15.2010.12.12.14.40.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Dec 2010 14:40:53 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <4D054F76.1080401@freebsd.org> Date: Sun, 12 Dec 2010 23:40:54 +0100 From: Rene Ladan Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; nl-NL; rv:1.9.2.13) Gecko/20101210 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 23:09:51 -0000 Hi, I am writing a port [1] to control the Lego NXT brick with ROS, but when I run a test program it fails (permissions for the USB device are 666). This is on: % uname -a FreeBSD acer 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r216351M: Fri Dec 10 14:13:33 CET 2010 rene@acer:/usr/obj/usr/src/sys/ACER amd64 % rosrun nxt_python color_sensor_test.py Traceback (most recent call last): File "/usr/local/ros/stacks/nxt/nxt_python/sensor_tests/color_sensor_test.py", line 42, in test_sensors(sock.connect()) File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/usbsock.py", line 44, in connect self.handle.reset() usb.USBError: Unknown error Looking into usbsock.py: self.handle = self.device.open() self.handle.setConfiguration(1) self.handle.claimInterface(0) self.handle.reset() where self.device points to the USB end point for the NXT device (vendor 0x694, product 0x2) However, if I run the same program as root it fails a bit later: # rosrun nxt_python color_sensor_test.py -1 Traceback (most recent call last): File "/usr/local/ros/stacks/nxt/nxt_python/sensor_tests/color_sensor_test.py", line 42, in test_sensors(sock.connect()) File "/usr/local/ros/stacks/nxt/nxt_python/sensor_tests/color_sensor_test.py", line 11, in test_sensors cs = ColorSensor(b, PORT_1) File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/sensor.py", line 256, in __init__ self.set_light_color(None) File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/sensor.py", line 278, in set_light_color self.set_input_mode() File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/sensor.py", line 71, in set_input_mode self.mode) File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/brick.py", line 22, in poll self.sock.send(str(ogram)) File "/usr/local/ros/stacks/nxt/nxt_python/src/nxt/usbsock.py", line 65, in send self.handle.bulkWrite(self.blk_out.address, data) usb.USBError: Unknown error where self.handle is initialized in the same way as above. It works in Ubuntu 10.10, both native and when running from VirtualBox 4 (which has USB passthrough) under the above FreeBSD. Does anybody have an idea what could be wrong? Thanks, Rene [1] ftp://rene-ladan.nl/pub/freebsd/ros-nxt-0.1.0.tar.bz2 SIZE = 3842 SHA256 = a7a30bc5ef77230d6846577d3a4b1c7262d1c654ed32fcf0d8701c07c0867bea -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net) From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 07:56:53 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A93D8106564A; Mon, 13 Dec 2010 07:56:53 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id 27C848FC21; Mon, 13 Dec 2010 07:56:52 +0000 (UTC) Received: from wiggles.bwns.ch (localhost [IPv6:::1]) by mx.critical.ch (8.14.3/8.14.3/critical-1.0) with SMTP id oBD7upsu093757; Mon, 13 Dec 2010 08:56:51 +0100 (CET) (envelope-from ehaupt@FreeBSD.org) Date: Mon, 13 Dec 2010 08:56:51 +0100 From: Emanuel Haupt To: Andrew Thompson Message-Id: <20101213085651.43110117.ehaupt@FreeBSD.org> In-Reply-To: References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@FreeBSD.org Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 07:56:53 -0000 Andrew Thompson wrote: > On 13 December 2010 07:49, Emanuel Haupt wrote: > > Is there any way I can make sure that the following device: > > > > ugen1.3: at usbus1, cfg=3D0 md=3DHOST > > spd=3DFULL (12Mbps) pwr=3DON > > > > =A0bLength =3D 0x0012 > > =A0bDescriptorType =3D 0x0001 > > =A0bcdUSB =3D 0x0200 > > =A0bDeviceClass =3D 0x0000 > > =A0bDeviceSubClass =3D 0x0000 > > =A0bDeviceProtocol =3D 0x0000 > > =A0bMaxPacketSize0 =3D 0x0008 > > =A0idVendor =3D 0x0403 > > =A0idProduct =3D 0x6001 > > =A0bcdDevice =3D 0x0400 > > =A0iManufacturer =3D 0x0000 =A0 > > =A0iProduct =3D 0x0000 =A0 > > =A0iSerialNumber =3D 0x0003 =A0 > > =A0bNumConfigurations =3D 0x0001 > > > > Is always registered as: > > > > /dev/usb/1.3.0 >=20 > You would be better making a symlink using devd rules, something like >=20 > notify 100 { > match "system" "USB"; > match "subsystem" "DEVICE"; > match "type" "ATTACH"; > match "vendor" "0x0403"; > match "product" "0x6001"; > action "ln -s /dev/$cdev /dev/mydevice"; > }; Unfortunately the program in question uses libusb and the configuration only allows to define the device by specifying : and there are multiple identical devices around with only iSerialNumber being different from each other. Somehow I need to make sure the devices in the USB hub are always recognized in the same order. I guess one solution would be to generate the configuration each time the program starts. Emanuel From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 07:58:21 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07B3D1065670; Mon, 13 Dec 2010 07:58:21 +0000 (UTC) (envelope-from ehaupt@critical.ch) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id 950928FC12; Mon, 13 Dec 2010 07:58:20 +0000 (UTC) Received: from wiggles.bwns.ch (localhost [IPv6:::1]) by mx.critical.ch (8.14.3/8.14.3/critical-1.0) with SMTP id oBD7wFAS093894; Mon, 13 Dec 2010 08:58:16 +0100 (CET) (envelope-from ehaupt@critical.ch) Date: Mon, 13 Dec 2010 08:58:15 +0100 From: Emanuel Haupt To: Hans Petter Selasky Message-Id: <20101213085815.8e42455e.ehaupt@critical.ch> In-Reply-To: <201012122251.58439.hselasky@c2i.net> References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> <201012122251.58439.hselasky@c2i.net> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 07:58:21 -0000 Hans Petter Selasky wrote: > On Sunday 12 December 2010 19:49:24 Emanuel Haupt wrote: > > Is there any way I can make sure that the following device: > > > > ugen1.3: at usbus1, cfg=0 md=HOST > > spd=FULL (12Mbps) pwr=ON > > > > bLength = 0x0012 > > bDescriptorType = 0x0001 > > bcdUSB = 0x0200 > > bDeviceClass = 0x0000 > > bDeviceSubClass = 0x0000 > > bDeviceProtocol = 0x0000 > > bMaxPacketSize0 = 0x0008 > > idVendor = 0x0403 > > idProduct = 0x6001 > > bcdDevice = 0x0400 > > iManufacturer = 0x0000 > > iProduct = 0x0000 > > iSerialNumber = 0x0003 > > bNumConfigurations = 0x0001 > > > > Is always registered as: > > > > /dev/usb/1.3.0 > > No, this is currently not possible unless you find the USB port which > is enumerated first (I.E. has the lowest second number.) When you say 'currently', is there something like that planed? Emanuel From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 08:35:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 086811065741; Mon, 13 Dec 2010 08:35:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 5743E8FC15; Mon, 13 Dec 2010 08:35:44 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=4gzOIX-PUhrmFqv9VC8A:9 a=ceijqbtENdpawp7RbJkA:7 a=mzZFSXcjzmtHXsfydcUoCcXnzCsA:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 60451396; Mon, 13 Dec 2010 09:35:43 +0100 From: Hans Petter Selasky To: Emanuel Haupt Date: Mon, 13 Dec 2010 09:36:02 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> <201012122251.58439.hselasky@c2i.net> <20101213085815.8e42455e.ehaupt@critical.ch> In-Reply-To: <20101213085815.8e42455e.ehaupt@critical.ch> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012130936.02736.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 08:35:46 -0000 On Monday 13 December 2010 08:58:15 Emanuel Haupt wrote: > Hans Petter Selasky wrote: > > On Sunday 12 December 2010 19:49:24 Emanuel Haupt wrote: > > > Is there any way I can make sure that the following device: > > > > > > ugen1.3: at usbus1, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=ON > > > > > > bLength = 0x0012 > > > bDescriptorType = 0x0001 > > > bcdUSB = 0x0200 > > > bDeviceClass = 0x0000 > > > bDeviceSubClass = 0x0000 > > > bDeviceProtocol = 0x0000 > > > bMaxPacketSize0 = 0x0008 > > > idVendor = 0x0403 > > > idProduct = 0x6001 > > > bcdDevice = 0x0400 > > > iManufacturer = 0x0000 > > > iProduct = 0x0000 > > > iSerialNumber = 0x0003 > > > bNumConfigurations = 0x0001 > > > > > > Is always registered as: > > > > > > /dev/usb/1.3.0 > > > > No, this is currently not possible unless you find the USB port which > > is enumerated first (I.E. has the lowest second number.) > > When you say 'currently', is there something like that planed? No. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 10:51:08 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 152511065696 for ; Mon, 13 Dec 2010 10:51:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 343218FC17 for ; Mon, 13 Dec 2010 10:51:06 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=6fFSkuSYJ1kA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=UdRNKZWDJ1Fu7RbM4ZkA:9 a=lE1VHtcMZlwWt8cI4EDJM6sNgpgA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 62000608; Mon, 13 Dec 2010 11:51:05 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 13 Dec 2010 11:51:25 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4D054F76.1080401@freebsd.org> In-Reply-To: <4D054F76.1080401@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012131151.25655.hselasky@c2i.net> Cc: Rene Ladan Subject: Re: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 10:51:08 -0000 On Sunday 12 December 2010 23:40:54 Rene Ladan wrote: > Hi, > > I am writing a port [1] to control the Lego NXT brick with ROS, but when > I run a test program it fails (permissions for the USB device are 666). > This is on: > What dmesg is shown? Are other [kernel] drivers hooking into the USB interfaces used by your user-land driver? What is output from usbconfig -d X.Y dump_device_desc dump_curr_config_desc --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 11:08:31 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4844510657F9 for ; Mon, 13 Dec 2010 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 354568FC18 for ; Mon, 13 Dec 2010 11:08:31 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBDB8VJJ045665 for ; Mon, 13 Dec 2010 11:08:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBDB8U1c045661 for freebsd-usb@FreeBSD.org; Mon, 13 Dec 2010 11:08:30 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Dec 2010 11:08:30 GMT Message-Id: <201012131108.oBDB8U1c045661@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 Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 11:08:31 -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/152892 usb Not updating /etc files in installer FreeBSD-8.2-BETA1 o usb/152075 usb [usb8] [ehci] Add quirk for CS5536 USB o usb/150989 usb [patch] Add Netgear WG111V2_2 support to upgt(4) o usb/150892 usb [zyd] Whenever network contacted in any shape, way or p usb/150546 usb libusb(3) libusb_control_transfer() prototype is incor o usb/150401 usb [umass] [usb8] Errors from USB drives mixed between UF o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149934 usb [patch] [usb8] Transcend JetFlash V85 poor performance o usb/149900 usb [uftdi] [patch] FreeBSD 8.1 uftdi patch to support usb p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149675 usb [uftdi] [usb_serial] doesn't react to break properly o usb/149528 usb [zyd] Wireless USB stick not detected - vendor id 0x08 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 usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E p usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo 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 o 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 o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 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 o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone 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 o usb/141777 usb [usb8] [usbdevs] [rum] [patch] Support usbdevs / rum(4 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/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM 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 s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t 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 s usb/138570 usb [usb67] [panic] USB mass device panics current 7.2-STA o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no 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 p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera 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] Adding usb quirk for Sony USB flash drive 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/132312 usb [hang] Xorg 7.4 halts USB controller 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 p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir 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/130230 usb [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El 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/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 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 s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i 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/127222 usb [ohci] Regression in 7.0 usb storage generic driver 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 o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X 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 f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work 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 s usb/122819 usb [usb67] [patch] Patch to provide dynamic additions to o usb/122813 usb [udbp] [request] udbp driver should be removed in favo 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/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic 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/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s f usb/121232 usb [usb67] [panic] USB CardBus card removal causes reboot 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 usb/120572 usb [usb67] [umass] [patch] quirk to support ASUS P535 as 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/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas 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/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and 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/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a p usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th p usb/116699 usb [usb] [usb67] USB HID devices do not initialize at sys 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/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter 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 usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele p usb/101775 usb [usb67] [libusbhid] [patch] possible error in report d o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [usb67] SMP-Kernel crashes reliably when Bluetooth con 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/96381 usb [cam] [patch] add a quirk table entry for a flash ram 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 s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen 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/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB 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? s usb/89003 usb [request] LaCie Firewire drive not properly supported 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a 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/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy 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. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me 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 f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 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 f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a 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 o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o 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/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 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 311 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 17:23:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22162106566C for ; Mon, 13 Dec 2010 17:23:40 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A02208FC14 for ; Mon, 13 Dec 2010 17:23:38 +0000 (UTC) Received: by wwf26 with SMTP id 26so6087843wwf.31 for ; Mon, 13 Dec 2010 09:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ztXjXlssJVs/AS/0qULnQ2xQ5jjm0iHhjOyaIEzBs+8=; b=qRTZ1F/h/F5xf1zbTdmv2/FSzH5DouJf6TTNi1BqpGVPN1OwL7Qiw4GJ1TyZ5eUx1N HocWifj45hb8/gqUWguYs7Ty/KhnycjQbrYJHDjxgwO3ZcB1O6asxrTRN2uMxYr6YHei tkRX5o0FCd75mpE9F+vM/pTHVe4uPIQ5kdGUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=aG7aYS4VZFShYmtyWu27OLiJfrLotxco9ltgoxVEiovoM6eZM9+4Mna3HUT4OwWEBV k6zcG9SCqDuGutKetdttikArhAhFRiFdtn9+HAV16XUFsroLXalX1BORtsRazcuVhUZ7 fZwvzYErexcUgQkF5j31EiSnBAGxqupbEIbMM= MIME-Version: 1.0 Received: by 10.227.141.71 with SMTP id l7mr1766781wbu.119.1292259468518; Mon, 13 Dec 2010 08:57:48 -0800 (PST) Received: by 10.227.23.203 with HTTP; Mon, 13 Dec 2010 08:57:48 -0800 (PST) In-Reply-To: <201012081258.51694.jhb@freebsd.org> References: <201012080923.31048.jhb@freebsd.org> <201012081258.51694.jhb@freebsd.org> Date: Mon, 13 Dec 2010 11:57:48 -0500 Message-ID: From: Kim Culhan To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, freebsd-usb@freebsd.org Subject: Re: 8.2-PRERELESE ifconfig_bridge has no members unless run from rc.local X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 17:23:40 -0000 On Wed, Dec 8, 2010 at 12:58 PM, John Baldwin wrote: > On Wednesday, December 08, 2010 11:29:49 am Kim Culhan wrote: > > On Wed, Dec 8, 2010 at 9:23 AM, John Baldwin wrote: > > > > > On Tuesday, December 07, 2010 5:17:30 pm Kim Culhan wrote: > > > > Had been running a wireless bridge for some months in rc.conf: > > > > > > > > ifconfig_bridge0="addm wlan0 addm re1 up" > > > > > > > > Updated to 8.2-PRERELEASE 2 days ago and when the machine boots > > > > the bridge has no members. > > > > > > > > Reversing the order of the members results in the bridge having just > > > > the re1 member. > > > > > > > > Running the above command from a shell works and running from > > > > an rc.local file also works. > > > > > > > > FWIW, running from a shell there is about a 3 second delay after hit > > > enter > > > > before it returns the shell prompt, members are then present. > > > > > > > > The lines in rc.conf: > > > > > > > > cloned_interfaces="bridge0" > > > > ifconfig_wlan0="inet 192.168.1.50/24 channel 11" > > > > wlans_rum0="wlan0" > > > > create_args_wlan0="wlanmode hostap mode 11g" > > > > ifconfig_bridge0="addm wlan0 addm re1 up" > > > > > > > > Tried replacing the re device with em, no change. > > > > > > > > Any help is very greatly appreciated. > > > > > > Most likely the bridge0 device is created by /etc/rc.d/netif before the > > > wlan0 > > > device is created, so when the system startup tries to configure > bridge0, > > > the > > > ifconfig statement fails. > > > > > > What does 'ifconfig -l' show after you have booted? > > > > > It shows: > > > > re0 em0 plip0 lo0 bridge0 > > > > On the console at boot there is, after the file partition status and > setting > > the hostname: > > ifconfig: BRDGADD wlan0: No such file or directory > > > > Following this is: > > > > Starting Network: lo0 re0 em0 bridge0 > > > > Which is followed by output the same as from ifconfig -a including > bridge0 > > which > > has no members. > > > > Next is: > > > > Starting Network: rum0 > > rum0: flags=8843 > Hmm, I wonder why rum0 shows up so late. Do you not plug it in until after > boot, or does it depend on devd loading firmware into the device, etc.? > Working with Freebsd 8.2-BETA1 it was found: The rum0 device can be made to show up just after: Mounting local file systems:. With the bridge having members present also depending on whether a mouse or keyboard is attached, which usb port it is attached to and to which usb port the rum device is attached. Since this appears to be a usb issue I can move this to the usb list. thanks -kim From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 20:10:06 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A6901065675 for ; Mon, 13 Dec 2010 20:10:06 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by mx1.freebsd.org (Postfix) with ESMTP id DAAAF8FC12 for ; Mon, 13 Dec 2010 20:10:05 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id oBDKA3Aw023301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Dec 2010 07:10:04 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id oBDKA2Fk061434; Tue, 14 Dec 2010 07:10:02 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id oBDKA24N061433; Tue, 14 Dec 2010 07:10:02 +1100 (EST) (envelope-from peter) Date: Tue, 14 Dec 2010 07:10:02 +1100 From: Peter Jeremy To: Emanuel Haupt Message-ID: <20101213201002.GB61140@server.vk2pj.dyndns.org> References: <20101212194924.b625d7ad.ehaupt@FreeBSD.org> <20101213085651.43110117.ehaupt@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <20101213085651.43110117.ehaupt@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@FreeBSD.org Subject: Re: static usb device configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 20:10:06 -0000 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Dec-13 08:56:51 +0100, Emanuel Haupt wrote: >Unfortunately the program in question uses libusb and the configuration >only allows to define the device by specifying : and >there are multiple identical devices around with only iSerialNumber >being different from each other. Somehow I need to make sure the >devices in the USB hub are always recognized in the same order. The standard approach seems to be to iterate through all available USB devices until you find the one that matches your specifications. --=20 Peter Jeremy --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAk0GfZoACgkQ/opHv/APuIeh1ACeO/YVNBXObMv8KSDIMCvE9+Rh A2oAn1SsDkIV9VbHlI2yqyFaO/4bYMbD =8WTQ -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8-- From owner-freebsd-usb@FreeBSD.ORG Mon Dec 13 20:42:22 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09C34106566B for ; Mon, 13 Dec 2010 20:42:22 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ew0-f51.google.com (mail-ew0-f51.google.com [209.85.215.51]) by mx1.freebsd.org (Postfix) with ESMTP id 859118FC0C for ; Mon, 13 Dec 2010 20:42:21 +0000 (UTC) Received: by ewy19 with SMTP id 19so4404702ewy.10 for ; Mon, 13 Dec 2010 12:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type; bh=mpU5PfNUr7L/Bc+GC3aKBlHYv6p3rJnyzc5lG9F4IOE=; b=tId5xlh7DgHL+P4Nf4Q51rNd1RraEnrRghC/HmwYIzhy40zuTHpsRoDzlDSukMIO6q +/9tR5TlJHXkc1DjsYKLEX4rPcmoMMUXU3rqR61RyLpW5m+7GDUt6H+g4CXwpxifimro O1z7eLgkWlhi2tuxqhDk0e4Qze9CNaf0T1rCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; b=Q4rql5S2HvA8y3Ks4nCeI0Fk5OPqRG6zHMdcsEMbhSMhVThdlBjJdHNhzT+uRSN2AA cuWidblf6M7KctVQFXUNgGg/4DAMHyjTuToGsggnsLXRLH3H7MrftkCdKqVYNHZnl1s5 /8by1XZGA0GgdPO/CHbWvRMn2EHhSIBj+1Iio= Received: by 10.14.53.75 with SMTP id f51mr51173eec.28.1292271832961; Mon, 13 Dec 2010 12:23:52 -0800 (PST) Received: from [192.168.1.64] (ip4da3ae31.direct-adsl.nl [77.163.174.49]) by mx.google.com with ESMTPS id q58sm359173eeh.21.2010.12.13.12.23.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 12:23:51 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <4D0680D7.10007@freebsd.org> Date: Mon, 13 Dec 2010 21:23:51 +0100 From: Rene Ladan Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; nl-NL; rv:1.9.2.13) Gecko/20101210 Thunderbird/3.1.7 MIME-Version: 1.0 To: Hans Petter Selasky References: <4D054F76.1080401@freebsd.org> <201012131151.25655.hselasky@c2i.net> In-Reply-To: <201012131151.25655.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: multipart/mixed; boundary="------------010208030409090005090606" Cc: freebsd-usb@freebsd.org Subject: Re: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 20:42:22 -0000 This is a multi-part message in MIME format. --------------010208030409090005090606 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Op 13-12-2010 11:51, Hans Petter Selasky schreef: > On Sunday 12 December 2010 23:40:54 Rene Ladan wrote: >> Hi, >> >> I am writing a port [1] to control the Lego NXT brick with ROS, but when >> I run a test program it fails (permissions for the USB device are 666). >> This is on: >> > > What dmesg is shown? Are other [kernel] drivers hooking into the USB > interfaces used by your user-land driver? > dmesg shows just: ugen3.2: at usbus3 Vendor 0x0694 is Lego. I don't have other drivers hooking into the USB device I think: % kldstat -v | grep usb 276 usbus/uhub 275 uhub/usb_linux 273 uss820/usbus 272 musbotg/usbus 271 at91_udp/usbus 270 xhci/usbus 269 ehci/usbus 268 uhci/usbus 267 ohci/usbus > What is output from usbconfig -d X.Y dump_device_desc dump_curr_config_desc > Attached. Rene -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net) --------------010208030409090005090606 Content-Type: text/plain; name="lego.desc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lego.desc" ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0694 idProduct = 0x0002 bcdDevice = 0x0000 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0001 <0016530CA81C> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00c0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 --------------010208030409090005090606-- From owner-freebsd-usb@FreeBSD.ORG Tue Dec 14 04:07:55 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C1C8106564A; Tue, 14 Dec 2010 04:07:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC8B8FC13; Tue, 14 Dec 2010 04:07:53 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=pSMQvMxz67uBPld/2YzXd4n8EUsHq22vR+JpH4ELdfA= c=1 sm=1 a=6fFSkuSYJ1kA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ZSY8IVqcetzc5JXNKX8A:9 a=_1d_8bs8-CF7HXdJ5g9bcnL9hNsA:4 a=PUjeQqilurYA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 61357547; Tue, 14 Dec 2010 05:07:52 +0100 From: Hans Petter Selasky To: Rene Ladan Date: Tue, 14 Dec 2010 05:08:09 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4D054F76.1080401@freebsd.org> <201012131151.25655.hselasky@c2i.net> <4D0680D7.10007@freebsd.org> In-Reply-To: <4D0680D7.10007@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012140508.09787.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 04:07:55 -0000 On Monday 13 December 2010 21:23:51 Rene Ladan wrote: > Op 13-12-2010 11:51, Hans Petter Selasky schreef: > > On Sunday 12 December 2010 23:40:54 Rene Ladan wrote: > >> Hi, > >> > >> I am writing a port [1] to control the Lego NXT brick with ROS, but when > >> I run a test program it fails (permissions for the USB device are 666). > > > >> This is on: > > What dmesg is shown? Are other [kernel] drivers hooking into the USB > > interfaces used by your user-land driver? > > dmesg shows just: > ugen3.2: at usbus3 > Vendor 0x0694 is Lego. > > I don't have other drivers hooking into the USB device I think: > % kldstat -v | grep usb > 276 usbus/uhub > 275 uhub/usb_linux > 273 uss820/usbus > 272 musbotg/usbus > 271 at91_udp/usbus > 270 xhci/usbus > 269 ehci/usbus > 268 uhci/usbus > 267 ohci/usbus > > > What is output from usbconfig -d X.Y dump_device_desc > > dump_curr_config_desc > > Attached. > > Rene What happens if you remove that device reset line from your driver? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Dec 14 07:25:23 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 217F3106566B for ; Tue, 14 Dec 2010 07:25:23 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ey0-f178.google.com (mail-ey0-f178.google.com [209.85.215.178]) by mx1.freebsd.org (Postfix) with ESMTP id 9D73C8FC08 for ; Tue, 14 Dec 2010 07:25:22 +0000 (UTC) Received: by eyh5 with SMTP id 5so137181eyh.37 for ; Mon, 13 Dec 2010 23:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=8tA6oq08Es0UX0EmANt9CJWdNwT9h/OCkb4KMdfs0xA=; b=RCnDd4Q+xCJdA0Qigty/lhIfQS7AVao/zbXAhYeUtsEq0XqwZIQTWK5xayuaDWdHjH Z7/h5JND5xd3IUZycylpA+nFYGMReTgjbE7OxP1LRFDOpwhv4kIPa4n4Ez6o6QL1KmHM 3EYEfQqQvz+B0PCZJIDgrN7RQaDVOCesam1SE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=P5sdEBrRI7o8dTdEWTXsfux3nPV9Z6SeqfxakIxjBMzGiKNezH2q6Ht+lcrm0cODcg rlFfkQ/Q3fLML/zriCzWnwvx4gJrl2MVyayAwfKnfio2+OXXzd5yI32cwphlXzKPQGWB e3De0k1OxxSKesob2YywUfH1Sc0gXdJouYN5c= Received: by 10.213.15.76 with SMTP id j12mr3308990eba.54.1292311521243; Mon, 13 Dec 2010 23:25:21 -0800 (PST) Received: from [192.168.1.64] (ip4da3ae31.direct-adsl.nl [77.163.174.49]) by mx.google.com with ESMTPS id b52sm736540eei.19.2010.12.13.23.25.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 23:25:20 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <4D071BDF.9010300@freebsd.org> Date: Tue, 14 Dec 2010 08:25:19 +0100 From: Rene Ladan Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; nl-NL; rv:1.9.2.13) Gecko/20101210 Thunderbird/3.1.7 MIME-Version: 1.0 To: Hans Petter Selasky References: <4D054F76.1080401@freebsd.org> <201012131151.25655.hselasky@c2i.net> <4D0680D7.10007@freebsd.org> <201012140508.09787.hselasky@c2i.net> In-Reply-To: <201012140508.09787.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Lego NXT brick communication error with libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 07:25:23 -0000 Op 14-12-2010 05:08, Hans Petter Selasky schreef: > On Monday 13 December 2010 21:23:51 Rene Ladan wrote: >> Op 13-12-2010 11:51, Hans Petter Selasky schreef: >>> On Sunday 12 December 2010 23:40:54 Rene Ladan wrote: >>>> Hi, >>>> >>>> I am writing a port [1] to control the Lego NXT brick with ROS, but when >>>> I run a test program it fails (permissions for the USB device are 666). >>> >>>> This is on: >>> What dmesg is shown? Are other [kernel] drivers hooking into the USB >>> interfaces used by your user-land driver? >> >> dmesg shows just: >> ugen3.2: at usbus3 >> Vendor 0x0694 is Lego. >> >> I don't have other drivers hooking into the USB device I think: >> % kldstat -v | grep usb >> 276 usbus/uhub >> 275 uhub/usb_linux >> 273 uss820/usbus >> 272 musbotg/usbus >> 271 at91_udp/usbus >> 270 xhci/usbus >> 269 ehci/usbus >> 268 uhci/usbus >> 267 ohci/usbus >> >>> What is output from usbconfig -d X.Y dump_device_desc >>> dump_curr_config_desc >> >> Attached. >> >> Rene > > What happens if you remove that device reset line from your driver? > That does the trick, reading sensor data as user now works :) So on Linux this reset line is harmless, but on FreeBSD it has to be removed. Rene -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net) From owner-freebsd-usb@FreeBSD.ORG Tue Dec 14 14:20:07 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AFBC1065698 for ; Tue, 14 Dec 2010 14:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2A07C8FC1E for ; Tue, 14 Dec 2010 14:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBEEK77g080392 for ; Tue, 14 Dec 2010 14:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBEEK7bZ080391; Tue, 14 Dec 2010 14:20:07 GMT (envelope-from gnats) Resent-Date: Tue, 14 Dec 2010 14:20:07 GMT Resent-Message-Id: <201012141420.oBEEK7bZ080391@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sebastian Huber Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3DBD106566C for ; Tue, 14 Dec 2010 14:18:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B2EA18FC0A for ; Tue, 14 Dec 2010 14:18:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBEEIDqu092798 for ; Tue, 14 Dec 2010 14:18:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBEEICUH092797; Tue, 14 Dec 2010 14:18:12 GMT (envelope-from nobody) Message-Id: <201012141418.oBEEICUH092797@red.freebsd.org> Date: Tue, 14 Dec 2010 14:18:12 GMT From: Sebastian Huber To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/153149: USB stick quirk regression X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 14:20:07 -0000 >Number: 153149 >Category: usb >Synopsis: USB stick quirk regression >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 14 14:20:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sebastian Huber >Release: r216297 >Organization: embedded brains GmbH >Environment: >Description: There is a problem with the recent quirks: umass0: on usbus0 devctl: +umass0 at bus=1 hubaddr=1 port=0 devaddr=2 interface=0 vendor=0x058f product=0x6387 devclass=0x00 devsubclass=0x00 sernum="BC2401F1" release=0x0101 intclass=0x08 intsubclass=0x06 on uhub0 Quirks that don't work (216297): umass0: SCSI over Bulk-Only; quirks = 0x4101 Quirks that work for this device (r213272): umass0: SCSI over Bulk-Only; quirks = 0x0100 The SCSI read capacity fails in the don't work case. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Dec 18 09:02:39 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32001106566B for ; Sat, 18 Dec 2010 09:02:39 +0000 (UTC) (envelope-from quazi@bk.ru) Received: from fallback3.mail.ru (fallback6.mail.ru [94.100.176.134]) by mx1.freebsd.org (Postfix) with ESMTP id AC0A58FC18 for ; Sat, 18 Dec 2010 09:02:36 +0000 (UTC) Received: from smtp11.mail.ru (smtp11.mail.ru [94.100.176.85]) by fallback3.mail.ru (mPOP.Fallback_MX) with ESMTP id D4ED57A3090 for ; Sat, 18 Dec 2010 11:47:43 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=U7cUx/mI/VKXa4ZXJydhZd/HpppFMb8bprmQtmXBIiI=; b=mR6rGurFArHCK/8XnZIArAevndNYKht7SdUcUDxM9xOg7yNWAZoq4XAOqtrpsxsReM6ozcTWVl61/0/IQ4cE+lK67MjZo6kixKoysYYzFr1GC7CAuAF1QscF28qnYcXz; Received: from [178.122.158.12] (port=42205 helo=QUAZIS.SNNLAN.local) by smtp11.mail.ru with asmtp id 1PTsS4-0004BO-00 for freebsd-usb@freebsd.org; Sat, 18 Dec 2010 11:47:41 +0300 Message-ID: <4D0C779F.90505@bk.ru> Date: Sat, 18 Dec 2010 10:58:07 +0200 From: Ruslan Yakovlev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101030 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Mras: Ok Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: usbconfig power_off/power_on degrade X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 09:02:39 -0000 Hi All I have internal cardreader. It is established instead of the disk drive. After startup dmesg have ugen1.2: at usbus1 umass0: on usbus1 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present If FreeBSD 8 or 8.1 started without inserted cards I must do usbconfig -d ugen1.2 power_off usbconfig -d ugen1.2 power_on Now I see /dev/da0 and /dev/da0s1 and can mount /dev/da0s1 I update FreeBSD to FreeBSD 8.2-PRERELEASE #28: Sat Dec 4 And after power_off/power_on I can't use cards. Only if I attach card before I start FreeBSD I can use card. After usbconfig -d ugen1.2 power_on I haven't /dev/da0* dmesg ugen1.2: at usbus1 (disconnected) umass0: at uhub1, port 5, addr 2 (disconnected) (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry ugen1.2: at usbus1 umass0: on usbus1 da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 122MB (250880 512 byte sectors: 64H 32S/T 122C) umass0: at uhub1, port 5, addr 2 (disconnected) (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry From owner-freebsd-usb@FreeBSD.ORG Sat Dec 18 10:08:13 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D42E106566C for ; Sat, 18 Dec 2010 10:08:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 03B5E8FC14 for ; Sat, 18 Dec 2010 10:08:12 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=yPTW8OK4A3EA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=3GsJTNh8ggnuOp-gGhwA:9 a=imiXV2oYpVdyhBOj2s-MpSG34CUA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 64473604; Sat, 18 Dec 2010 11:08:10 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 18 Dec 2010 11:08:15 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4D0C779F.90505@bk.ru> In-Reply-To: <4D0C779F.90505@bk.ru> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012181108.15986.hselasky@c2i.net> Cc: Ruslan Yakovlev Subject: Re: usbconfig power_off/power_on degrade X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 10:08:13 -0000 On Saturday 18 December 2010 09:58:07 Ruslan Yakovlev wrote: > Hi All > I have internal cardreader. It is established instead of the disk drive. > After startup dmesg have Have you tried: usbconfig -d 1.2 reset --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Dec 18 11:45:33 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94AF11065673 for ; Sat, 18 Dec 2010 11:45:33 +0000 (UTC) (envelope-from quazi@bk.ru) Received: from smtp14.mail.ru (smtp14.mail.ru [94.100.176.91]) by mx1.freebsd.org (Postfix) with ESMTP id 176EF8FC19 for ; Sat, 18 Dec 2010 11:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=80DjBRbZ949SFfbjG9FoiNA8Xq/nMe+uQEzq5wSdDbk=; b=0KW1ihfCCcTc/l8vWvRosYXYDrP6COpVB2xxYE65yNh8096DZnKiUDJ55ngQ40KKP2XPrXZ+IJK1PEY/0ZmG7NTnwCj3QZmioKFmcf8V8Kd/Iq7vG7mVr4JfEIVDKS/2; Received: from [178.122.249.123] (port=35700 helo=QUAZIS.SNNLAN.local) by smtp14.mail.ru with asmtp id 1PTvEA-0001pl-00 for freebsd-usb@freebsd.org; Sat, 18 Dec 2010 14:45:31 +0300 Message-ID: <4D0CA14F.40105@bk.ru> Date: Sat, 18 Dec 2010 13:55:59 +0200 From: Ruslan Yakovlev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101030 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4D0C779F.90505@bk.ru> <201012181108.15986.hselasky@c2i.net> In-Reply-To: <201012181108.15986.hselasky@c2i.net> X-Mras: Ok Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: usbconfig power_off/power_on degrade X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 11:45:33 -0000 On 18.12.2010 12:08, Hans Petter Selasky wrote: > On Saturday 18 December 2010 09:58:07 Ruslan Yakovlev wrote: >> Hi All >> I have internal cardreader. It is established instead of the disk drive. >> After startup dmesg have > Have you tried: > > usbconfig -d 1.2 reset > > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > Now I try it. No changes in dmesg and /dev/ But device exist in list returned by usbconfig dump_device_desc return bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x15a4 idProduct = 0x1336 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 From owner-freebsd-usb@FreeBSD.ORG Sat Dec 18 13:42:57 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9259E106566B for ; Sat, 18 Dec 2010 13:42:57 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 11B078FC13 for ; Sat, 18 Dec 2010 13:42:56 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=yPTW8OK4A3EA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=cuW64LCxnF1bPjHJDVcA:9 a=z1enx0IWfXYLjfNR8cIN8PDhE2AA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 63108551; Sat, 18 Dec 2010 14:42:53 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 18 Dec 2010 14:43:02 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4D0C779F.90505@bk.ru> <201012181108.15986.hselasky@c2i.net> <4D0CA14F.40105@bk.ru> In-Reply-To: <4D0CA14F.40105@bk.ru> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012181443.02340.hselasky@c2i.net> Cc: Ruslan Yakovlev Subject: Re: usbconfig power_off/power_on degrade X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 13:42:57 -0000 On Saturday 18 December 2010 12:55:59 Ruslan Yakovlev wrote: > On 18.12.2010 12:08, Hans Petter Selasky wrote: > > On Saturday 18 December 2010 09:58:07 Ruslan Yakovlev wrote: > >> Hi All > >> I have internal cardreader. It is established instead of the disk drive. > >> After startup dmesg have > > > > Have you tried: > > > > usbconfig -d 1.2 reset Have you tried with -current ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Dec 18 20:19:27 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 591BA106564A; Sat, 18 Dec 2010 20:19:26 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E779E8FC19; Sat, 18 Dec 2010 20:19:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBIKJP7R045904; Sat, 18 Dec 2010 20:19:25 GMT (envelope-from jh@freefall.freebsd.org) Received: (from jh@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBIKJPNs045899; Sat, 18 Dec 2010 20:19:25 GMT (envelope-from jh) Date: Sat, 18 Dec 2010 20:19:25 GMT Message-Id: <201012182019.oBIKJPNs045899@freefall.freebsd.org> To: arne_woerner@yahoo.com, jh@FreeBSD.org, freebsd-usb@FreeBSD.org From: jh@FreeBSD.org Cc: Subject: Re: usb/76461: [umass] disklabel of umass(4)-CAM(4)-da(4) not used by devfs automatically X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 20:19:27 -0000 Synopsis: [umass] disklabel of umass(4)-CAM(4)-da(4) not used by devfs automatically State-Changed-From-To: open->closed State-Changed-By: jh State-Changed-When: Sat Dec 18 20:19:25 UTC 2010 State-Changed-Why: Duplicate of kern/85975. http://www.freebsd.org/cgi/query-pr.cgi?pr=76461