Looking for users with no working WiFi or BT

Hi, im using a wifi-usb stick from ALFA (AWUS036ACM)
Which is IMO one of the best wifi-usb sticks on the market.

It has an mt7612u chip inside
https://docs.alfa.com.tw/Support/Linux/MT7612U/
and is supported by the mainline kernel since version 4.19.
Can the firmware be added to the coreelec builds by the coreelec team?

Also, can i add it myself? I tried this: Add Firmware - LibreELEC.wiki
but it does not seem to work for coreelec.

EDIT:
So the .bin-firmware files are present in /usr/lib/firmware/mediatek after a reboot. Unfortunately there are no wifi connections visible. Also i don’t know how to ssd into my odroid n2 device with a direct wired connection (the static ip setup stuff).

Two requirements are to be met in this scenario:

  1. the hardware driver needs to be compiled into the kernel
  2. the firmware needs to reside in /storage/.config/firmware.

A reboot is required for the overlay to work.

1 Like

Thanks, i am willing to compile the driver into a custom kernel, i don’t know about two things though:

  1. How do you guys decide which drivers to include into the kernel used by CoreELEC?
  2. Does this driver meet the requirements (i mean, it’s been mainlained, this is a best case scenario i guess)?
  3. I’m a little in over my head here. Does someone know of a good tutorial for adding a driver to a self-build custom kernel or is there a place (IRC, Matrix) where someone can do a little hand-holding?

I think i need the folder “mt76”, and to be more specific, the “mt76x2” subfolder; and this Makefile linux/Makefile at master · torvalds/linux · GitHub. I also found these instructions :coreelec:build_ce [CoreELEC Wiki].

First of you need to find a driver sources for linux 4.9 and then build a driver like this one (and all other there).

Looks like this device is not so great if no one is using it and you are the first one…

Um… I’m still wondering why the driver is not pretty much plug and play. In the config files there is already a flag for the driver, but not for Amlogic-ce → Amlogic-ng (which Odroid N2 is using)…

projects/Allwinner/linux/linux.aarch64.conf:2150:CONFIG_MT76x2U=m
projects/Allwinner/linux/linux.arm.conf:1963:CONFIG_MT76x2U=m
projects/Amlogic/linux/linux.aarch64.conf:2322:CONFIG_MT76x2U=m
projects/Generic/linux/linux.x86_64.conf:2421:CONFIG_MT76x2U=m
projects/NXP/devices/iMX8/linux/linux.aarch64.conf:2049:CONFIG_MT76x2U=m
projects/RPi/devices/RPi/linux/linux.arm.conf:1645:CONFIG_MT76x2U=m
projects/RPi/devices/RPi2/linux/linux.arm.conf:1776:CONFIG_MT76x2U=m
projects/RPi/devices/RPi4/linux/linux.aarch64.conf:2241:CONFIG_MT76x2U=m
projects/Rockchip/devices/RK3328/linux/default/linux.aarch64.conf:1986:CONFIG_MT76x2U=m
projects/Rockchip/devices/RK3288/linux/default/linux.arm.conf:1787:CONFIG_MT76x2U=m
projects/Rockchip/devices/RK3399/linux/default/linux.aarch64.conf:2358:CONFIG_MT76x2U=m
projects/Samsung/linux/linux.arm.conf:1593:CONFIG_MT76x2U=m

Anyways, i don’t know if this is the right platform to discuss in such detail.

Amlogic kernel 4.9 doesn’t support this driver directly and must be external package for it.

1 Like

Yeah I’m seeing that the mt76 driver is available in the stable kernels 4.16–4.20, 5.0–5.19, 6.0-rc+HEAD. I would like to try backporting the 4.20 mt76 driver into the 4.9 amlogic kernel. I have seen a similar attempt in a github repository (that person used version mt76 driver version 4.19 and backported it into the mainline kernel version 4.9).

Questions:

  1. Do you think mt76 driver from mainline kernel version 4.20 is a good choice, or should i choose a newer version?
  2. Are you interested in the results, if i manage to get it working?

This new driver that you say is now included in the nightly 19.5 builds, is it going to work for the Tanix X4 by any chance? Don’t know if the X88 King uses the same WiFi and BT devices ?? Would love to get my Tanix X4 fully working if only to be able to sell it with CE SD card and to put the money towards a new Beelink GT King Mk ll. The 100Mbps LAN sadly makes this box a no go for me but no problem for many folk.

So is there any good news as to WIFi and BT drivers for the Tanix X4 box yet?

