Working USB Wifi/Ethernet adapters for CoreELEC

Hi,
lsmod shows this.

lsmod

Module Size Used by
sha1_generic 2492 0
bnep 15079 2
hci_uart 34102 1
bluetooth 372939 23 bnep,hci_uart
6lowpan_iphc 10231 1 bluetooth
wetekdvb 92253 0
dhd 815797 0
ir_lirc_codec 5340 0
lirc_dev 11896 1 ir_lirc_codec
ir_mce_kbd_decoder 5212 0
ir_sanyo_decoder 3115 0
88x2bu 2335472 0
ir_sony_decoder 2649 0
ir_jvc_decoder 2799 0
ir_rc6_decoder 3823 0
ir_rc5_decoder 2735 0
ir_nec_decoder 3615 0
cfg80211 417431 2 dhd,88x2bu
meson_ir 4389 0
mali 224423 5
rc_core 19532 11 lirc_dev,meson_ir,ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder
wetekplay 117499 1 wetekdvb
dvb_core 105934 2 wetekdvb,wetekplay
wifi_dummy 894 0
amlvideodri 13210 1
videobuf_res 5690 1 amlvideodri
videobuf_core 18248 2 amlvideodri,videobuf_res
videodev 144588 2 amlvideodri
dwc_otg 261556 0
fbcon 40863 0
bitblit 4820 1 fbcon
softcursor 1344 1 bitblit
font 7399 1 fbcon

It’s the internal WIFI Chip of the Wetek Play 2

dhd is what you need to blacklist

1 Like

Hi I bought a few of these thinking they were the same as the ones I had previously bought. They are Cheep about US$4

These did not work automatically when I plugged them in. After a little investigation I found they detect as a 16M usb drive and you need usb_modeswitch to get them to switch to being a wifi adapter.

To make them work install Addons > System Tools
This adds the usb_modeswitch command to coreelec.

Then add the following to the autostart.sh in the config directory

#!/bin/sh

(
usb_modeswitch -KW -v 0bda -p 1a2b
) &

Reboot and the device will be detected as wlan1

This was using the internal wifi A95X 2.4G

8621836493

This is using the external adapter 2.4G

8621828414

This is using the external adapter 5G

8621819424

3 Likes

Hi, i use TV BOX X96 on last CoreELEC, and test two usb wifi adapters, one SITECOM WL-352 N300, and DNUB-AT1 dual band N300, they just fine and autostart, but work connect to router at 150Mb/s, not 300Mb/s (on pc usb wifi dongles work ok at 300Mb/s), anyone know how to work on 300Mb/s ? 20/40MHz not work good , ?

DNUB-AT1 have 5Ghz , it’s connecting at 300Mb/s but when copy file the dongle disconect and disable from X96. I dont know why…?

Guys is there any usbethernet or usb lte dongle support in CoreELEC? Usbethernet I mean usb lte sticks that gives address over dhcp to the hosts’s usb0 (as an ethernet interface).

I have two USB-LAN adapter, they works well with CE.
Never tried USB mobile stick but I guess it will not work without setting up it properly.

An option to make this work would be to buy a router with a SIM Card slot that has an ethernet out. Something like the below:

oh. it has :smiley: guys you are awesome.

hi, i am looking for a decent working 5ghz antenna wifi. i am reading Chipset Realtek8811AU

Any better driver should i look to use in amlogic-ng?

sorry my english :sweat_smile: thanks

Hi there, I was struggling with this adapter too, I followed your instructions and others I’ve found online and made this little sob work. But I’m connected to my 5gz. and getting really awful speeds. I mean, nearly no difference (or worst) to the onboard adapter of my X96 Mini, like 18/19 Mbps. on Speedtest. Do you have any additional tweak that I could try? Cheers!

PS: I still have to test it on a windows machine, once I get my hands on one.

No sorry, I find 2.4g is better over longer distance or trough walls 5G is better at short distance also it depends on other factors like the number of other routers in the area.

I’ve rtried to work out which Realtek 8812/8822 driver is inlcuded before I buy an adapter. I really need an AC adapter (2.4 ghz actually for range)
Has anyone tried either of these 2 Edup USB wifi adapters

  1. EP-AC1605GS seems to be RTL8812BU
  2. EP-AC1690 seems to be RTL8822BU

The driver source I found which seems relevant is 88x2bu Driver

I looked at the Corelec sources but couldn’t see where the 8822BU driver source came from to see if either or both the above are going to work. Documentation suggests the 8822BU one should … but I have yet to find reports of success

Anyone succeeded with either of these USB AC Wifi adpaters ? Any other recommendations ?

Thanks

Hey all.
I was testing my lan speed on my M8s II 2/16 tv box with CoreElec 9.2.5 today.

  • With the built-in 100 LAN port of the box I got ~ 95 Mbits/sec

  • With my TP-Link UE300 USB 3.0 to LAN adapter (Realtek 8153 chipset) I got ~ 187 Mbits/sec
    The box only has USB 2.0 ports.

Both my Windows 10 PC and the TV Box are connected to my router with CAT6 UTP cables.
The router has Gbit lan ports. For the tests, I used iperf3. I set my Windows 10 PC as a server and the TV Box as a client.

Are these numbers OK ? I’m asking because I don’t really know what the average numbers are for boxes (and said specs) as the above.

