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.
GNU General Public License v2.0
5.84k stars 1.88k forks source link

S905X Tbee-box QCA9377 WIFI Working #98

Closed DiogoSilva48 closed 2 years ago

DiogoSilva48 commented 2 years ago

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

DiogoSilva48 commented 2 years ago

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

DiogoSilva48 commented 2 years ago

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.

DiogoSilva48 commented 2 years ago

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.

DiogoSilva48 commented 2 years ago

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.

ophub commented 2 years ago

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.

DiogoSilva48 commented 2 years ago

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.

ophub commented 2 years ago

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.

DiogoSilva48 commented 2 years ago

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

ophub commented 2 years ago

Thank you for sharing