Wifi on x96 max plus

Hi

I’m running a khadas vim3 image on my x96 max+ with mt7661rsn WiFi chip (figured it out after opening the back cover). Obviously, wifi doesn’t work and that’s why I’m here.
For some reason, Android identifies the chip as mt7663 (which should be supported by the mt76 driver since 5.8, according to the linux wireless wiki https://wireless.wiki.kernel.org/en/users/drivers/mediatek?s[]=mediatek). Perhaps it’s possible to instruct mt76 to work with that mt7661 chip just like if it was mt7663?

Also, I found some *.bin and *.dat files in android’s /vendor/firmware/, like WIFI_RAM_CODE_MT7663.bin and so on, but I have no idea what to do with them.
I tried just copying android firmware to /usr/lib/firmware and at the same time copy-pasting wifi-related dts pieces from android dts, but that of course didn’t work.

dmesg shows nothing mt76*-relevant.
Doing modprobe -a mt76 doesn’t print anything to dmesg.

Maybe worth mentioning, I installed the system according to this https://forum.manjaro.org/t/how-to-install-run-manjaro-arm-on-amlogic-tv-boxes-with-s922x-s905x3-soc/40777 guide, with the only difference being that right now I’m using a minimal image, not a kde-plasma one. Anyway, that doesn’t matter as the problem exists regardless of dts/image/whatever.

So, any idea how to bring the wifi up?
I’m not a Stallman fanatic, so proprietary firmware extracted from android will do, as long as everything works.

Sorry for broken links — limitations for new accounts, you know.

I’ll post more logs if necessary.

Thank you.

2 posts were merged into an existing topic: Manjaro arm on Amlogic Tv box?