How to add a USB vender in sys/dev/usb/usbdevs

tzu-yau Lin lintzuyau at gmail.com
Thu Mar 12 10:11:32 PDT 2009


Dear all:
I bought a usb network device. according to its spec, it claims it is
Davicom 9601 usb nic.
but when I plug it in my freebsd 7.1-Release box, it shows as following:
ugen0: <vendor 0x0fe6 USB Network Controller, class 0/0, rev 1.10/1.01, addr
2> on uhub4

I did the instruction from
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2008-04/msg00532.html

Here are the modifications

/usr/src/sys/dev/usb/if_udav.c, line 263
     /* DAVICOM DM9601 Generic */
        {{ USB_VENDOR_DAVICOM, USB_PRODUCT_DAVICOM_DM9601 }, 0},

As for /usr/src/sys/dev/usb/usbdevs

add line 1080
/* Davicom Semiconductor products */
product DAVICOM DM9601 0x9601 DM9601 USB NIC


I disable original DAVICOM data at line 158
/*vendor DAVICOM                0x04a6  Davicom*/

And add new definition at line 537
vendor DAVICOM          0x0fe6  Davicom

I re-bulid my kernel and reload if_udav, but nothing happened.
Most confusing me is why dmesg messages still shows "0x0fe6" not Davicom.
Did I miss something?
Thanks for your help!!


More information about the freebsd-usb mailing list