On Sun, Feb 18, 2007 at 10:14:07AM +0100, Paul de Weerd wrote:
> Hi all,
> 
> I have two USB nics (one wired, one wireless) to give away. They were
> cheap, so I bought them to see if they were supported. Since they're
> not, maybe some developer can use them. I know nothing about
> documentation for these things, but this is what dmesg and usbdevs -v
> say :

Ah, but perhaps it is easy to add support.

> 
> # dmesg # for the wireless part
> ugen0 at uhub2 port 3
> ugen0: Tenda.. 54M USB Wireless NIC, rev 2.00/0.01, addr 2
> 
> # usbdevs -v # for the wireless part
>  port 3 addr 2: high speed, self powered, config 1, 54M USB Wireless 
> NIC(0x1fab), Tenda..(0x1286), rev 0.0
> 1

Need more information on this.
It does not appear to be the Tenda TWL542U, it does not appear in the list
of ids in the windows driver.

A few ways to figure out what it is:
* Extract the .sys and .inf files from the windows driver, run strings/read for 
hints
* Open up device and look
* Put FCC id into 
https://gullfoss2.fcc.gov/prod/oet/cf/eas/reports/GenericSearch.cfm
      look at internal photos for chip

> 
> # dmesg # for the wired part
> ugen0 at uhub0 port 2
> ugen0: ShanTou ST268 USB NIC, rev 1.10/1.01, addr 2
> 
> # usbdevs -v # for the wired part
>  port 2 addr 2: full speed, power 144 mA, config 1, ST268 USB NIC(0x0268), 
> ShanTou(0x0a46), rev 1.01

Google leads me to believe this is a udav(4) device.
Please try the following diff:

You'll have to run 'make' in sys/dev/usb/ after applying it,
then build a new kernel.

Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.262
diff -u -p -r1.262 usbdevs
--- sys/dev/usb/usbdevs 17 Feb 2007 02:17:18 -0000      1.262
+++ sys/dev/usb/usbdevs 18 Feb 2007 12:06:40 -0000
@@ -366,6 +366,7 @@ vendor CSR          0x0a12  Cambridge Silicon Rad
 vendor TREK            0x0a16  Trek Technology
 vendor ASAHIOPTICAL    0x0a17  Asahi Optical
 vendor BOCASYSTEMS     0x0a43  Boca Systems
+vendor SHANTOU         0x0a46  ShanTou
 vendor BROADCOM                0x0a5c  Broadcom
 vendor GREENHOUSE      0x0a6b  GREENHOUSE
 vendor GEOCAST         0x0a79  Geocast Network Systems
@@ -1970,6 +1971,9 @@ product SERVERWORKS HUB           0x0000  Root Hub
 
 /* SGI products */
 product SGI SN1_L1_SC          0x1234  SN1 L1 System Controller
+
+/* ShanTou products */
+product SHANTOU ST268          0x0268  ST268
 
 /* Shark products */
 product SHARK PA               0x0400  Pocket Adapter
Index: sys/dev/usb/if_udav.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_udav.c,v
retrieving revision 1.19
diff -u -p -r1.19 if_udav.c
--- sys/dev/usb/if_udav.c       29 Sep 2006 08:43:07 -0000      1.19
+++ sys/dev/usb/if_udav.c       18 Feb 2007 12:06:42 -0000
@@ -148,7 +148,8 @@ static const struct udav_type {
 } udav_devs [] = {
        {{ USB_VENDOR_COREGA, USB_PRODUCT_COREGA_FETHER_USB_TXC }, 0 },
        {{ USB_VENDOR_DAVICOM, USB_PRODUCT_DAVICOM_DM9601 }, 0 },
-       {{ USB_VENDOR_DAVICOM, USB_PRODUCT_DAVICOM_WK668 }, 0 }
+       {{ USB_VENDOR_DAVICOM, USB_PRODUCT_DAVICOM_WK668 }, 0 },
+       {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0 }
 };
 #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p))

Reply via email to