I have two ugoos x2 cube(905x2) and tox1(905x3) tv boxes with coreelec 19.5rc2. The first TV box has one external WiFi antenna and works in the 1t 1r configuration, in 5ghz mode, iperf shows about 100mbits., the second box works in the same conditions, but in the 2t 2r mimo configuration and has two WiFi antennas, one external and one built-in, iperf shows a speed slightly below 50-100mbits. For comparison, my oneplus phone also has several built-in antennas, and iperf shows about 200mbits also in the same conditions. What’s wrong with the TOX1 TV box, why does t2 r2 mimo work slower than ugoos x2cube with t1 r1? My router is MiRouter 4A Gigabit with openwrt firmware. Wifi signal strength in coreelec on both boxes, about 90%.

To begin with, I wanted to see what kind of wifi modules are installed in the boxes and in what modes they work. I checked lshw
and there is no information about module models, I also checked iw wlan0 info and iw list, and there is also little useful information.

Hey guys,

i bought a Odroid N2+ and installed CoreELEC 19.5-Matrix on eMMC, everything works fine so far
i got internet through ethernet cable but i cant get my wifi dongle to work

its an EDIMAX N300 Wi-Fi 4 Mini USB Adapter / EW-7722UTn V3
i think the realtek driver is “RTL8812AU”, thats what i found out after opening some files from the linux driver on their webpage

the log says the dongle is unsupported

Sep 28 13:57:13.335111 CoreELEC kernel: usb 1-1.4: new high-speed USB device number 6 using xhci-hcd
Sep 28 13:57:13.459112 CoreELEC kernel: usb 1-1.4: New USB device found, idVendor=7392, idProduct=b722
Sep 28 13:57:13.459698 CoreELEC kernel: usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 28 13:57:13.460097 CoreELEC kernel: usb 1-1.4: Product: 802.11n  WLAN Adapter
Sep 28 13:57:13.460478 CoreELEC kernel: usb 1-1.4: Manufacturer: Realtek
Sep 28 13:57:13.460854 CoreELEC kernel: usb 1-1.4: SerialNumber: 00e04c000001
Sep 28 13:57:13.483115 CoreELEC kernel: usb 1-1.4: Unsupported device

and here some more infos i got through SSH

Bus 001 Device 006: ID 7392:b722 Edimax Technology Co., Ltd 802.11n  WLAN Adapte                                                                                                                                                             r
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x7392 Edimax Technology Co., Ltd
  idProduct          0xb722
  bcdDevice            2.00
  iManufacturer           1 Realtek
  iProduct                2 802.11n  WLAN Adapter
  iSerial                 3 00e04c000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x004a
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           8
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 802.11n  WLAN Adapter
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0c  EP 12 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0d  EP 13 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

is there a way to install the linux driver in coreELEC or do you guys know a way to get that dongle working?

or should i buy a new one? i already googled for about 2 hours with no solution

thx in advance for any hints

read first post

No WiFi and BT for: X96Max_Plus (S905X3) 4/64 rev 2101W, LAN module JL2101 1000M (working ok), wifi 2 antenas, modul W522A (Fn-Link K255B-SR)

udevadm : http://ix.io/4epD
lsusb : http://ix.io/22jm
dmesg : http://ix.io/4epE

system : CE 19.5-Matrix_nightly_20221027 (Amlogic-ng.arm)
dev tree used : sm1_s905x3_4g_1gbit.dtb

thanks guys

Unfortunately … a friend purchased X96_x4_Pro (S905X4) 64/4/1000 from an auction where another one had previously purchased a working model with CE, this time he got the wrong model … and I warned :slight_smile:
udevadm : http://ix.io/4f34
lsusb : http://ix.io/4f39
dmesg : http://ix.io/4f3a
fw_printenv : http://ix.io/4f3g
uuppsss eeeehhh :slight_smile:
for configuration etc. I connected some wifi dongle to the usb port
I see this BOX with CE in black
ps. CE is on the SD card with the system: CoreELEC-Amlogic-ng.arm-19.5-Matrix_nightly_20221103-Generic and additional wifi via usb to connect to the internet network / now wifi is probably:
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

You are able to make tests and logs?
We got the driver working with 5.4 but it needs to be tested with 4.9 kernel.

@kris007 here is a test image. Just update with it and check if wlan is working.
Please also make a log with dmesg | paste:

I installed the Matrix version with sc2_s905x4_4g_1gbit.dtb … strange but you can log in via ssh and ip address: 192.168.1.34
however, the network does not work properly even though it shows:

