WiFi and BT on x96 Max+ (mt7661rsn)

Hello!

So I have an X96 Max+ (s905x3) TV-box with that mt7661rsn Wifi+BT chip.

Here’s the related udevadm output:

CoreELEC:~ # udevadm info /sys/bus/sdio/devices/*
P: /devices/platform/ffe03000.sdio/mmc_host/sdio/sdio:0001/sdio:0001:1
L: 0
E: DEVPATH=/devices/platform/ffe03000.sdio/mmc_host/sdio/sdio:0001/sdio:0001:1
E: SDIO_CLASS=00
E: SDIO_ID=037A:7603
E: MODALIAS=sdio:c00v037Ad7603
E: SUBSYSTEM=sdio

P: /devices/platform/ffe03000.sdio/mmc_host/sdio/sdio:0001/sdio:0001:2
L: 0
E: DEVPATH=/devices/platform/ffe03000.sdio/mmc_host/sdio/sdio:0001/sdio:0001:2
E: SDIO_CLASS=00
E: SDIO_ID=037A:7663
E: MODALIAS=sdio:c00v037Ad7663
E: SUBSYSTEM=sdio

Stock Android firmware recognizes the chip as mt7663 and has .bin firmware files for mt7663 and mt7668, so I assume they’re all compatible with each other.
Names of the firmware files I found in Android’s /vendor/firmware:

EEPROM_MT7663.bin
EEPROM_MT7668.bin
fw_usb.bin
mt7663_patch_e2_hdr.bin
mt7668_patch_e1_hdr.bin
mt7668_patch_e2_hdr.bin
TxPwrLimit_MT76x8.dat
wifi.cfg
WIFI_RAM_CODE2_SDIO_MT7668.bin
WIFI_RAM_CODE2_USB_MT7668.bin
WIFI_RAM_CODE_MT7663.bin
WIFI_RAM_CODE_MT7668.bin
woble_setting.bin

Btw, I managed to get bluetooth to work somewhat (NOTE: without using the above-listed files), but it was Manjaro Arm with 5.11.13 linux-vim kernel. Not sure if the dtb I was using can be ported to CoreELEC’s kernels, but I’m attaching it anyway as it might help you to help me lol. And yes, it’s a bit messy.
manjaro-dtb.img (46.2 KB)

I also found this on github, and it seems to be some stolen proprietary firmware from mediatek, but since the repo contains no documentation at all, I have no idea what to do with it.

There’s also an OpenWrt package kmod-mt7663-firmware-ap that might be useful, and maybe I’m stupid or blind or whatever, but I failed to find its sources.

So, how do I get that chip working with CoreELEC? Or, even better, with recent 5.x.x kernels?

If you need more info on system/dtb/whatever — just ask for it.

Thanks.

A post was merged into an existing topic: Looking for users with no working WiFi or BT