Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2009 00:48:24 +0800
From:      tzu-yau Lin <lintzuyau@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   How to add a USB vender in sys/dev/usb/usbdevs
Message-ID:  <bbb4ce600903120948k78cd98ddwa790a91478a0f87f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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!!



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