ethtool eth0 | grep -i speed
Speed: 1000Mb / s
CoreELEC:~ # ping www.google.com
PING www.google.com (172.217.16.36): 56 data bytes
64 bytes from 172.217.16.36: seq=0 ttl=57 time=22.320 ms
64 bytes from 172.217.16.36: seq=1 ttl=57 time=17.471 ms
64 bytes from 172.217.16.36: seq=2 ttl=57 time=15.539 ms
64 bytes from 172.217.16.36: seq=3 ttl=57 time=16.155 ms
64 bytes from 172.217.16.36: seq=4 ttl=57 time=17.140 ms
64 bytes from 172.217.16.36: seq=5 ttl=57 time=15.783 ms
64 bytes from 172.217.16.36: seq=6 ttl=57 time=21.505 ms
^C
--- www.google.com ping statistics ---
8 packets transmitted, 7 packets received, 12% packet loss
round-trip min/avg/max = 15.539/17.987/22.320 ms

you can log in using samba … but you cannot login to the CE repository and install add-ons e.g. openvfd / network tools etc. Therefore you can’t copy files either:
CoreELEC-Amlogic-ng.arm-19.5-Matrix_devel_20221106074226 / target to the backup folder.
http://ix.io/4f3g
dmesg http://ix.io/4f5J
lsusb http://ix.io/4f5K
udevdam http://ix.io/4f5N
but I will upload the image via an additional wifi adapter :slight_smile:

You need to update with the image I uploaded.

You got the jackpot with eth JL2XX1 and W1-AML WiFi :rofl:

OK, the update was successful, but unfortunately the wired network is not working properly
CoreELEC (community): 19.5-Matrix_devel_20221106074226 (Amlogic-ng.arm)

iperf3 -c 192.168.1.23
Connecting to host 192.168.1.23, port 5201
[  5] local 192.168.1.34 port 33132 connected to 192.168.1.23 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   107 KBytes   879 Kbits/sec   12   8.48 KBytes       
[  5]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec   11   2.83 KBytes       
[  5]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec    3   1.41 KBytes       
[  5]   3.00-4.00   sec  79.2 KBytes   649 Kbits/sec    9   2.83 KBytes       
[  5]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    8   1.41 KBytes       
[  5]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    1   1.41 KBytes       
[  5]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    1   1.41 KBytes       
[  5]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    1   1.41 KBytes       
[  5]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes       
[  5]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   187 KBytes   153 Kbits/sec   46             sender
[  5]   0.00-10.04  sec  86.3 KBytes  70.4 Kbits/sec                  receiver

iperf Done.

dmesg (98.6 KB)
after removing the additional wifi for usb … unfortunately the CE system seems to be crashing (you can’t quite go to the CE settings … info is not ready) :slight_smile:
dmesg (no additional wifi usb dongle)
dmesg-2 (95.7 KB)
ifconfig http://ix.io/4f6a
wifi 2.4 not working
wifi 5 ghz works but slow

iperf3 -c 192.168.1.23
Connecting to host 192.168.1.23, port 5201
[  5] local 192.168.1.12 port 45640 connected to 192.168.1.23 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.5 MBytes  96.8 Mbits/sec    0    320 KBytes       
[  5]   1.00-2.00   sec  11.8 MBytes  99.2 Mbits/sec    0    320 KBytes       
[  5]   2.00-3.00   sec  11.9 MBytes  99.6 Mbits/sec    0    339 KBytes       
[  5]   3.00-4.00   sec  11.9 MBytes   100 Mbits/sec    0    339 KBytes       
[  5]   4.00-5.00   sec  11.5 MBytes  96.8 Mbits/sec    0    339 KBytes       
[  5]   5.00-6.00   sec  11.6 MBytes  97.7 Mbits/sec    0    362 KBytes       
[  5]   6.00-7.00   sec  11.8 MBytes  99.1 Mbits/sec    0    362 KBytes       
[  5]   7.00-8.00   sec  11.7 MBytes  97.9 Mbits/sec    0    362 KBytes       
[  5]   8.00-9.00   sec  11.9 MBytes  99.9 Mbits/sec    0    362 KBytes       
[  5]   9.00-10.00  sec  11.8 MBytes  99.4 Mbits/sec    0    362 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   118 MBytes  98.6 Mbits/sec    0             sender
[  5]   0.00-10.06  sec   117 MBytes  97.7 Mbits/sec                  receiver

iperf Done.

Only way is to but your device online with your USB WiFi adapter and share a remote SSH connection to us.
I see no other way as it will need more debugging.

OK …OK ! … but I’m not good at configuring the network so I don’t know if I can help :slight_smile:
what data to the BOX to share?
Now the CE is on the 5ghz network, it works poorly, probably like 2.4ghz, but stable on the lan address 192.168.1.12 after samba, the speed reaches about 8Mb / s
BOX connects to the internet via the netgear r7000 (fw tomato) router