Date: Thu, 11 Oct 2007 20:13:31 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@freebsd.org Subject: Re: VID parser problem with usbdevs Message-ID: <200710112013.32721.hselasky@c2i.net> In-Reply-To: <a276da400710110617u714bdd0cs8a123e97ea7ee874@mail.gmail.com> References: <a276da400710110600i17fc2f5as58a0897e77f276e0@mail.gmail.com> <20071011.070249.2073896410.imp@bsdimp.com> <a276da400710110617u714bdd0cs8a123e97ea7ee874@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 11 October 2007, Xiaofan Chen wrote: > On 10/11/07, M. Warner Losh <imp@bsdimp.com> wrote: > > In message: > > : ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v > > : Controller /dev/usb1: > > : addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), > > : I-Tuner Networks(0x04d8), rev 0.00 > > : port 4 addr 126: full speed, power 100 mA, config 1, product > > : 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 > > > > While 4d8 is for microchip technology, we get the name that we print > > here directly from the usb device itself. > > What makes you think that the vendor ID is parsed wrong? > > I have read the firmware source codes so I do not think there > is anything called "I-Tuner" in the descriptors or anywhere in the > firmware. 04d8/000b is the bootloader firmware VID/PID for > Microchip PICDEM FS USB demo board. > > The following is the relevant descriptor. Hi Xiaofan Chen, When you compile any FreeBSD USB stack with "options USB_DEBUG", which might be hardcoded in the sources, then the kernel will search "usbdevs" for a vendor description. This will be done hence you have no valid strings for the manufacturer nor product : > 0x00, // Manufacturer string index > 0x00, // Product string index > 0x00, // Device serial number string index --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710112013.32721.hselasky>