Manjaro arm on Amlogic Tv box?

This is the error, I think (I seem to recall that -2 means “file not found” here). Make a copy of your brcmfmac4356-sdio.bin file and call it brcmfmac4356-sdio.azw,gtking.txt (I think this was the procedure; the method is in the thread above. Perhaps it was that nvram_something file that was supposed to be copied to the .txt name, I don’t recall, but it is in the thread above).

I get similar with my pi4 but my wifi works. I believe it is just checking to see if the file exists and goes another way.

[ray@pi4 ~]$ dmesg | grep "brcmfmac"
[    4.457345] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.472123] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.473392] usbcore: registered new interface driver brcmfmac
[    4.485847] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    4.698052] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.708501] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea

Hi Darksky,

“Put your new firmware in the /usr/lib/firmware/ directory”, This I think I know how to do. But chasing down what script is loading the firmware might be beyond me for the time being. A greenhorn in linux.

Put the file in /usr/lib/firmware and reboot first and see if you have wifi. Otherwise most likely some file somewhere is telling it to look specifically in /usr/lib/firmware/brcm.

This is cause your manually copied it from armbian source.
Yes delete it as Kvim2-firmware already provides this as it depends on linux-firmware package. [quote=“JFL, post:118, topic:34662”]
whether video acceleration is available in linux kernel 5.9.6.-1 for GT King Pro.
[/quote]
Kernel have vpu support but distro needs to rebuild all the video processing stack with amlogics vpu lib like v4l2_m2m for ffmpeg, libva and then the applications like mpv and kodi or vlc.

Which is alot of work so were waiting for it to get upstreamed soon. [quote=“Darksky, post:127, topic:34662”]
Put the file in /usr/lib/firmware and reboot first and see if you have wifi.
[/quote]

No need to manually change anything. The firmware is packaged for every device so if he just install the above mentioned package then it will get the needed wifi firnware for the device.

@JFL don’t forget to tag me for amlogic device support else I will reply late :joy:

Is there any proof that this will help us with vpu support?

Can you do some test with and without these files?

If they’re helpful then we can package it but I doubt it will work as those are old blobs from amlogic.

So let me know.
I think you should do a new create which this tutorial, I like the way to explained everything I’m detail.
We can make a tutorial thread for Amlogic TV boxes as my aim was to get some good amlogic boxes support on Manjaro so users can run Desktop pc when ever they need on their TV boxes.

I have dropped an email to ugoos for sample. If you have any contact with them they let me know.

Thanks.

No, I have no proof (I was just speculating). These files are present in the Khadas image for VIM3 (that one can build with their fenix tool) and there are two options for kernel (legacy and stable, I think they are called).Even if one selects the newer kernel (which is 5.9.0-rc2) for the image build these firmware files are included, but it may very well be the case that they are obsolete (or only works with the older kernel), I don’t know.

In the coming days I will test and add/remove them (also to Manjaro) and see if it makes any difference.

Unfortunately, I have no contact with Ugoos (I’m just a happy customer).

Edit: I have updated Manjaro to kernel 5.9.0-2 with, possibly, a slight improvement in stability, but still freezes during video playback (unresponsive, requires reboot).

For the time being, as brcmfmac4356-sdio.bin works, I will leave it as that for now and try brcmfmac4356-sdio.azw,gtking.txt the next time the issue pops up.

Hi Darksky,

“Put your new firmware in the /usr/lib/firmware/ directory so it can get picked up first then reboot and see if you have wifi.” Put “brcmfmac4356-sdio.bin” in /usr/lib/firmware does not start up the wifi. It need to be in /usr/lib/firmware/brcm/ for wifi to work.

@spikerguy said above “Kvim2-firmware already provides this as it depends on linux-firmware package” Did you install the Kvim2-firmware package? If not install it and reinstall the linux-firmware package package.

Hi Spikerguy,

The Manjaro-ARM-xfce-vim3-20.11.img_xz that I use from Tripole, per my understanding does not have “Kvim2-firmware” in it (no “brcmfmac4356-sdio.bin”) . That is the reason wifi is not recognised and I have to manually find a copy of “brcmfmac4356-sdio.bin” and copy it to /usr/lib/firmware/brcm/ for wifi to start up. Fyi, NetworkManager was also not preset to start up from the initial boot up. So the first boot up have no Ethernet, no wifi and no Sound. But all can be resolved.

