Ireng Posted July 21, 2015 Posted July 21, 2015 Hi to All!Currently i am using 3.4.107-cubietruck #14 SMP PREEMPT Wed Apr 29 11:57:42 CEST 2015 armv7l GNU/Linux including a WLAN USB Adapter AWUS036AC from ALFA. First question: Does anybody got this adapter to work with a cubietruck as a WLAN-AP?Second question: If yes, what driver did you use for the successful implementation? Third: How to disable the onboard WLAN?I want to use it as a 5GHZ (AC-standard) WLAN-AP!Many thanks in advance.Regards, Ireng
Igor Posted July 22, 2015 Posted July 22, 2015 I have similar (Realtek 8812AU chipset) but haven't got far yet. Most promising driver, not sure that AP is operational and stable @5Ghz. https://github.com/gnab/rtl8812au more info https://wikidevi.com/wiki/ALFA_Network_AWUS036AC
Ireng Posted July 23, 2015 Author Posted July 23, 2015 Hi Igor, thank you for your reply and support! Since I opened this subject already twice on cubieforums.com, I thin we should discuss the issue here and in the other two threads should refere to her! I tried the ALFA driver, and it is a complete mess. Currently I try get the adapter to work with the rtl8812au-linux driver. However, I'll give your reference https://github.com/gnab/rtl8812au a trial as well and will report back here later. Thanks for your help, support and references. I'll keep this thread updated! regards, Ireng
Ireng Posted July 24, 2015 Author Posted July 24, 2015 Hi Igor, at the moment the WLAN AP is working in 802.11.a mode(5 GHZ) including the current installed driver (rtl8812au-linux). However I still can not connect with my TAB S or Glaxay mobile phone. /usr/sbin/hostapd-rt /etc/hostapd.conf-rt starts the WALN-AP. Please have a look at the enclosed hostapd.conf-rt, maybe I made some mistakes or overlooked an option: ctrl_interface=/var/run/hostapdctrl_interface_group=0interface=wlx00c0ca8184e0bssid=00:c0:ca:81:84:e0ssid=Office5channel=44noscan=1wpa=2wpa_passphrase=XXXXXXXXXXXXXXXbridge=br0wmm_enabled=1#driver=rtl8821au#driver=rtl8821au#driver=8812au#driver=rtl8812au#driver=RTL871X#driver=nl80211beacon_int=100hw_mode=a#ieee80211d=1ieee80211n=1#ieee80211ac=1country_code=DEwme_enabled=1ht_capab=[sHORT-GI-40][sHORT-GI-40][HT40+]#ht_capab=[HT40+]wpa_key_mgmt=WPA-PSKwpa_pairwise=TKIPrsn_pairwise=CCMPwpa_group_rekey=86400### hostapd event logger configurationlogger_syslog=127logger_syslog_level=2logger_stdout=127logger_stdout_level=2 the strange looking WLAN devices name was derived from the driver rinstallation. ifconfig results into the following output: br0 Link encap:Ethernet HWaddr 00:c0:ca:81:84:e0 inet addr:192.168.XXX.YYY Bcast:192.168.175.255 Mask:255.255.255.0 inet6 addr: fe80::2c0:caff:fe81:84e0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5558 errors:0 dropped:0 overruns:0 frame:0 TX packets:715 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:617108 (602.6 KiB) TX bytes:81552 (79.6 KiB)eth0 Link encap:Ethernet HWaddr 02:05:06:c0:f8:68 inet addr:192.168.XXX.ZZ Bcast:192.168.175.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10877 errors:0 dropped:0 overruns:0 frame:0 TX packets:1734 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1725206 (1.6 MiB) TX bytes:134456 (131.3 KiB) Interrupt:117 Base address:0xc000lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:528 errors:0 dropped:0 overruns:0 frame:0 TX packets:528 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:52632 (51.3 KiB) TX bytes:52632 (51.3 KiB)wlx00c0ca8184e0 Link encap:Ethernet HWaddr 00:c0:ca:81:84:e0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:36 errors:0 dropped:0 overruns:0 frame:0 TX packets:879 errors:0 dropped:1250 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:840 (840.0 TX bytes:104805 (102.3 KiB) Thanks for your help and support! regards, Ireng
Igor Posted July 24, 2015 Posted July 24, 2015 Hard to comment on this. If you can't connect it's not working Try open mode - without password. The config looks fine but I guess the driver is probably not capable of AP @5Ghz Try the suggested driver. I think it's the best we have than check / open an issue. I know. Pity P.S.I have two sample hostapd.config for my hostapd binary. Have you tried that? /etc/hostapd.conf-rt and /etc/hostapd.conf
Ireng Posted July 24, 2015 Author Posted July 24, 2015 Thanks, Igor for your advice. Checking the MAkefile I found 2 otions for the ARM Architecture: CONFIG_PLATFORM_ARM_SUNxI = nCONFIG_PLATFORM_ARM_SUN6I = n Which one is the right one for the cubietruck to set?? Thanks in advance for your advice! regards, Ireng
Igor Posted July 24, 2015 Posted July 24, 2015 Very simple You don't need to edit anything. git clone https://github.com/gnab/rtl8812au cd rtl8812au make ARCH=arm insmod 8812au.ko Plug-in WiFi adapter and voila. AP mode @2.4 working out of the box, I can try 5G tomorrow. Kernel is 4.0.5, board Orange Pi. Can you paste your network configuration. Maybe there is a problem?
Ireng Posted July 25, 2015 Author Posted July 25, 2015 Hi Igor! Thanks for your answer: Enclosed you'll find my network configuration from /etc/network/interfaces: #Loopback device auto lo iface lo inet loopback#LAN Device eth0 auto eth0 iface eth0 inet static address 192.168.175.25 netmask 255.255.255.0 broadcast 192.168.175.255 network 192.168.175.0/24 gateway 192.168.175.1 nameserver 192.168.175.1#WLAN Device 1 (USB Adapter ALFA AWUS036AC) auto wlx00c0ca8184e0 allow-hotplug wlx00c0ca8184e0 iface wlx00c0ca8184e0 inet manual address 0.0.0.0##Bridge br0 fuer Interfaces ETH0 und wlx00c0ca8184e0 auto br0 iface br0 inet static address 192.168.175.191 netmask 255.255.255.0 network 192.168.175.0/24 broadcast 192.168.175.255 gateway 192.168.175.1 nameserver 192.168.175.1 bridge_ports eth0 wlx00c0ca8184e0 bridge_fd 0 bridge_stp n At this time I even can not access the net! Enclosed you'll find a screenshot from my router! strange, that br0 and cubie5 share the same IP address! ifconfig: br0 Link encap:Ethernet HWaddr 00:c0:ca:81:84:e0 inet addr:192.168.175.191 Bcast:192.168.175.255 Mask:255.255.255.0 inet6 addr: fe80::2c0:caff:fe81:84e0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1968 errors:0 dropped:0 overruns:0 frame:0 TX packets:1428 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:155003 (151.3 KiB) TX bytes:244568 (238.8 KiB)eth0 Link encap:Ethernet HWaddr 02:05:06:c0:f8:68 inet addr:192.168.175.25 Bcast:192.168.175.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2391 errors:0 dropped:0 overruns:0 frame:0 TX packets:1577 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:273843 (267.4 KiB) TX bytes:270930 (264.5 KiB) Interrupt:117 Base address:0xc000lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:105 errors:0 dropped:0 overruns:0 frame:0 TX packets:105 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10200 (9.9 KiB) TX bytes:10200 (9.9 KiB)wlx00c0ca8184e0 Link encap:Ethernet HWaddr 00:c0:ca:81:84:e0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:44 errors:0 dropped:34 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 TX bytes:6320 (6.1 KiB) regards, Ireng Cubie5 is the system in trouble! :-)
Ireng Posted July 25, 2015 Author Posted July 25, 2015 Now the Infor in the router changed (without my interaction) But still no access to the net! regards, Ireng
Ireng Posted July 28, 2015 Author Posted July 28, 2015 Hi Igor" Did you have a chance to look at my last postings? Regards, Ireng
Igor Posted July 28, 2015 Posted July 28, 2015 Not much but look what I did. - latest fresh image 4.1.2 - git clone https://github.com/gnab/rtl8812au - make and load driver - use default hostapd-rt.conf and hostapd-rt binnary - use interfaces.hostapd it works normally. Not tested for 5ghz.. busy @moment.
Ireng Posted July 28, 2015 Author Posted July 28, 2015 Hi Igor! Thanks for your support. The current configuration and driver shows a 5 GHz WLAN available. The only problem is, that I can not connect from my mobile phone or tab to the AP. It always refused the connection. Perhaps a misconfiguration of the network?? The mobile devices are ac capable devices. Regards, Ireng PS. The reason why I want to use 5 GHZ network is because the 2,4 GHZ is over crowded in my location. Nobody is using 5 GHZ.
Ireng Posted July 28, 2015 Author Posted July 28, 2015 Output fro iw list: cubie5:~# iw listWiphy phy1 Band 1: Capabilities: 0x1862 HT20/HT40 Static SM Power Save RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 7935 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 16 usec (0x07) HT TX/RX MCS rate indexes supported: 0-15, 32 Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (20.0 dBm) (no IR) * 2472 MHz [13] (20.0 dBm) (no IR) * 2484 MHz [14] (20.0 dBm) (no IR) Bitrates (non-HT): * 1.0 Mbps * 2.0 Mbps * 5.5 Mbps * 11.0 Mbps * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Band 2: Capabilities: 0x1862 HT20/HT40 Static SM Power Save RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 7935 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 16 usec (0x07) HT TX/RX MCS rate indexes supported: 0-15, 32 Frequencies: * 5170 MHz [34] (disabled) * 5180 MHz [36] (20.0 dBm) (no IR) * 5190 MHz [38] (20.0 dBm) (no IR) * 5200 MHz [40] (20.0 dBm) (no IR) * 5210 MHz [42] (20.0 dBm) (no IR) * 5220 MHz [44] (20.0 dBm) (no IR) * 5230 MHz [46] (20.0 dBm) (no IR) * 5240 MHz [48] (20.0 dBm) (no IR) * 5260 MHz [52] (disabled) * 5280 MHz [56] (disabled) * 5300 MHz [60] (disabled) * 5320 MHz [64] (disabled) * 5500 MHz [100] (disabled) * 5520 MHz [104] (disabled) * 5540 MHz [108] (disabled) * 5560 MHz [112] (disabled) * 5580 MHz [116] (disabled) * 5600 MHz [120] (disabled) * 5620 MHz [124] (disabled) * 5640 MHz [128] (disabled) * 5660 MHz [132] (disabled) * 5680 MHz [136] (disabled) * 5700 MHz [140] (disabled) * 5745 MHz [149] (20.0 dBm) (no IR) * 5765 MHz [153] (20.0 dBm) (no IR) * 5785 MHz [157] (20.0 dBm) (no IR) * 5805 MHz [161] (20.0 dBm) (no IR) * 5825 MHz [165] (20.0 dBm) (no IR) * 5920 MHz [184] (disabled) * 5940 MHz [188] (disabled) * 5960 MHz [192] (disabled) * 5980 MHz [196] (disabled) * 6000 MHz [200] (disabled) * 6020 MHz [204] (disabled) * 6040 MHz [208] (disabled) * 6060 MHz [212] (disabled) * 6080 MHz [216] (disabled) Bitrates (non-HT): * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps max # scan SSIDs: 9 max scan IEs length: 2304 bytes Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP (00-0f-ac:4) Available Antennas: TX 0 RX 0 Supported interface modes: * IBSS * managed * AP * monitor * P2P-client * P2P-GO software interface modes (can always be added): * monitor interface combinations are not supported Supported commands: * new_interface * set_interface * new_key * start_ap * new_station * set_bss * join_ibss * set_pmksa * del_pmksa * flush_pmksa * remain_on_channel * frame * set_channel * connect * disconnect Supported TX frame types: * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 Supported RX frame types: * IBSS: 0xd0 * managed: 0x40 0xd0 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * P2P-client: 0x40 0xd0 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
Igor Posted July 28, 2015 Posted July 28, 2015 The reason why I want to use 5 GHZ network is because the 2,4 GHZ is over crowded in my location. Nobody is using 5 GHZ. I am having a similar situation but failed to find appropriate / cheap 5Ghz AP. I own three dual band wifi devices (2 x mPCI 1 x USB) and this one is the only one that it (almost?) work. Others, Atheros 9382 doesn't work at all and Intel 7260AC simply does not support AP in 5Ghz. You'll need to ask driver maintainer for additional help & tips: https://github.com/gnab/rtl8812au/issues
Ireng Posted December 7, 2015 Author Posted December 7, 2015 Hi, is there any progress / good news on this issue?? LINUX -Driver, etc.?? regards, Ireng
Igor Posted December 8, 2015 Posted December 8, 2015 Try to build a driver from the source. https://github.com/gnab/rtl8812au There were some changes in the source but I can't tell if this brought any real world progress.
Recommended Posts