ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S905X Tbee-box QCA9377 WIFI Working

DiogoSilva48 opened this issue · comments

Hi, I have a S905X box with a QCA9377 Wireless Chip, the WIFI is not working on this box with this Armbian build, but it does work on the LibreElec Test Build, I know this box is some kind of rebranding but I don't know which, I have pictures of the board if you need. The QCA9377 should use ath10k driver and I have some error on dmesg (picture attached).
image

I think I tried an older version by mistake, I tried again with the 5.10 kernel and I have a different error, firmware, but I think I can fix it, I remember having this on other armbian builds a few years ago. Going to try and report.
image

Ok, I tried this fix, to add the right firmware and worked well, I hope this helps other users.

Basically:
cd /tmp; git clone -b bd-sdmac https://github.com/erstrom/ath10k-firmware.git

mkdir /lib/firmware/ath10k; cp -rf ath10k-firmware/QCA9887/ /lib/firmware/ath10k

cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin

cp /lib/firmware/ath10k/QCA9377/hw1.0/untested/firmware-sdio-5.bin_WLAN.TF.1.1.1-00061-QCATFSWPZ-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-sdio-5.bin

image
image

Also, I tried on Kernel 5.10 now, I can try on 5.4 after, if needed.

Don't know if I should close this or not, because I fixed it but I don't know if you want to include the firmware by default or not. Also, sorry for the spam.

I still have to wait 5 minutes for "a start job is running for the raise network", before I can use Armbian or ssh into it, I tried a fix I found online, didn't work, any idea ? Thanks.

commented

thank you for your sharing. When it is convenient, you can test the long-term updated kernels of 5.4/5.10/5.15.

If common, it can be added to the default firmware.

Hi, thanks for answering. I found a much easier way to fix wifi. First, you do the usual "sudo apt update" and "sudo apt upgrade" and then "sudo armbian-config" and navigate to the option software and there's an option that says "install full firmware package". After that, installs the required firmware to make wifi work, so might not be necessary to include by default : ). I'm going to try to switch kernels as well to see and update this.

commented

OK, thanks for testing and sharing. Which .dtb and u-boot file did your box use? Does it support writing to emmc? The default values are recorded in /etc/ophub-release, if you customize them, update them.

You are the first friend who reported using this box, so you can find an online product introduction link and post it at your convenience. I add to the box list. thanks.

I used the default .dtb and u-boot that and just worked fine. I can't use writting to emmc as of now because I think I broke my emmc, I bricked it many times before but I was always was able to fix it even after months, but this time I just can't get it to flash anything, I get errors flashing the u-boot I think and I don't have the stock firmware. Also, armbian even detect the emmc. The box is this one, and this is what the board looks like.
image

commented

Thank you for sharing