p.s. Isn’t it weird that by reverting the scenario (setting the CoreElec TV Box as a server and the PC as a client) I got quite lower numbers: ~ 65 to 75 Mbits/sec ? The PC has a Gbit ethernet card.

I bought a AX88179 USB Gbit ethernet adapter for my x96Max 2GB ram.
It works out of the box when i plug it in. But when i repoot the box, it does not get detected automatically, I have to un- and replug it to work. Tried with both USB3 aud USB2 ports and both version 2.6.3 and 19.

Any ideas?

I struggled with this for a few weeks and followed some other threads that did not help. It was just a small USB WIFI dongle that was only recognized as a storage device. This worked 100 %. It took me a few minutes to find the “system tools” that added usb_modeswitch, but finally found it in the coreelec repository>program files> system tools.
Thanks for the helpful post!!!

Can you send me a link of the usb adapters you have? I have an x96max that does not connect to the 1000 ethernet network. Only 100 for SSH commands. Thanks

Not sure if it helps, but I use a AX88179 Gigabit Ethernet adapter with my unit without any problems on CE 19.3.
Looks like you can get ones with that chipset at amazon for ~$15. Probably less if you hunt around.

Many thanks. With that it serves me perfectly

Hi!
As i cant make works the Wifi of my X96 Max+,(K255B-SR) Im trying to buy a usb dongle for Wifi. Any recomendation?

Thanks!

I have one of these Adapters “Dlink DWA-182”, and put it into my x96-x4 with CE 20 nexus nightly

# iw list
Wiphy phy1
        wiphy index: 1
        max # scan SSIDs: 9
        max scan IEs length: 2304 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        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-128 (00-0f-ac:4)
                * CMAC (00-0f-ac:6)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x1963
                        RX LDPC
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 1-stream
                        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 Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                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
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (30.0 dBm) (no IR)
                        * 2472 MHz [13] (30.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x1863
                        RX LDPC
                        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 Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                VHT Capabilities (0x03d071b2):
                        Max MPDU length: 11454
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        TX STBC
                        SU Beamformee
                        MU Beamformee
                        +HTC-VHT
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 867 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 867 Mbps
                VHT extended NSS: not supported
                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
                Frequencies:
                        * 5180 MHz [36] (30.0 dBm)
                        * 5200 MHz [40] (30.0 dBm)
                        * 5220 MHz [44] (30.0 dBm)
                        * 5240 MHz [48] (30.0 dBm)
                        * 5260 MHz [52] (30.0 dBm) (radar detection)
                        * 5280 MHz [56] (30.0 dBm) (radar detection)
                        * 5300 MHz [60] (30.0 dBm) (radar detection)
                        * 5320 MHz [64] (30.0 dBm) (radar detection)
                        * 5500 MHz [100] (30.0 dBm) (radar detection)
                        * 5520 MHz [104] (30.0 dBm) (radar detection)
                        * 5540 MHz [108] (30.0 dBm) (radar detection)
                        * 5560 MHz [112] (30.0 dBm) (radar detection)
                        * 5580 MHz [116] (30.0 dBm) (radar detection)
                        * 5600 MHz [120] (30.0 dBm) (radar detection)
                        * 5620 MHz [124] (30.0 dBm) (radar detection)
                        * 5640 MHz [128] (30.0 dBm) (radar detection)
                        * 5660 MHz [132] (30.0 dBm) (radar detection)
                        * 5680 MHz [136] (30.0 dBm) (radar detection)
                        * 5700 MHz [140] (30.0 dBm) (radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
                        * 5885 MHz [177] (disabled)
        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_wiphy_netns
                 * 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 0xb0 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
        WoWLAN support:
                 * wake up on anything (device continues operating normally)
        software interface modes (can always be added):
        interface combinations are not supported
        Device supports SAE with AUTHENTICATE command
        Device supports scan flush.
        Supported extended features:
Wiphy phy0
        wiphy index: 0
        max # scan SSIDs: 9
        max scan IEs length: 2304 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        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-128 (00-0f-ac:4)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
        Band 1:
                Capabilities: 0x1963
                        RX LDPC
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 1-stream
                        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 Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                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
                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)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x1863
                        RX LDPC
                        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 Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                VHT Capabilities (0x03d071b2):
                        Max MPDU length: 11454
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        TX STBC
                        SU Beamformee
                        MU Beamformee
                        +HTC-VHT
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 867 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 867 Mbps
                VHT extended NSS: not supported
                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
                Frequencies:
                        * 5180 MHz [36] (30.0 dBm)
                        * 5200 MHz [40] (30.0 dBm)
                        * 5220 MHz [44] (30.0 dBm)
                        * 5240 MHz [48] (30.0 dBm)
                        * 5260 MHz [52] (30.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (30.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (30.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (30.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (30.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (30.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (30.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (30.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (30.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (30.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (30.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (30.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (30.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (30.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (30.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
                        * 5885 MHz [177] (disabled)
        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
        WoWLAN support:
                 * wake up on anything (device continues operating normally)
        software interface modes (can always be added):
        interface combinations are not supported
        Device supports scan flush.
        Supported extended features:

# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2001:331c D-Link Corp. 802.11ac NIC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

CoreELEC:~ # readlink /sys/class/net/wlan0/device/driver
../../../../../../../bus/sdio/drivers/rtl88x2cs
CoreELEC:~ # readlink /sys/class/net/wlan1/device/driver
../../../../../../../bus/usb/drivers/rtl88x2bu