5GHz WiFi dongle compatible with Arch Linux ARM

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby moonman » Thu May 07, 2015 11:03 pm

This is your error:
$this->bbcode_second_pass_code('', '/var/lib/dkms/rtl8812au/4.2.2.7502.20130517/build/include/ioctl_cfg80211.h:114:71: error: too many arguments to function ‘cfg80211_rx_mgmt’
#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)')

Something changed in the kernel, driver needs patching.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby EmbeddedGuy » Fri May 08, 2015 9:52 am

I used this one without makepkg, and it seems to behave nicely in 3.18.9-3-ARCH.

https://github.com/gnab/rtl8812au
EmbeddedGuy
 
Posts: 25
Joined: Mon Jan 12, 2015 1:03 pm

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby technosf » Sat May 09, 2015 7:51 pm

Thanks for that EmbeddedGuy...

This didn't compile for me initial on my NSA325 - Issue with the use of strnicmp in os_dep/linux/rtw_android.c.

Replacing strnicmp with strncasecmp, and it al compiles up and the module loads. Will have to plug in the dongle and give it a whirl.


There are plenty of rtl8812au drivers out there... And some poss. patches: https://github.com/pld-linux/rtl8812au

Will explore these more.
[size=85] MochaBin 5G || NSA325 [/size]
technosf
 
Posts: 130
Joined: Sat Jan 08, 2011 10:54 pm

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby EmbeddedGuy » Sat May 09, 2015 7:59 pm

The NAS server is unfortunately out of my league as i compiled it on a RPi2. I hope you solve the problem!
EmbeddedGuy
 
Posts: 25
Joined: Mon Jan 12, 2015 1:03 pm

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby technosf » Sun May 17, 2015 10:20 pm

I've compiled gnab's fork of the driver, and with the strnicmp with strncasecmp mod in os_dep/linux/rtw_android.c.

I also read that power management could be an issue, so I changed the makefile:

$this->bbcode_second_pass_code('', '
CONFIG_RTL8812A = y
CONFIG_RTL8821A = n
')
and
$this->bbcode_second_pass_code('', '
CONFIG_MP_INCLUDED = y
CONFIG_POWER_SAVING = n
')

So, it builds and the module loads.

I plugs in the bugger!

$this->bbcode_second_pass_code('', '
[ 222.349680] RTL871X: rtl8812au driver version=v4.2.2_7502.20130517
[ 222.358382] RTL871X:
usb_endpoint_descriptor(0):
[ 222.367718] RTL871X: bLength=7
[ 222.370786] RTL871X: bDescriptorType=5
[ 222.377022] RTL871X: bEndpointAddress=81
[ 222.381087] RTL871X: wMaxPacketSize=512
[ 222.387347] RTL871X: bInterval=0
[ 222.390727] RTL871X: RT_usb_endpoint_is_bulk_in = 1
[ 222.396727] RTL871X:
usb_endpoint_descriptor(1):
[ 222.402984] RTL871X: bLength=7
[ 222.409027] RTL871X: bDescriptorType=5
[ 222.412910] RTL871X: bEndpointAddress=2
[ 222.417914] RTL871X: wMaxPacketSize=512
[ 222.421763] RTL871X: bInterval=0
[ 222.426063] RTL871X: RT_usb_endpoint_is_bulk_out = 2
[ 222.431085] RTL871X:
usb_endpoint_descriptor(2):
[ 222.438349] RTL871X: bLength=7
[ 222.441418] RTL871X: bDescriptorType=5
[ 222.446080] RTL871X: bEndpointAddress=3
[ 222.449928] RTL871X: wMaxPacketSize=512
[ 222.453773] RTL871X: bInterval=0
[ 222.458577] RTL871X: RT_usb_endpoint_is_bulk_out = 3
[ 222.463602] RTL871X:
usb_endpoint_descriptor(3):
[ 222.474695] RTL871X: bLength=7
[ 222.477763] RTL871X: bDescriptorType=5
[ 222.481519] RTL871X: bEndpointAddress=4
[ 222.493320] RTL871X: wMaxPacketSize=512
[ 222.497894] RTL871X: bInterval=0
[ 222.501234] RTL871X: RT_usb_endpoint_is_bulk_out = 4
[ 222.507173] RTL871X:
usb_endpoint_descriptor(4):
[ 222.513377] RTL871X: bLength=7
[ 222.517471] RTL871X: bDescriptorType=5
[ 222.521240] RTL871X: bEndpointAddress=85
[ 222.526125] RTL871X: wMaxPacketSize=64
[ 222.530032] RTL871X: bInterval=1
[ 222.533275] RTL871X: RT_usb_endpoint_is_int_in = 5, Interval = 1
[ 222.540660] RTL871X: nr_endpoint=5, in_num=2, out_num=3

[ 222.548024] RTL871X: USB_SPEED_HIGH
[ 222.551596] RTL871X: CHIP TYPE: RTL8812
[ 222.556474] RTL871X: register rtw_netdev_ops to netdev_ops
[ 222.562249] RTL871X: ReadChipVersion8812A SYS_CFG(0xF0)=0x04411135
[ 222.569750] RTL871X: Chip Version Info: CHIP_8812_Normal_Chip_TSMC_C_CUT_2T2R_RomVer(0)
[ 222.578452] RTL871X: RF_Type is 2!!
[ 222.581962] RTL871X: _ConfigChipOutEP_8812 OutEpQueueSel(0x07), OutEpNumber(3)
[ 222.590251] RTL871X: ====> ReadAdapterInfo8812AU
[ 222.595995] RTL871X: Boot from EFUSE, Autoload OK !
[ 222.844107] RTL871X: EEPROM ID=0x8129
[ 222.847818] RTL871X: VID = 0x0BDA, PID = 0x8812
[ 222.852365] RTL871X: Customer ID: 0x00, SubCustomer ID: 0xCD
[ 222.864674] RTL871X: hal_ReadMACAddress_8812AU MAC Address from EFUSE = 04:8d:38:74:79:f1
[ 222.884404] RTL871X: ==>mpt_GetChnlGroup8812A in 5G, but Channel 163 in Group not found
[ 222.892667] RTL871X: ==>mpt_GetChnlGroup8812A in 5G, but Channel 163 in Group not found
[ 222.901927] RTL871X: ==>mpt_GetChnlGroup8812A in 5G, but Channel 163 in Group not found
[ 222.910804] RTL871X: ==>mpt_GetChnlGroup8812A in 5G, but Channel 163 in Group not found
[ 222.919635] RTL871X: EEPROMRegulatory = 0x1 TxPwrCalibrateRate=0x0
[ 222.926476] RTL871X: Board Type: 0x 0
[ 222.930157] RTL871X: mlmepriv.ChannelPlan = 0x7f
[ 222.935724] RTL871X: CrystalCap: 0x 0
[ 222.939399] RTL871X: ThermalMeter = 0x1f
[ 222.943365] RTL871X: SWAS: bHwAntDiv = 0, TRxAntDivType = 3
[ 222.950740] RTL871X: pHalData->PAType_2G is 0x3, pHalData->ExternalPA_2G = 0
[ 222.962646] RTL871X: pHalData->PAType_5G is 0x3, pHalData->ExternalPA_5G = 1
[ 222.971453] RTL871X: pHalData->LNAType_2G is 0x0, pHalData->ExternalLNA_2G = 0
[ 222.980858] RTL871X: pHalData->LNAType_5G is 0x88, pHalData->ExternalLNA_5G = 1
[ 222.988947] RTL871X: RFE Type: 0x 0
[ 222.992452] RTL871X: PID= 0x8812, VID= bda
[ 222.997626] RTL871X: PID= 0x8812, VID= bda
[ 223.001925] RTL871X: Customer ID: 0x 0
[ 223.009730] RTL871X: ReadAdapterInfo8812AU <====
[ 223.015219] RTL871X: init_channel_set ChannelPlan ID 7f Chan num:38
[ 223.022575] RTL871X: can't get autopm:
[ 223.027517] RTL871X: rtw_macaddr_cfg MAC Address = 04:8d:38:74:79:f1
[ 223.034640] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 223.063150] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = 04:8d:38:74:79:f1
[ 223.075192] rtl8812au 3-1.2:1.0 wlan1: renamed from wlan0
[ 223.081003] usbcore: registered new interface driver rtl8812au
[ 223.147686] RTL871X: +871x_drv - drv_open, bup=0
[ 223.175758] RTL871X: power-on :REG_SYS_CLKR 0x09=0xb0. REG_CR 0x100=0xea.
[ 223.185861] RTL871X: MAC has not been powered on yet.
[ 223.261357] RTL871X: ===> FirmwareDownload8812() fw source from Header.
[ 223.268156] RTL871X: ===> FirmwareDownload8812() fw:Firmware for NIC, size: 31396
[ 223.276867] RTL871X: FirmwareDownload8812: fw_ver=15 fw_subver=0 sig=0x9501
[ 223.331109] RTL871X: _FWFreeToGo8812: Checksum report OK! REG_MCUFWDL:0x00070704
[ 223.339727] RTL871X: =====> _8051Reset8812(): 8051 reset success .
[ 223.368861] RTL871X: _FWFreeToGo8812: Polling FW ready success!! REG_MCUFWDL:0x000707c6
[ 223.376923] RTL871X: rtl8812au_hal_init: Download Firmware Success!!
[ 223.410608] RTL871X: ===> phy_BB8812_Config_ParaFile() EEPROMRegulatory 1
[ 223.417479] RTL871X: Index of power limit table [band 2.4G][regulation FCC][bw 20M][rate section CCK][rf path 1T][chnl 01][val 36]
')
more scan info
$this->bbcode_second_pass_code('', '
[ 239.817623] RTL871X: No power limit table of the specified band 1, bandwidth 0, ratesection 0, group 0, rf path 0
[ 239.829004] RTL871X: use other value 63
[ 239.832704] Unable to handle kernel paging request at virtual address 9a90454f
[ 239.842918] pgd = dbc8c000
[ 239.845976] [9a90454f] *pgd=00000000
[ 239.850064] Internal error: Oops: 5 [#1] PREEMPT ARM
[ 239.855048] Modules linked in: 8812au(O) ctr ccm sha512_generic sha256_generic blowfish_generic blowfish_common ipt_REJECT nf_reject_ipv4 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit xt_tcpudp xt_addrtype ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack rt2800usb rt2x00usb rt2800lib rt2x00lib mac80211 cfg80211 pl2303 ip6table_filter rfkill ip6_tables ax88179_178a usbnet usbserial nf_conntrack_netbios_ns rtc_pcf8563 nf_conntrack_broadcast mv_cesa nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables cryptodev(O) ipv6
[ 239.909648] CPU: 0 PID: 309 Comm: systemd-network Tainted: G O 4.0.3-1-ARCH #1
[ 239.918032] Hardware name: ZyXEL NSA325 2-Bay Power Media Server
[ 239.924059] task: dee4f180 ti: dee84000 task.ti: dee84000
[ 239.929643] PC is at PHY_ConvertPowerLimitToPowerIndex+0x54c/0xec8 [8812au]
[ 239.936762] LR is at PHY_ConvertPowerLimitToPowerIndex+0x534/0xec8 [8812au]
[ 239.943751] pc : [<bf331cd4>] lr : [<bf331cbc>] psr: 60000013
sp : dee85b48 ip : 00000002 fp : db5ba872
[ 239.955276] r10: db5b8000 r9 : 00000000 r8 : db5bb000
[ 239.960517] r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : 0000003f
[ 239.967065] r3 : 9a904548 r2 : 00000000 r1 : 00000002 r0 : 0000001b
[ 239.973614] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 239.980773] Control: 0005397f Table: 1bc8c000 DAC: 00000015
[ 239.986537] Process systemd-network (pid: 309, stack limit = 0xdee84190)
[ 239.993260] Stack: (0xdee85b48 to 0xdee86000)
[ 239.997632] 5b40: 00000000 00000000 0000003f 0000000c 00000001 0000001c
[ 240.005847] 5b60: 00000000 00000000 00000000 00000000 00000000 db5ba872 e12e9000 bf349788
[ 240.014062] 5b80: 00000000 db5ba872 db5ba872 db5ba872 db5b8000 db5ba872 db5ba872 e12e6000
[ 240.022275] 5ba0: 00000450 e12e6000 db5bb450 db5b8000 00000001 db5b8000 00000450 00000510
[ 240.030489] 5bc0: 00000000 bf332830 db5b8000 db5b8000 ffffdcee e12e6000 000004c7 bf33bdc4
[ 240.038704] 5be0: 00001002 00000000 bf356340 db1bb410 00000000 c0053b30 e12e6000 e12e6000
[ 240.046918] 5c00: bf356340 00001002 00000000 bf356340 db1bb410 bf323338 e12ea000 dbc86000
[ 240.055133] 5c20: e12e6000 bf3116e4 00000000 dee85c6c 0000000d ffffffed e12e6000 dbc86000
[ 240.063347] 5c40: bf356340 00001002 00000000 bf356340 db1bb410 bf3119c0 bf3119a0 dbc86000
[ 240.071560] 5c60: 00000001 c04d0598 00000000 dbc86000 dbc86000 00000001 00001003 c04d0834
[ 240.079775] 5c80: dbc86000 dbc86140 00001002 00000000 00000000 c04d0908 dbc86000 dbc86000
[ 240.087989] 5ca0: dee85d18 00000000 defddd80 c04df278 bf03926c 00000000 dfd57c3c 00000000
[ 240.096203] 5cc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dbc86000
[ 240.104417] 5ce0: db1bb400 defddd80 00000000 c07e5318 00000000 00000000 00000000 c04df7e4
[ 240.112632] 5d00: dee85d08 00000000 dec01400 00000001 dee85d98 c00d3808 00000000 00000000
[ 240.120846] 5d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 240.129061] 5d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 240.137275] 5d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 240.145489] 5d80: db1bb420 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 240.153703] 5da0: 00000000 00000000 00000000 00000000 db1bb400 00000003 defddd80 c04de7ac
[ 240.161917] 5dc0: 00000000 da84da80 df4aba5c c030c91c df422000 00000000 c07e5318 db1bb400
[ 240.170132] 5de0: defddd80 c04de650 defddd80 00000000 00000000 c04f8fbc defddd80 dbd01400
[ 240.178346] 5e00: 00000030 c04de640 df4ab800 c04f8918 dee85ee8 00000000 dee85ee8 00000000
[ 240.186560] 5e20: 00000030 dbd01400 00000008 c04f8d94 c07b8acc 00020200 00000000 df41f000
[ 240.194775] 5e40: c07a2d1c defddd80 db1757c0 00000000 00000135 000000c1 000000c1 00000000
[ 240.202989] 5e60: 00080208 dac17580 00000030 dee85ee8 00000000 dac17580 dee84000 00000000
[ 240.211203] 5e80: bea9792c c04b4914 00000000 00000000 00000000 00000000 dee4f180 00000000
[ 240.219417] 5ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 240.227632] 5ec0: 00000000 00000030 b6f0b170 c04b6800 00000030 c00c4198 00000000 00000000
[ 240.235846] 5ee0: b6f0b170 00000030 dee85f10 00000010 00000001 00000000 00000000 dee85ee8
[ 240.244060] 5f00: 00000000 00000000 00000000 00000040 00000010 00000000 00000000 00000000
[ 240.252274] 5f20: da8ec240 c0103a58 c07f35b8 da8ec240 00000000 00000001 b6df1000 dbd73484
[ 240.260489] 5f40: aaa6f1fe ffffffff 1aab8087 031f27cf da8ec240 dee85f90 00000001 b6e07af0
[ 240.268702] 5f60: 00000107 c0009704 dee84000 00000001 b6e07af0 00000107 c0009704 bea97940
[ 240.276917] 5f80: 00000008 00000000 bea97940 c0067b5c bea9790c 00000010 b6e07af0 00000122
[ 240.285131] 5fa0: c0009704 c0009580 bea9790c 00000010 00000007 b6f0b170 00000030 00000000
[ 240.293345] 5fc0: bea9790c 00000010 b6e07af0 00000122 00000000 00000000 b6f01ca8 bea9792c
[ 240.301560] 5fe0: 00000000 bea978e8 b6d49ed0 b6d4addc 80000010 00000007 fadfe3fb 5c75b7ff
[ 240.310050] [<bf331cd4>] (PHY_ConvertPowerLimitToPowerIndex [8812au]) from [<bf332830>] (PHY_BBConfig8812+0x1e0/0x34c [8812au])
[ 240.321841] [<bf332830>] (PHY_BBConfig8812 [8812au]) from [<bf33bdc4>] (rtl8812au_hal_init+0xd2c/0x1094 [8812au])
[ 240.332404] [<bf33bdc4>] (rtl8812au_hal_init [8812au]) from [<bf323338>] (rtw_hal_init+0x1c/0x98 [8812au])
[ 240.342326] [<bf323338>] (rtw_hal_init [8812au]) from [<bf3116e4>] (_netdev_open+0x68/0x324 [8812au])
[ 240.351795] [<bf3116e4>] (_netdev_open [8812au]) from [<bf3119c0>] (netdev_open+0x20/0x38 [8812au])
[ 240.360993] [<bf3119c0>] (netdev_open [8812au]) from [<c04d0598>] (__dev_open+0xd4/0x150)
[ 240.369213] [<c04d0598>] (__dev_open) from [<c04d0834>] (__dev_change_flags+0x90/0x14c)
[ 240.377251] [<c04d0834>] (__dev_change_flags) from [<c04d0908>] (dev_change_flags+0x18/0x48)
[ 240.385728] [<c04d0908>] (dev_change_flags) from [<c04df278>] (do_setlink+0x2a4/0x748)
[ 240.393679] [<c04df278>] (do_setlink) from [<c04df7e4>] (rtnl_setlink+0xc8/0xfc)
[ 240.401108] [<c04df7e4>] (rtnl_setlink) from [<c04de7ac>] (rtnetlink_rcv_msg+0x15c/0x1f8)
[ 240.409326] [<c04de7ac>] (rtnetlink_rcv_msg) from [<c04f8fbc>] (netlink_rcv_skb+0xb4/0xd8)
[ 240.417624] [<c04f8fbc>] (netlink_rcv_skb) from [<c04de640>] (rtnetlink_rcv+0x1c/0x2c)
[ 240.425576] [<c04de640>] (rtnetlink_rcv) from [<c04f8918>] (netlink_unicast+0x150/0x204)
[ 240.433703] [<c04f8918>] (netlink_unicast) from [<c04f8d94>] (netlink_sendmsg+0x310/0x384)
[ 240.442008] [<c04f8d94>] (netlink_sendmsg) from [<c04b4914>] (do_sock_sendmsg+0xa4/0xc0)
[ 240.450134] [<c04b4914>] (do_sock_sendmsg) from [<c04b6800>] (SyS_sendto+0xe4/0x118)
[ 240.457911] [<c04b6800>] (SyS_sendto) from [<c0009580>] (ret_fast_syscall+0x0/0x30)
[ 240.465601] Code: 1a000004 e59d3034 e08a3003 e2833db7 (e5d32007)
[ 240.475639] ---[ end trace 520d3f262dc0de76 ]---
')

And no joy.

I think this may be key: Unable to handle kernel paging request at virtual address 9a90454f

Any pointers anyone? Do I need another compile flag?


Cheers
[size=85] MochaBin 5G || NSA325 [/size]
technosf
 
Posts: 130
Joined: Sat Jan 08, 2011 10:54 pm

Re: 5GHz WiFi dongle compatible with Arch Linux ARM

Postby hhh1 » Tue Jul 07, 2015 10:00 am

I've got this on 5ghz dongles as WiFi AP under ARMv7 so far:
1) ASUS AC1200 - no driver(broadcom chipset), support said "windows only".
2) Edimax EW-7711MAC - mediatek driver, but no master mode (
3) tp-link t2u - mediatek - coudn't get it to work.
4) tp-link ac1200 - realtek driver, works unstable
and the winner is:
5) D-link DWA-171 - realtek driver, works stable (more or less)

I've tried every realtek driver I could find. And stopped on https://github.com/gnab/rtl8812au driver
hhh1
 
Posts: 2
Joined: Sun Jun 07, 2015 7:08 am

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests