Manjaro arm on Amlogic Tv box?

I just updated to the Manjaro ARM 2020-11-08 release and now I have a green screen (on my Ugoos). :slightly_frowning_face:

The package list suggested for install seemed harmless (in particular, no kernel upgrade). However, it seems that some install script has rebuilt my initrd. (This is the only reason I can see right now for the green screen.)

Edit: It seems that there is a simple workaround: Just go to display settings (I use the xfce thingy) and change resolution back and forth and the display/screen becomes normal again.

1 Like

Hi Tripole,

I have a slightly situation on green screen issue I think a week ago. For whatever reason the green screen suddenly come up during boot up (where the last boot before it boot up normally), reboot still the same issue green screen. The I tried booting up Android and then shutdown Android and reboot Manjaro and it boot up normal.

linux-vim kernel 5.9.0-2 is available, just manage to upgrade the linux-wim kernel 5.9.0-2.

[Edit] Looking forward to kernel 5.9.6 to try out Panfrost on GT King Pro.

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
Tested on GT King pro
Added
3 dtb to 5.9.8 balbes branch kernel as a patch.
Gt king Pro
GS King X
Vim3l

Does sound work now?

Yes sound have always worked on balbes kernel which is linux-vim
Also depends which board you’re asking about.

Great!
I think I will switch back from linux to linux-vim then and try out how Panfrost performs on my X96Max+ with the new kernel.

Not so stable yet.
It works well but causes the system to freeze frequently.

You are right:
I have tried linux-vim again (now with kernel 5.9.8) and when using Panfrost it has the same instability I had with linux-vim 5.9.0-1 kernel (as you wrote above).

Therefore …

… I don’t think so.

As I wrote before: After I changed to the linux package the crashes were gone (to be precise: it is not crash free but almost). Even with kernel 5.9.1-3. So there are 5.9 kernels which work stable with Panfrost.

In my opinion it might help to have a closer look at what the differences between the linux kernel and the linux-vim kernel are.

In that way it might be possible to find out why system is unstable with linux-vim kernel and stable with linux kernel when using Panfrost. On the other hand, it might be possible to find the reason why linux-vim kernel does recognize sound cards while linux kernel does not.

if does freeze when we try to do a little heavier graphical task but I am talking about G52 gpu and you have G31 and both have difference in code so maybe.

Yes there are some extra patches

Yes I need to find this and will do this in coming days

I have been trying to find this since long time and it is very hard to find even after doing a whole diff of the two branches.

I have also asked for help from Chewitt from libreelec he tried to help but looks like even he is out of options as why sound on upstream kernel doesn’t work for us.

Thanks for the follow-up.

I just notice in the stable branch now, Linux kernel 5.9.6-1 is available (per the Manjaro Package Manager). I just upgrade from linux-vim kernel 5.9.0-1 to kernel 5.9.0-2. I wonder whether there is any benefit to install linux kernel 5.9.6-1 over linux-vim 5.9.0-2 especially for Beelink GT King Pro as linux-vim kernel 5.9.8 is at Unstable Branch.

Strit reports that mesa 21.0.0 is working well on his Odroid N2 which has Mali G52.

Did you find differences in the source code regarding the power controller?

I am asking because I found out something which might only be related to my TV box but maybe it is also related to the system hanging after a short while when using panfrost with linux-vim kernel. (I mean: the box does not crash and reboots or turns off but rather it still displays an image and is completely unresponsive/frozen.)

I try to keep it short: After changing from linux-vim to linux my box did not boot with ‘meson-sm1-sei610.dtb’ anymore. Fortunately, it did with ‘meson-g12a-sei510.dtb’. So I had a closer look at the differences in the respective .dts files and after quite some testing I found out that I have to change the following in ‘meson-sm1-sei610.dts’ to make my box boot again:

  1. power-controller {
    compatible = “amlogic,meson-sm1-pwrc”;
    -> CHANGE TO: compatible = “amlogic,meson-g12a-pwrc”;

    }
  2. bus@60000 { -> CHANGE TO: bus@42000

    reg = <0x00 0x60000 0x00 0x1000>;
    -> CHANGE TO: reg = <0x00 0x42000 0x00 0x2000>;

    ranges = <0x00 0x00 0x00 0x60000 0x00 0x1000>;
    -> CHANGE TO: ranges = <0x00 0x00 0x00 0x42000 0x00 0x2000>;

    }

[I also had to add some stuff to make ethernet work again, had to delete ‘power-domains’ in ‘usb@ffe09000’ for usb to work correctly and had to delete ‘pinctrl-0’ in ‘audio-controller@61000’ because there were interactions with ‘ethernet’.]

As said: Maybe only a problem with my box … but maybe more. I am just trying to help (with the very limited knowledge I have).

1 Like

Tried to install linux kernel 5.9.6-1 had the following error:

jfl@GTKPro ~]$ sudo pacman -S linux
[sudo] password for jfl:
resolving dependencies…
looking for conflicting packages…
:: linux and linux-vim are in conflict (kernel26). Remove linux-vim? [y/N] y

Packages (3) linux-firmware-20201023.dae4b4c-1 linux-vim-5.9.0-2 [removal]
linux-5.9.6-1

Total Download Size: 188.26 MiB
Total Installed Size: 712.48 MiB
Net Upgrade Size: 636.84 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
linux-firmware-2… 128.6 MiB 683 KiB/s 03:13 [######################] 100%
linux-5.9.6-1-aa… 59.6 MiB 629 KiB/s 01:37 [######################] 100%(2/2) checking keys in keyring [######################] 100%(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
linux-firmware: /usr/lib/firmware/brcm/brcmfmac4356-sdio.bin exists in filesystem
Errors occurred, no packages were upgraded.
[jfl@GTKPro ~]$

Do I have to delete “/usr/lib/firmware/brcm/brcmfmac4356-sdio.bin” first? If I delete it I might not have wifi to start with?

Hi JFL,
Just rename the old version of the file to e.g. brcmfmac4356-sdio.bin.myversion and let the installer proceed and install the new version. Most likely the new version will work just fine and you will have WiFi (unless something else has been screwed up; dmesg will be your friend).

Hi Tripole,

Did just that and installed linux kernel 5.9.6-1 successfully. Have not reboot yet. uname -a still return “inux GTKPro 5.9.0-2-MANJARO-ARM #1 SMP PREEMPT Sat Nov 14”

Will reboot and find out what works and what does not soon.

[jfl@GTKPro ~]$ sudo pacman -S linux
[sudo] password for jfl:
resolving dependencies…
looking for conflicting packages…
:: linux and linux-vim are in conflict (kernel26). Remove linux-vim? [y/N] y

Packages (3) linux-firmware-20201023.dae4b4c-1 linux-vim-5.9.0-2 [removal]
linux-5.9.6-1

Total Installed Size: 712.48 MiB
Net Upgrade Size: 636.84 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(3/3) checking available disk space [######################] 100%
:: Processing package changes…
(1/1) removing linux-vim [######################] 100%
(1/2) installing linux-firmware [######################] 100%
(2/2) installing linux [######################] 100%
Optional dependencies for linux
crda: to set the correct wireless channels of your country
:: Running post-transaction hooks…
(1/6) Creating temporary files…
(2/6) Arming ConditionNeedsUpdate…
(3/6) Updating module dependencies…
(4/6) Updating linux module dependencies…
(5/6) Updating linux initcpios…
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘default’
-> -k 5.9.6-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.6-1-MANJARO-ARM
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
(6/6) Updating uInitrd…
Image Name: uInitrd Image
Created: Mon Nov 16 19:04:02 2020
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 8447682 Bytes = 8249.69 KiB = 8.06 MiB
Load Address: 00000000
Entry Point: 00000000
[jfl@GTKPro ~]$

Evidently this was put there manually in some manjaro-arm install script (since it did not specify what package owned it) because it did not exist yet in that location and the linux-firmware package has now added it to their package.

I am not involved with GTKPro but I believe @spikerguy is and it probably needs to be chased down on how that firmware got placed there since linux-firmware is now putting it there.

TV Box: Beelink GT King Pro

Just an update after installing linux kernel 5.9.6-1 over linux-vim kernel 5.9.0-2.

  1. Ethernet works after reboot with linux kernel 5.9.6-1

  2. Wifi does not work after reboot eventhough the wifi driver “brcmfmac4356-sdio.bin” is available in /usr/lib/firmware/brcm/. Did a comparison with the “brcmfmac4356-sdio.bin” (copied from Armbian) driver that works on Manjaro linux-vim kernel 5.9.0-1 and 5.9.0-2 with the copy of "“brcmfmac4356-sdio.bin” from linux kernel 5.9.6-1. The file size is different!

So I used the “brcmfmac4356-sdio.bin” from Armbian that had work before and it work with linux kernel 5.9.6-1. This is surprising, the “brcmfmac4356-sdio.bin” that came with linux kernel 5.9.6-1 does not work.

  1. No Sound.
    [jfl@GTKPro ~]$ sudo chmod a+x /usr/bin/g12_sound.sh
    [sudo] password for jfl:
    [jfl@GTKPro ~]$ systemctl enable sound --now
    [jfl@GTKPro ~]$
    CLI: chmod a+x /usr/bin/g12_sound.sh does not enable sound.

  2. Tried also /usr/bin/sound.sh from Armbian
    jfl@GTKPro ~]$ /usr/bin/sound.sh
    aplay: device_list:274: no soundcards found…

Other than that, linux kernel 5.9.6-1 work so far on GT King Pro just NO Sound.

Hi Darksky,

Fyi, brcmfmac4356-sdio.bin does not exist on the Manjaro VIM3 image, I copied it from an Armbian build to get wifi to work in Manjaro VIM3.

The brcmfmac4356-sdio.bin driver from linux kernel 5.9.6-1 package does not work with Beelink GT King Pro. I have to re-use the brcmfmac4356-sdio.bin from Armbian build to get wifi to work do know why. I am using meson-g12b-gtking-pro.dtb from linux kernel 5.9.6-1 package.

How do I test whether Panfrost working or whether video acceleration is available in linux kernel 5.9.6.-1 for GT King Pro.

Hi JFL,
I think you can get WiFi working with the .bin file that was just installed from Manjaro. Look what you get with “dmesg | grep brcm” and see if it is is not missing some other firmware file (which may already exist, but under another name than what the kernel module expects). Essentially, you can go through the same procedure as the first time you got WiFi working, I guess.

That is how it got there.lol

Or try this:

This is going to be an issue every time the linux-firmware package updates if only brcmfmac4356-sdio.bin is the problem.

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. If not chase down what script is loading the firmware and change the path to /usr/lib/firmware/brcmfmac4356-sdio.bin and reboot.