On Wed, Jan 07, 2009 at 12:19:35AM +0000, FRLinux wrote:
> On Tue, Jan 6, 2009 at 11:25 PM, Jonathan Gray <[email protected]> wrote:
> > Try adding it to dev/usb/if_run.c, if_ral.c is several ralink
> > chip generations ago.
> >
> > If that doesn't work include the output of
> > "usbdevs -v" with the device plugged in and I'll send you a diff to apply.
> >
> > It is apparently the type of chip that run(4) supports.
>
> Hi again,
>
> Thanks a lot for your reply, appreciated. I have now modified the following:
>
> # cd /usr/src/sys/dev/usb/
> # grep 600N *
> usbdevs:product LINKSYS4 WUSB600N 0x0071 RT2870
> usbdevs.h:#define USB_PRODUCT_LINKSYS4_WUSB600N 0x0071
> /* WUSB600N */
> usbdevs_data.h: USB_VENDOR_LINKSYS4, USB_PRODUCT_LINKSYS4_WUSB600N,
> usbdevs_data.h: "WUSB600N",
>
> Rebuilt the kernel then rebooted :
>
> OpenBSD 4.4-current (GENERIC) #3: Wed Jan 7 00:13:27 GMT 2009
> r...@testbox:/usr/src/sys/arch/i386/compile/GENERIC
> ...
> ugen0 at uhub0 port 4 "Cisco-Linksys LLC Dual-Band Wireless-N USB
> Network Adapter" rev 2.00/1.01 addr 2
>
> But still no joy :(
>
> What did I actually forget?
Try this and run 'make' in /usr/src/sys/dev/usb before
building a kernel.
cd /usr/src/sys/dev/usb
patch -p0 < /path/to/diff
make
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.403
diff -u -p -r1.403 usbdevs
--- usbdevs 29 Dec 2008 12:18:39 -0000 1.403
+++ usbdevs 7 Jan 2009 02:08:05 -0000
@@ -1840,6 +1840,7 @@ product LIEBERT POWERSURE_PXT 0xffff Pow
/* Linksys products */
product LINKSYS4 USB1000 0x0039 USB1000
+product LINKSYS4 WUSB600N 0x0071 WUSB600N
product LINKSYS MAUSB2 0x0105 Camedia MAUSB-2
product LINKSYS USB10TX1 0x200c USB10TX
product LINKSYS USB10T 0x2202 USB10T Ethernet
Index: if_run.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_run.c,v
retrieving revision 1.1
diff -u -p -r1.1 if_run.c
--- if_run.c 3 Jan 2009 18:39:33 -0000 1.1
+++ if_run.c 7 Jan 2009 02:08:05 -0000
@@ -161,9 +161,10 @@ static const struct usb_devno run_devs[]
USB_ID(LOGITEC, RT2870_1),
USB_ID(LOGITEC, RT2870_2),
USB_ID(LOGITEC, RT2870_3),
- USB_ID(AIRTIES, RT3070)
+ USB_ID(AIRTIES, RT3070),
/* Entries not in the Ralink Linux driver. */
+ USB_ID(LINKSYS4, WUSB600N)
};
int run_match(struct device *, void *, void *);