Device: http://www.trendnet.com/products/proddetail.asp?prod=200_TEW-648UBM Chipset: https://wikidevi.com/wiki/TRENDnet_TEW-648UBM dmesg: urtwn0: <vendor 0x0bda product 0x8191, class 0/0, rev 2.00/2.00, addr 4> on usbus0 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R wlan0: Ethernet address: ff:ff:ff:ff:ff:ff # usbconfig -d 0.4 dump_info ugen0.4: <product 0x8191 vendor 0x0bda> at usbus0, cfg=0 md=HOST, spd=HIGH (480Mbps) pwr=ON (500mA) Tested on: Official 10.2 amd64 image Official 10.2 RPi image releng/10.2 with custom kernel for RPi -CURRENT as of 12/19/15 with custom kernel for RPi Repro steps (simplest): Get 10.2 going however you want Add "legal.realtek.license_ack=1" and 'if_urtwn_load="YES"' to /boot/loader.conf Reboot with RTL8188CUS-based WiFi device inserted Watch as FreeBSD fails to initialize your dongle I know it's not a HW issue b/c I can plug it into my Ubuntu box w/ no problem. It worked before, but the last time I remember testing was off -CURRENT last December or this January.
Created attachment 164883 [details] RPi dmesg output from custom kernel
Created attachment 164884 [details] Dongle usbconfig device_desc
Created attachment 164885 [details] RPi pciconf output from custom kernel
I can reproduce this on 10.3-RC1 #0 r296435: Sun Mar 6 23:48:14 GMT 2016 urtwn0: <vendor 0x0bda product 0x8191, class 0/0, rev 2.00/2.00, addr 1> on usbus0 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R # ifconfig urtwn0 urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether ff:ff:ff:ff:ff:ff nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier The device was working fine on 11-current. I switched to 10.2-RELEASE last Friday, 4-MAR, the device was still *working*, I think. Then it stopped. Perhaps there is some misconfig or clash. Does this look ok? # cat /boot/loader.conf kern.vty=vt if_urtwn_load="YES" legal.realtek.license_ack=1 urtwn-rtl8192cfwT_load="YES" linux_load="YES" cuse4bsd_load="YES" geom_bde_load="YES" I then updated to 10.3 and now I cannot make it work. Thanks Anton
not sure if related, I saw this is dmesg even when urtwn was working fine: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Root mount waiting for: usbus0 Root mount waiting for: usbus0 usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Root mount waiting for: usbus0 usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Root mount waiting for: usbus0 Root mount waiting for: usbus0 usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Root mount waiting for: usbus0 usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR ugen0.4: <Unknown> at usbus0 (disconnected) uhub_reattach_port: could not allocate new device Root mount waiting for: usbus0 ugen0.4: <Sierra Wireless, Incorporated> at usbus0 Anton
Still the same in 11-current r297297: wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether ff:ff:ff:ff:ff:ff nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 11 (2462 MHz 11g ht/20) country US authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 0 bmiss 7 scanvalid 60 protmode CTS ht20 ampdulimit 8k wme roaming MANUAL bintval 102 groups: wlan
I have same problem. Fbsd 11.0-RELEASE, RPI2 and TRENDnet TEW-648UBM (RTL8188CUS) However i have to say that this usb device worked fine in 2016 autumn/summer. Can't say exact snapshot versions, since they are gone for good. I think that 11-Beta1 worked too, but stopped working somewhere around RC-s. If someone has snapshot or beta images for RPI2, then i could test. Also IF wired interface is configured and connected, then wifi adapter gets ip and associates correctly and wifi ip answers ping until cable is removed. I tested with CURRENT (fbsd 12) too, which could not even find this wifi device.
(In reply to eimar.koort from comment #7) Sry: "2016 autumn/summer." - i ment "2016 spring/summer."
Hi! Can you try to test the driver from https://github.com/s3erios/rtwn repository? This one is used in 12-CURRENT. > I tested with CURRENT (fbsd 12) too, which could not even find this wifi device. There was an UPDATING entry: https://svnweb.freebsd.org/base/head/UPDATING?r1=307376&r2=307532
(In reply to Andriy Voskoboinyk from comment #9) root@rpi2:~/rtwn-master/sys/modules/rtwnfw # cd ../rtwn && make depend && make && make install machine -> /usr/src/sys/arm/include awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h :> opt_bus.h echo "#define IEEE80211_DEBUG 1" > opt_wlan.h echo "#define IEEE80211_AMPDU_AGE 1" >> opt_wlan.h echo "#define IEEE80211_SUPPORT_MESH 1" >> opt_wlan.h Warning: Object directory not changed from original /root/rtwn-master/sys/modules/rtwn cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/root/rtwn-master/sys/modules/rtwn/../.. -I. -I/usr/src/sys -fno-common -funwind-tables -MD -MF.depend.if_rtwn.o -MTif_rtwn.o -ffreestanding -fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -mno-movt -mfpu=none -std=iso9899:1999 -c /root/rtwn-master/sys/modules/rtwn/../../dev/rtwn/if_rtwn.c -o if_rtwn.o In file included from /root/rtwn-master/sys/modules/rtwn/../../dev/rtwn/if_rtwn.c:48: In file included from /usr/src/sys/net/if_var.h:74: In file included from /usr/src/sys/sys/buf_ring.h:33: ./machine/cpu.h:47:10: error: implicit declaration of function 'cp15_pmccntr_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return cp15_pmccntr_get(); ^ 1 error generated. *** Error code 1 Stop. make: stopped in /root/rtwn-master/sys/modules/rtwn root@rpi2:~/rtwn-master/sys/modules/rtwn # uname -a FreeBSD rpi2 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308737: Thu Nov 17 08:02:03 UTC 2016 root@releng3.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/GENERIC arm
Ok, you need a workaround from https://lists.freebsd.org/pipermail/freebsd-arm/2016-March/013393.html : change cd ../rtwn && make depend && make && make install to cd ../rtwn && make depend && make CONF_CFLAGS=-march=armv7a && make install
(In reply to Andriy Voskoboinyk from comment #11) Sry. I don't know how to add attachment (if even). So here is another long error list from 'rtwn_usb': root@rpi2:~/rtwn-master/sys/modules/rtwn_usb # make depend && make CONF_CFLAGS=-march=armv7a && make install machine -> /usr/src/sys/arm/include awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h :> opt_bus.h :> opt_usb.h echo "#define IEEE80211_DEBUG 1" > opt_wlan.h echo "#define IEEE80211_AMPDU_AGE 1" >> opt_wlan.h echo "#define IEEE80211_SUPPORT_MESH 1" >> opt_wlan.h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/usb/usb_if.m -h awk -f /usr/src/sys/tools/usbdevs2h.awk /usr/src/sys/dev/usb/usbdevs -h Warning: Object directory not changed from original /root/rtwn-master/sys/modules/rtwn_usb cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/root/rtwn-master/sys/modules/rtwn_usb/../.. -I. -I/usr/src/sys -fno-common -funwind-tables -march=armv7a -MD -MF.depend.rtwn_usb_attach.o -MTrtwn_usb_attach.o -ffreestanding -fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -mno-movt -mfpu=none -std=iso9899:1999 -c /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c -o rtwn_usb_attach.o In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:117:2: error: use of undeclared identifier 'USB_PRODUCT_ASUS_USBAC56' RTWN_RTL8812AU_DEV(ASUS, USBAC56), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_ASUS_USBAC56 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:118:2: error: use of undeclared identifier 'USB_PRODUCT_CISCOLINKSYS_WUSB6300' RTWN_RTL8812AU_DEV(CISCOLINKSYS, WUSB6300), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_CISCOLINKSYS_WUSB6300 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:121:2: error: use of undeclared identifier 'USB_PRODUCT_EDIMAX_EW7822UAC' RTWN_RTL8812AU_DEV(EDIMAX, EW7822UAC), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_EDIMAX_EW7822UAC ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:122:2: error: use of undeclared identifier 'USB_PRODUCT_IODATA_WNAC867U' RTWN_RTL8812AU_DEV(IODATA, WNAC867U), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_IODATA_WNAC867U ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:123:2: error: use of undeclared identifier 'USB_PRODUCT_MELCO_WIU3866D' RTWN_RTL8812AU_DEV(MELCO, WIU3866D), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_MELCO_WIU3866D ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:124:2: error: use of undeclared identifier 'USB_PRODUCT_NEC_WL900U' RTWN_RTL8812AU_DEV(NEC, WL900U), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_NEC_WL900U ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:125:2: error: use of undeclared identifier 'USB_PRODUCT_PLANEX2_GW900D' RTWN_RTL8812AU_DEV(PLANEX2, GW900D), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_PLANEX2_GW900D ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:126:2: error: use of undeclared identifier 'USB_PRODUCT_SENAO_EUB1200AC' RTWN_RTL8812AU_DEV(SENAO, EUB1200AC), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_SENAO_EUB1200AC ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:127:2: error: use of undeclared identifier 'USB_PRODUCT_SITECOMEU_WLA7100' RTWN_RTL8812AU_DEV(SITECOMEU, WLA7100), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_SITECOMEU_WLA7100 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:128:2: error: use of undeclared identifier 'USB_VENDOR_TPLINK' RTWN_RTL8812AU_DEV(TPLINK, T4U), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:12: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_VENDOR_TPLINK ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:129:2: error: use of undeclared identifier 'USB_PRODUCT_TRENDNET_TEW805UB' RTWN_RTL8812AU_DEV(TRENDNET, TEW805UB), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_TRENDNET_TEW805UB ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:130:2: error: use of undeclared identifier 'USB_PRODUCT_ZYXEL_NWD6605' RTWN_RTL8812AU_DEV(ZYXEL, NWD6605), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:116:28: note: expanded from macro 'RTWN_RTL8812AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8812AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_ZYXEL_NWD6605 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:138:2: error: use of undeclared identifier 'USB_PRODUCT_EDIMAX_EW7811UTC_1' RTWN_RTL8821AU_DEV(EDIMAX, EW7811UTC_1), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:135:28: note: expanded from macro 'RTWN_RTL8821AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8821AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_EDIMAX_EW7811UTC_1 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:139:2: error: use of undeclared identifier 'USB_PRODUCT_EDIMAX_EW7811UTC_2' RTWN_RTL8821AU_DEV(EDIMAX, EW7811UTC_2), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:135:28: note: expanded from macro 'RTWN_RTL8821AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8821AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_EDIMAX_EW7811UTC_2 ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:140:2: error: use of undeclared identifier 'USB_PRODUCT_HAWKING_HD65U' RTWN_RTL8821AU_DEV(HAWKING, HD65U), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:135:28: note: expanded from macro 'RTWN_RTL8821AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8821AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_HAWKING_HD65U ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:141:2: error: use of undeclared identifier 'USB_PRODUCT_MELCO_WIU2433DM' RTWN_RTL8821AU_DEV(MELCO, WIU2433DM), ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:135:28: note: expanded from macro 'RTWN_RTL8821AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8821AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_MELCO_WIU2433DM ^ In file included from /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:55: /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:142:2: error: use of undeclared identifier 'USB_PRODUCT_NETGEAR_A6100' RTWN_RTL8821AU_DEV(NETGEAR, A6100) ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.h:135:28: note: expanded from macro 'RTWN_RTL8821AU_DEV' { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8821AU) } ^ <scratch space>:52:1: note: expanded from here USB_PRODUCT_NETGEAR_A6100 ^ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:102:49: error: invalid application of 'sizeof' to an incomplete type 'const struct usb_device_id []' return (usbd_lookup_id_by_uaa(rtwn_devs, sizeof(rtwn_devs), uaa)); ^~~~~~~~~~~ /root/rtwn-master/sys/modules/rtwn_usb/../../dev/rtwn/usb/rtwn_usb_attach.c:441:1: error: invalid application of 'sizeof' to an incomplete type 'const struct usb_device_id []' USB_PNP_HOST_INFO(rtwn_devs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/dev/usb/usbdi.h:344:12: note: expanded from macro 'USB_PNP_HOST_INFO' sizeof(table) / sizeof(table[0])) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/sys/module.h:178:16: note: expanded from macro 'MODULE_PNP_INFO' .num_entry = n \ ^ 19 errors generated. *** Error code 1 Stop. make: stopped in /root/rtwn-master/sys/modules/rtwn_usb root@rpi2:~/rtwn-master/sys/modules/rtwn_usb #
Copy sys/dev/usb/usbdevs from FreeBSD-12-current to your /usr/src/sys/dev/usb/usbdevs . You can use this link to obtain usbdevs from 12-current. https://svnweb.freebsd.org/base/head/sys/dev/usb/usbdevs?view=co --HPS
(In reply to Hans Petter Selasky from comment #13) So. Updated sources to revision 308845 (about an hour ago). Compiled with 'make CONF_CFLAGS=-march=armv7a'. Moved old drivers if_rtwn* out of the way. Loaded new drivers and here we are: root@rpi2:~ # dmesg |grep rtwn rtwn0 on uhub1 rtwn0: <vendor 0x20f4 product 0x648b, class 0/0, rev 2.00/2.00, addr 4> on usbus0 rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R root@rpi2:~ # grep wlan0 /etc/rc.conf wlans_rtwn0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" root@rpi2:~ # ifconfig wlan0 wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether d8:eb:97:2b:dd:6c inet 192.168.1.218 netmask 0xffffff00 broadcast 192.168.1.255 groups: wlan ssid MySID channel 11 (2462 MHz 11g ht/20) bssid 00:22:07:40:97:b7 regdomain FCC country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60 protmode CTS ht20 ampdulimit 64k ampdudensity 8 shortgi -stbc wme roaming MANUAL media: IEEE 802.11 Wireless Ethernet MCS mode 11ng status: associated nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> root@rpi2:~ # uname -a FreeBSD raspel2 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308737: Thu Nov 17 08:02:03 UTC 2016 root@releng3.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/GENERIC arm So it works for me.
(In reply to eimar.koort from comment #14) I'd like to add this piece information also. FreeBSD rpi2 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 13:01:42 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm /etc/rc.conf: Wireless WORKS: ~~~~~~~~~~~~~~~~ 1) wlans_urtwn0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" 2) wlans_urtwn0="wlan0" ifconfig_wlan0="WPA inet 192.168.1.4 netmask 255.255.255.0" Wireless DOESN'T WORK: ~~~~~~~~~~~~~~~~~~~~ 1) ifconfig_ue0="192.168.1.3 netmask 255.255.255.0" wlans_urtwn0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" 2) ifconfig_ue0="192.168.1.3 netmask 255.255.255.0" wlans_urtwn0="wlan0" ifconfig_wlan0="WPA inet 192.168.1.4 netmask 255.255.255.0" If lan device (ue0) ISconfigured then wireless (urtwn0) gets associated, but ip is not answering from network until ethernet cable is connected. If lan device (ue0) IS NOT configured then wireless (urtwn0) comes up without problems. So my initial whining about "urtwn wifi not working" is actually something different.
(In reply to eimar.koort from comment #15) I hope it's not considered as spamming. I discovered this also 1) /etc/rc.conf: wlans_urtwn0="wlan0" ifconfig_wlan0="WPA inet 192.168.1.4 netmask 255.255.255.0" defaultrouter="192.168.1.1" but default router won't be configured at all. You have to add it manually. Otherwise it works fine. 2) If this is enabled in /etc/rc.conf: ifconfig_wlan0_ipv6="inet6 accept_rtadv" rtsold_enable="YES" Then device can't associate with wireless network. Since i don't have (external) keyboard i can't exactly see what's going on inside this RPI2. I can see however, that blue light is blinking, which should mean that it tries to find and associate, but never succeeds.
^Triage: If this is still an issue in supported (non-EoL) FreeBSD versions, please re-eopen the issue with additional details and steps to reproduce