Looking for users with no working WiFi or BT

No WiFi on M96X (S905X). It’s an RTL8189es that works on 9.2.7

9.2.7

19.2 Nightly_20210712

device H96 Max X3 S905X3 4GB Ram, 1G lan.

WiFi only works for b/g. 5G wifi or ac not working.

module should be bcm4339

http://ix.io/3t7m

I have just received a 4th X96Air but unlike the other 3 this one seems to have a BCM4354 WiFi/BT chip for which there appears to be no driver
The box identifies itself to Android as X96Air_A1000 with Android 9 build 20210531_1609

Is there any chance of getting this Wifi chip to work

Here’s some data from "hwinfo |grep -e BCM -e bcm "

btbcm 16384 1 hci_uart, Live 0xffffff80027b3000
bluetooth 425984 27 hci_uart,btqca,btbcm,btintel, Live 0xffffff80026ad000
Model: “Broadcom BCM4354 WLAN card”
Device: sdio 0x4354 “BCM4354 WLAN card”
Driver: “bcmsdh_sdmmc”
Model: “Broadcom BCM4354 WLAN card”
Device: sdio 0x4354 “BCM4354 WLAN card”
Driver: “bcmsdh_sdmmc”
Model: “Broadcom BCM4354 WLAN card”
Device: sdio 0x4354 “BCM4354 WLAN card”
Driver: “bcmsdh_sdmmc”
Driver: “bcmsdh_sdmmc”

More from “hwinfo --network --wlan”

16: None 00.0: 1070a WLAN
[Created at net.126]
Unique ID: AYEt.QXn1l67RSa1
Parent ID: S5pc.+JPLo_ySGl4
SysFS ID: /class/net/wlan0
SysFS Device Link: /devices/platform/ffe03000.sdio/mmc_host/sdio/sdio:0001/sdio:0001:2
Hardware Class: network interface
Model: “WLAN network interface”
Driver: “bcmsdh_sdmmc”
Device File: wlan0
HW Address: 90:b6:86:28:68:ff
Permanent HW Address: 90:b6:86:28:68:ff
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #8 (Network controller)

I’ll be grateful for any help :sweat_smile:

Following up … it appears the WiFi/BT device is recognised and firmware load(brcm/fw_bcm4354a1_ag.bin) is attempted, but fails. Is it possible the card identifies itself incorrectly or similar problem ? Any suggestions on what action to take ?

Log is available here PasteBin->CoreElec Syslog BCM4354 WiFi/BT Problem

More information.
The Bluetooth section of the chip is now working, but still no WiFi after I copied the Android firmware elements to /storage/.config/firmware/brcm

Any chance of including the brcmfmac driver for Broadcom devices like my BCM4354 ? The Wireless Wiki indicates that this SDIO device needs the brcfmac driver Wireless Wiki BRCM80211

I managed to find the various Android firmware elements by mounting the android emmc partitions using instructions found here Access Android Partitions From CoreElec … though I needed to make a simple update for access to the “vendor” partition where the files are located

As we said already it’s not supported by 4.9 kernel. It should work on next 5.4 kernel someday…

ok, thanks Portisch.
(I didn’t realise your last note was a reply to me)

Hi Portisch,

I actually got my wifi working on my X96 Max Plus T(AM7256) by inserting stock wifi drivers( nvram_ap6354.txt and fw_bcm4354a1_ag.bin) and instructing dhd_config to load the correct nvram files… Bluetooth is still unusable though(Can pair my android phone, but can’t play audio to CE; nor can it pair a bluetooth speaker)

Stock firmware uses Linux Kernel 4.9 too so I guess maybe something outside the kernel is responsible for unusable WiFi and bluetooth?

Dear BCM4354 users @ruz88 @AlexHalogen @redger : please try this devel image:
227.32 MB file on MEGA

It’s based on 19.2 Matrix and you need to be already on CE-19 Matrix before update!

Please make a dmesg | paste log.

EDIT:
Here a new link. It should include the firmware needed:

Hi Portisch:

The log goes:
http://ix.io/3uZ4

WiFi isn’t working on 2.4/5G(Open nvram file failed); BT works for some devices but not others(while they work with stock).

Thank you so much for your time and effort!

Can you create file /storage/.config/modprobe.d/options.conf with the content

options dhd firmware_path=/usr/lib/firmware/brcm/fw_bcm4354a1_ag.bin nvram_path=/usr/lib/firmware/brcm/nvram_ap6354.txt

and reboot.

Nope that didn’t work - fw_path is correctly set but nv_path is still /usr/lib/firmware/brcm/.
However I tried to set the options manually by insmod dhd.ko nvram_path=/usr/lib/firmware/brcm/nvram_ap6354.txt firmware_path=/usr/lib/firmware/brcm/fw_bcm4354a1.bin - and WiFi is up and running(2.4G only).

I also tried inserting 17236 1 nvram_ap6354.txt \ to the nv_by_chip section in /usr/lib/firmware/brcm/config.txt, and WiFi is running(2.4G only). Replacing nvram_ap6354.txt with the file from stock firmware enables 5GHz.

Hope that information helps!

Ok, can you remove the file /storage/.config/modprobe.d/options.conf and use /storage/.config/modprobe.d/dhd.conf ?

Please drop this config.txt in /storage/.config/firmware/brcm/ and reboot and make a dmesg log again, thx

config.txt (507 Bytes)

Also remove /storage/.config/modprobe.d file from previous posts.

You can share your nvram config file?

Please try first the included nvram_ap6354.txt in the devel image. If only 2.4 does work try again with your nvram config file if 5GHz come available, thx

This is the newest i found right now:
https://github.com/rockchip-linux/rk-rootfs-build/blob/master/overlay-firmware/system/etc/firmware/nvram_ap6354.txt

5GHz problem can’t be reproduced - maybe I made a typo when insmoding late at midnight…
Anyway dropping config.txt in /storage/.config/firmware/brcm/ makes the wifi work with your nvram file

dmesg log:
dmesg_after_dropping_config.txt (97.0 KB)

Bluetooth is still not fully working though

1 Like

Hallo!
Habe mir auch eine X96 Box bei A… gekauft mit 4/32GB 1000Lan.
Klappt soweit sehr gut, aber leider kein BT und kein Wlan.
Installiert habe ich 19.2-RC3. Wusste nicht, dass es die Boxen mit verschiedenen Chips gibt. Mist.
Vielleicht einen Tipp, wie ich BT und Wlan ins laufen bekomme?
Vielen Dank & schöne Grüße aus Koblenz
Dirk

Hello!
I also bought an X96 box from A … with 4 / 32GB 1000Lan.
Works so far very well, but unfortunately no BT and no WiFi.
I installed 19.2-RC3. Didn’t know that there are boxes with different chips. Damn.
Maybe a tip on how I can get BT and Wlan running?
Many thanks & best regards from Koblenz
Dirk

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

Die Masse der User versteht kein deutsch, nur Englisch.
Pls write in english, You can use google translator

@sunny-ko @jdy @username1 about the 037a:7603 Wifi modul:

We are not able to find the correct driver for our 4.9 kernel version. All we find do require a kernel 5.2 or newer. So maybe one of you can make a dmesg log of Android as we guess the Wifi is working there. Maybe this shows more information what driver is used. Also any of you can contact the vendor of the device and request the driver source.

Thank you for the support.