Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2010 11:01:43 +1300
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Emanuel Haupt <ehaupt@freebsd.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: static usb device configuration
Message-ID:  <AANLkTim7agR-6RFBRyDJjybURw2pkgwhtX64jDpy61NN@mail.gmail.com>
In-Reply-To: <20101212194924.b625d7ad.ehaupt@FreeBSD.org>
References:  <20101212194924.b625d7ad.ehaupt@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 December 2010 07:49, Emanuel Haupt <ehaupt@freebsd.org> wrote:
> Is there any way I can make sure that the following device:
>
> ugen1.3: <product 0x6001 vendor 0x0403> 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<no string>
> =A0iProduct =3D 0x0000 =A0<no string>
> =A0iSerialNumber =3D 0x0003 =A0<Reader 195>
> =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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim7agR-6RFBRyDJjybURw2pkgwhtX64jDpy61NN>