With the new linux kernel 5.9.6-1, as per your earlier message, there is no Sound. The CLI “chmod a+x /usr/bin/g12_sound.sh” and “/usr/bin/sound.sh” both does not restore Sound on GT King Pro.

CLI “chmod a+x /usr/bin/g12_sound.sh” did the trick to get sound in linux-vim kernel 5.9.0-1.

Did you at least try to install it? It looks like a manjaro image which should have manjaro’s repo.

sudo pacman -Syyu Kvim2-firmware linux-firmware

Fyi, Manjaro-ARM-xfce-vim3-20.11.img_xz that I use from Tripole does not have Kvim2-firmware install I suppose as “brcmfmac4356-sdio.bin” is not available.

The linux kernel 5.9.6-1 package did include “brcmfmac4356-sdio.bin” just that for whatever reason does not work so I resort to replace it with one that I know works.

For the record, Wifi works on my GT King Pro now.

Sorry, I think I might conveyed the wrong message. The original Manjaro-ARM-xfce-vim3-20.11.img_xz that I use might not have Kvim2-firmware install I think as “brcmfmac4356-sdio.bin” is nowhere to be found.

Does “sudo pacman -Syyu Kvim2-firmware linuxfirmware” convert linux kernel 5.9.6-1 to linux-vim kernel 5.9.6-1? The reason I wanted to try linux kernel as mentioned by TheMojoMan it seems to be more stable with Panfrost than linux-vim kernel. I just wanted to try out Panfrost.

No. Installing those packages has nothing to do with the kernel. Those packages has to do with installing firmware only.

Do this to install the firmware and reboot and see if you have wifi. You will need to rename the firmware you put in /usr/lib/firmware/brcm first.

sudo pacman -Syyu Kvim2-firmware linux-firmware

Noted. Will try this much later and revert.

One thing that seems easy to do in Manjaro is testing out new kernel. Not sure whether other linux distros like Ubuntu/Debian is this easy.

Out now and responding via ipad.

Edit: In the case for GT KING PRO, each update is a touch of fate, never know whether kernel panic will strike. If kernel panic strike during writing to the disk the USB disk can be corrupted in worst case require to re-burn image. But so far with linux-vim kernel 5.9.0-1 and 5.9.0-2, it was stable enough to perform updates successfully but with large updates I split the updates using Package Manager into two or three times to avoid kernel panic.

Will test out linux kernel 5.9.6-1.

“Just pushed 5.9.8 to unstable and tried mesa-git-21.0 on it, panfrost is much smooth and no font or color issue but it still seem to get stuck after few mins which means we need 5.10 to get stable panfrost”

On linux kernel 5.9.6-1. Checking whether is stable with Panfrost. Mesa 20.2.1 is already pre-installed does it mean Panfrost should be running?

Hi Darksky,

Just performed “sudo pacman -Syyu Kvim2-firmware linux-firmware”. Error message “target not found: Kvim2-firmware”

[jfl@GTKPro ~]$ sudo pacman -Syyu Kvim2-firmware linux-firmware
[sudo] password for jfl:
:: Synchronizing package databases…
core 225.1 KiB 341 KiB/s 00:01 [######################] 100%
extra 2.4 MiB 811 KiB/s 00:03 [######################] 100%
community 5.5 MiB 496 KiB/s 00:11 [######################] 100%
error: target not found: Kvim2-firmware
warning: linux-firmware-20201023.dae4b4c-1 is up to date – reinstalling
[jfl@GTKPro ~]$

Should be a small k. Not capital K.

In order to get a clearer history for my ongoing testing I have now built a new image (with manjaro-arm-tools) to use for testing on my Ugoos (s922x-j). The files can be found here
image, pkg-list and build-log.

With the new image I had to follow my previous instructions earlier in the thread to get everything working, but now also with two additions: In the latest image two important system services are not enabled by default (sound and Network Manager). These can be enabled with;
sudo systemctl enable NetworkManager.service --now
sudo systemctl enable sound.service --now
(possibly a reboot is needed for the sound to work, I don’t remember). (One might also want to do the same for the sshd.service since it is not running by default.)