From owner-freebsd-arch@FreeBSD.ORG Mon Mar 22 04:33:52 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F0AF16A4CE for ; Mon, 22 Mar 2004 04:33:52 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 450FE43D45 for ; Mon, 22 Mar 2004 04:33:51 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i2MCVQUS051821 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 22 Mar 2004 13:31:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i2MCUohn043984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Mar 2004 13:30:51 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i2MCUopY071128; Mon, 22 Mar 2004 13:30:50 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i2MCUnAI071127; Mon, 22 Mar 2004 13:30:49 +0100 (CET) (envelope-from ticso) Date: Mon, 22 Mar 2004 13:30:49 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20040322123048.GP63452@cicely12.cicely.de> References: <20040320052007.GC33602@cicely12.cicely.de> <20040320.184336.88475380.imp@bsdimp.com> <20040321071100.GH33602@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040321071100.GH33602@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: ticso@cicely12.cicely.de cc: arch@freebsd.org cc: ticso@cicely.de Subject: Re: Opinions about using USB serial numbers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 12:33:52 -0000 On Sun, Mar 21, 2004 at 08:11:01AM +0100, Bernd Walter wrote: > On Sat, Mar 20, 2004 at 06:43:36PM -0700, M. Warner Losh wrote: > > However, having said that, you can use devd to extract the information > > from the node and then create a symbolic link... > > OK - lets try it with devd. > Usefull devd support is required anyway. > > That's what I get on plugging in a device: > Processing event '? at on uhub2' > Pushing table > Processing nomatch event > Popping table > Processing event '+ubser0 at on uhub2' > Pushing table > device-name=ubser0 > Processing attach event OK - I'm a bit further now: Processing event '?Vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber=" foo" at port=2 on uhub2' Pushing table vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber= foo port=2 bus=uhub2 Processing nomatch event Popping table Processing event '+ubser0 at port=2 on uhub2' Pushing table device-name=ubser0 port=2 bus=uhub2 Processing attach event [...] Processing event '-ubser0 at port=2 on uhub2' Pushing table device-name=ubser0 port=2 bus=uhub2 Processing detach event The serial numer is still a fake one, but proves that " surounded whitespace works. Getting the interface number and interface specific parameters is tricky so it's not done yet. What still puzzles me is why only the nomatch event includes pnpinfo. devinfo is just fine: [58]cicely13# devinfo -v | grep ubser0 ubser0 pnpinfo Vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber=" foo" at port=2 -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de