d-link dwa-125 up

2012-12-22 Thread Вячеслав Агапов
Hello.

Help me up wifi router dlink dwa-125.
My system.
uname -a
FreeBSD 9-stable

kldload if_run
kldload runfw

kldstat
 81 0x82628000 12a70if_run.ko
 91 0x8263b000 216c runfw.ko

After insert usb
dmesg
ugen5.2: Ralink at usbus5

/var/log/messages
root: Unknown USB device: vendor 0x2001 product 0x3c1e bus uhub5

I try this
http://lists.freebsd.org/pipermail/freebsd-usb/2011-October/010707.html
only got error
in /usr/src/sys/dev/usb/usbdevs added
product DLINK DWL1250x3c1eDWL-125

in /usr/src/sys/dev/usb/usbdevs added
 RUN_DEV(DLINK,DWA125),

error
/usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:175:5:
error: use of undeclared identifier 'USB_PRODUCT_DLINK_DWA125'
RUN_DEV(DLINK,  DWA125),
^
/usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:100:47:
note: expanded from macro 'RUN_DEV'
#define RUN_DEV(v,p) { USB_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p) }
  ^
scratch space:148:1: note: expanded from macro 'USB_PRODUCT_'
USB_PRODUCT_DLINK_DWA125
^
@/dev/usb/usbdi.h:316:33: note: expanded from macro 'USB_VP'
  USB_VENDOR(vend), USB_PRODUCT(prod)
^
@/dev/usb/usbdi.h:313:42: note: expanded from macro 'USB_PRODUCT'
  .match_flag_product = 1, .idProduct = (prod)
 ^
/usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:547:48:
error: invalid application of 'sizeof' to an incomplete type 'const struct
usb_device_id []'
return (usbd_lookup_id_by_uaa(run_devs, sizeof(run_devs), uaa));
  ^~
2 errors generated.
*** [if_run.o] Error code 1

How i cat start d-link dwa 125?
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: d-link dwa-125 up

2012-12-22 Thread Вячеслав Агапов
I found my mistake. Now it worked.
in /usr/src/sys/dev/usb/usbdevs added
product DLINK DWA1250x3c1eDWA-125

in /usr/src/sys/dev/usb/usbdevs added
 RUN_DEV(DLINK,DWA125),
and then
cd /usr/src/sys/modules/usb/run
make




2012/12/22 Вячеслав Агапов agapov.sl...@gmail.com

 Hello.

 Help me up wifi router dlink dwa-125.
 My system.
 uname -a
 FreeBSD 9-stable

 kldload if_run
 kldload runfw

 kldstat
  81 0x82628000 12a70if_run.ko
  91 0x8263b000 216c runfw.ko

 After insert usb
 dmesg
 ugen5.2: Ralink at usbus5

 /var/log/messages
 root: Unknown USB device: vendor 0x2001 product 0x3c1e bus uhub5

 I try this
 http://lists.freebsd.org/pipermail/freebsd-usb/2011-October/010707.html
 only got error
 in /usr/src/sys/dev/usb/usbdevs added
 product DLINK DWL1250x3c1eDWL-125

 in /usr/src/sys/dev/usb/usbdevs added
  RUN_DEV(DLINK,DWA125),

 error
 /usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:175:5:
 error: use of undeclared identifier 'USB_PRODUCT_DLINK_DWA125'
 RUN_DEV(DLINK,  DWA125),
 ^
 /usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:100:47:
 note: expanded from macro 'RUN_DEV'
 #define RUN_DEV(v,p) { USB_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p) }
   ^
 scratch space:148:1: note: expanded from macro 'USB_PRODUCT_'
 USB_PRODUCT_DLINK_DWA125
 ^
 @/dev/usb/usbdi.h:316:33: note: expanded from macro 'USB_VP'
   USB_VENDOR(vend), USB_PRODUCT(prod)
 ^
 @/dev/usb/usbdi.h:313:42: note: expanded from macro 'USB_PRODUCT'
   .match_flag_product = 1, .idProduct = (prod)
  ^
 /usr/src_head/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c:547:48:
 error: invalid application of 'sizeof' to an incomplete type 'const struct
 usb_device_id []'
 return (usbd_lookup_id_by_uaa(run_devs, sizeof(run_devs), uaa));
   ^~
 2 errors generated.
 *** [if_run.o] Error code 1

 How i cat start d-link dwa 125?
 Thanks

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org