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