Closed ary-labs closed 3 years ago
https://github.com/ophub/amlogic-s9xxx-openwrt/actions/runs/595812726
I tried to add this driver, you can wait for the completion of the compilation to test, write emmc after the first start, wait 5 minutes for wifi, refresh the network menu and then take a look. Please give feedback about your test results.
Okay, thanks I'll try after the build is complete
Still not detected :( Kernel not supported yet?
cd /root
wget https://loksado.com/files/hg680p/5.3.0/rtl8189fs.ko
mv -f rtl8189fs.ko /lib/modules/*/kernel/drivers/net/wireless/
depmod -a
modprobe rtl8189fs
-ash: depmod: not found
After I checked it turned out that the driver only supports kernel 5.3.0 Are there any releases with kernel 5.30?
The openwrt installed in the STB uses the Armbian kernel, so theoretically the drivers that can be used by Armbian can also be used in openwrt. I found some Armbians suitable for this STB on the Internet. The WIFI drivers in the same path can be copied to openwrt by reference Use the same path as, because there is no such device at hand, you can try:
https://loksado.com/2020/02/download-armbian-linux-untuk-hg680p-dan-b860h-amlogic-s905-p212/
https://loksado.com/2019/08/mengaktifkan-wifi-internal-hg680-p-di-armbian/
https://loksado.com/2020/06/armbian-20-05-6-dengan-driver-wifi-internal-untuk-hg680-p/
https://loksado.com/2020/02/driver-wifi-internal-hg680-p-untuk-armbian-19-11-3/
https://loksado.com/2020/04/mengenal-perbedaan-dan-ciri-hg680-p-hitam-dan-putih/
I have try put *.ko file from armbian it's doesn't work I think because:
I'm try install *.ko file and look at dmesg it's say error about version of kernel & architecture
I'm found driver for aarch64 but only for kernel 5.3.0 And openwet with kernel 5.3.0 not available at https://github.com/ophub/amlogic-s9xxx-openwrt/tree/main/amlogic-s9xxx/amlogic-kernel/kernel
One more my question Is possible use armbian linux kernel to boot openwrt?
If it's not please close this issue
STB originally did not have openwrt, it is not a router, so the official website of openwrt will not support STB.
The openwrt you have seen is to extract the Armbian kernel, and then replace/merge the relevant files of openwrt to make an openwrt suitable for use in the STB.
I provide a script to extract the kernel from other people’s openwrt, or extract the kernel from armbian, you can see what is extracted from it, and make your own kernel: https://github.com/ophub/amlogic-s9xxx-openwrt/tree/main/amlogic-s9xxx/amlogic-kernel/build_kernel
Where make_use_img.sh is to extract the packaged kernel from the existing armbian
or openwrt
firmware.
cp -rf boo/{dtb,config,initrd.img,System.map*,uInitrd,zImage} ${kernel_tmp} #for kernel.tar.xz cp -rf root/lib/modules ${modules_tmp} #for modules.tar.xz
Extract these two parts, you can generate a different kernel packaging material, put it in the kernel/your_kernel
directory, and then use sudo ./make -d -b s905x -k your_kernel
to package
A stable kernel can be used continuously for a long time. For example, 5.3.0 can support your STB. It is recommended that you use it for a long time. Packaging is just to merge the latest openwrt plug-in into the specified version of the kernel package, so the kernel package can be used for a long-term stable without the need to pursue the latest kernel (sometimes the latest version has unknown bugs because it has just been used).
From the official website of openwrt.org, you can see that many router manufacturers around the world have produced thousands of devices that support openwrt, but this does not satisfy innovative people. Many people like to find another way. In STB, in PC, in virtual machine , Use openwrt in different hardware devices or software environments such as docker. In the process of exploration, you always need to spend more energy to try, you find, I find, you optimize a little, I give a little, the road goes wider and wider, and the game becomes more and more interesting. A good life starts with exploration. . .
The wifi driver is rtl8189fs