From owner-freebsd-usb@FreeBSD.ORG Thu Mar 12 17:11:32 2009 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 844B4106566B for ; Thu, 12 Mar 2009 17:11:32 +0000 (UTC) (envelope-from lintzuyau@gmail.com) Received: from mail-qy0-f128.google.com (mail-qy0-f128.google.com [209.85.221.128]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4E18FC21 for ; Thu, 12 Mar 2009 17:11:32 +0000 (UTC) (envelope-from lintzuyau@gmail.com) Received: by qyk34 with SMTP id 34so2133991qyk.3 for ; Thu, 12 Mar 2009 10:11:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=cp6uoLaYeWfxb7nzpppGOrVch40XB5bkyoa4hnbgbiQ=; b=i7AbC/B4Dl8pn5/G99Mz1qkHbnhKvHoI2bFUChzrDmggJNjZwH6YeiwZD+Z1JHT14V EgT4uEvbB0M5ruB8/TTUX5D1UkZ6GPmx9rpBEFYc7f9DWy6MTOL/k7Elytyp3/tkUp+K IcAs2dTqXE7bjDH7qiLXYCPrOg8aym8f5NeTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fOUx4yJbnVhk6Qw/AGB5L9hlCQUGdYl/JWAtJEG2ULUwBY7Yjl6/rQxUjDUExzK6s4 h5ZGkE3xCTM8y9HjepyqZuSMCpvM/20S4v1Hg+wrDd2aDdZHxG4c0JbLl47Kr0hJ/xLl +eZd5ZbtfjbwF0k3s5/DETphc9Vgh6/RDZfkg= MIME-Version: 1.0 Received: by 10.231.12.138 with SMTP id x10mr51189ibx.16.1236876504090; Thu, 12 Mar 2009 09:48:24 -0700 (PDT) Date: Fri, 13 Mar 2009 00:48:24 +0800 Message-ID: From: tzu-yau Lin To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to add a USB vender in sys/dev/usb/usbdevs 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: Thu, 12 Mar 2009 17:11:32 -0000 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: 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!!