Manjaro arm on Amlogic Tv box?

@spikerguy
Noticed you have not updated/upgraded linux-vim 5.10.8-1 to newer version for quite a while. I supposed thee will be no more newer linux-vim kernel updates.

Would you consider linux-meson64 kernel be a good replacement for linux-vim kernel to support Amlogic SOC devices?

I am also facing Firefox or Chromium video performance/issue with 1080p/60 video similar to @fkaraokur very high dropped frames or freeze.

hi @Spikerguy
new update has arrived. about 1.1GB

The green line is gone again. :grinning:

When I can’t copy the 00-noglamoregl.conf file into / usr / share /, it still gets stuck.

1080p 60hz videos from youtube are frozen on mozilla.

I couldn’t get a full look at uboot. But the opening now has the manjaro logo, not the texts.

[root@fkaraokur fkaraokur]# uname -a
Linux fkaraokur 5.11.1-1-MANJARO-ARM #1 SMP Tue Feb 23 17:43:04 UTC 2021 aarch64 GNU/Linux
[root@fkaraokur fkaraokur]# pacman -Q | grep headers
linux-api-headers 5.10.13-1
linux-headers 5.11.1-1

Edit2: MPV streaming 1080p/60 with high dropped frames (with or without --hwdec=yes option) but streamed smoother or better than Firefox or Chromium.

No instead will be patching linux package so no need to maintain a separate kernel.

I have tried watching YouTube in firefox with 1080p on beelink gt king pro with mesa-git and kernel 5.11 i didn’t face any issue.
Can you share more information on which kernel and mesa version are you on while what is the output of inxi -G

Thank you.

Thanks, good to know amlogic devices will be supported in Manjaro-Arm.

Youtube video of 1080p/24, 1080p/25 and 1080p/30 or 720p/60 streamed well on Firefox but not 1080p/60. I am referring to 1080p/60 video just as fkaraokur.

Try this video: https://www.youtube.com/watch?v=h6Lbo-4OsZk with viewport size: 1280x720 and 1920x1080. Freeze or very high dropped frames.

Using MPV streamed better but still with very high dropped frames. Even MPV with --hwdec=v4l2m2m-copy option, high dropped frames when streaming1080p/60 videos. MPV without hwdec the 1080p/60 dropped frame rates is better than with --hwdec=yes or --hwdec=v4l2m2m-copy.

[jfl@MNJROGTKPro ~]$ inxi -G

Graphics:
  Device-1: meson-g12a-mali driver: panfrost v: kernel 
  Device-2: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: kernel 
  Display: x11 server: X.org 1.20.10 driver: modesetting 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mali G52 (Panfrost) 
  v: 3.1 Mesa 21.1.0-devel (git-644fcd9486)

Seem to be having this “failed retrieving file” when I try to perform system update.

[jfl@MNJROGTKPRO ~]$ sudo pacman -Syu

:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.krmir.org : The requested URL returned error: 523
 core is up to date
error: failed retrieving file 'extra.db' from mirror.krmir.org : The requested URL returned error: 523
 extra is up to date
error: failed retrieving file 'community.db' from mirror.krmir.org : The requested URL returned error: 523
 community is up to date

sudo pacman-mirrors -f 5

sudo pacman -Syyu

Thanks. It rebuilt the mirrors list and no more error message" ```
error: failed retrieving file ‘core.db’ from mirror.krmir.org

Just an update on my experience with Manjaro-Arm-XFCE after two weeks of updating from linux-vim-5.10.8-1 to linux-5.10.16-1 and now on linux-5.11.1-1.

In general with linux-5.10.16-1 and linux-5.11.1-1, it had been a positive experience. Since updating to linux-5.10.16-1 there are no more Panfrost visual glitches. The overall desktop experience had been good.

Minor issues when cpupower governover is on default ‘schedutil’:

  1. Screen flashes still occurs off and on but not regular.
  2. Screen/mouse/system momentarily freeze/inactive for a few seconds at times. Initially thought it was kernel panic!

These two issues seems to be resolved with cpupower governor set to performance.

The other issue is XCFE Compositor seems to cause the LibreOffice Impress Slide Show to crash.

Video performance on Firefox and Chromium is good up to 1080p/30 resolution. Both currently have issue to stream 1080p/60 (high dropped frames or freezes). Looking forward to improvement on this area.

Would like to thank Manjaro Team and Panfrost Team for the good work and support.

I also keep having this dmesg error on Bluetooth but currently I am not using Bluetooth but do plan to use it.

[    9.997055] Bluetooth: hci0: command 0xfc4c tx timeout
[   18.395712] Bluetooth: hci0: BCM: Patch command fc4c failed (-110)
[   18.395754] Bluetooth: hci0: BCM: Patch failed (-110)
[   20.475686] Bluetooth: hci0: command 0xfc18 tx timeout
[   21.049198] audit: type=1131 audit(1614673118.690:56): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   27.316035] rc rc0: two consecutive events of type space
[   28.635756] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[   29.336104] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   30.725712] Bluetooth: hci0: command 0x0c03 tx timeout
[   38.875708] Bluetooth: hci0: BCM: Reset failed (-110)
[   39.455547] audit: type=1130 audit(1614673135.440:86): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

How did you do this?

I updated the box now I got this error while booting:

** No partition table - mmc 1 **
MMC Device 2 not found
no mmc device at slot 2
ethernet@ff3f000 Waiting for PHY auto negotiation to complete… TIMEOUT !
Could not initialize PHY ethernet@ff3f000
missing environment variable: pxeuuid

Now my box failed to Boot
X96 Max+
Thanks for your share

  • Work on a second computer. Install the device tree compiler “dtc”.
  • Copy your .dtb file to this computer.
  • Decompile .dtb to .dts: dtc -I dtb -O dts -o my.dts my.dtb.
  • Open my.dts with editor and search for “amlogic,sm1-audio-clkc”.
  • (Some lines below “bus@60000”): Change compatible = “amlogic,sm1-audio-clkc” to compatible = “amlogic,g12a-audio-clkc”.
  • Compile .dts to .dtb: dtc -I dts -O dtb -o myNew.dtb my.dts
  • Copy myNew.dtb to /boot/dtbs/amlogic of your sd/usb that contains the Manjaro Arm image and change /boot/extlinux/extlinux.conf to point to the new .dtb.

Here, “my.dtb” denotes your original .dtb file, “my.dts” the respective device tree source that you can edit and “myNew.dtb” the new .dtb file which includes your changes.

Thanks for this info, it seems the dtb needs to be upgraded each time when there’s a new update. I tried to use your x96max+ dtb in the previous post, but still cannot manage to boot. Now I understood what the problem was. Many thanks

Not really. It is more like that currently you still need one .dtb when using the vim kernel and another .dtb when using the mainline kernel.

Since some forum members reported problems with ge.tt I have uploaded .dtbs for X96MaxPlus also here.

Currently, there is one version for use with vim kernel with working audio and wifi (after installing rtl8822cs driver) and one version for mainline kernel which boots 5.11.2 and has working wifi but lacks audio.

1 Like

Updated to linux-5.11.3-1 and Version 89.0.4389.72 from Unstable. All went well and no issue so far.

Thanks for your share, but unfortunately it doesn’t work on my box using Manjaro Stable Version.

First typical Panfrost visual glitches after a longtime, XFCE linux 5.11.1-1, Mesa 21.1.0-devel (git-644fcd9486) and Chromium Version 88.0.4324.182.

Panfrost Errors:

[ 2904.105300] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x5941740, tail=0x5941740
[ 2904.105369] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x51, head=0x5941740, tail=0x5941740, sched_job=00000000bee335a3
[ 2904.140774] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x7883a00, tail=0x7883a00
[  203.392841] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x51, head=0x30f5d40, tail=0x30f5d40, sched_job=0000000023107b73
[  203.401795] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x7c7f1c0, tail=0x7c7f1c0

Edit: Did some further investigation. If I use manual languae translation by right mouse click and select “Translate to English”, Chromium 88 display the web page correctly. It seems Chromium auto translation is causing the issue.

Firefox 86 is displaying this page correctly (but then Firefox does not have auto language translation)

@TheMojoMan I just found out that using EmuElec, both wifi and bluetooth work out of the box using the s905x3_4gb dtb. It seems this dtb works universally for Amlogic s905x3, Do you think that by using this dtb, our box device tree can be recognized in Manjaro?

To install the image, copy the dtb that match the box type, then paste in “EMUELEC” partition. Then rename to “dtb.img”

Then plug it to the box by using the reset button stick method, it will boot out of the box, with wifi, bluetooth and everything works. The graphic performance is amazing. I don’t know if panfrost works as well or not. But the FPS count is surprisingly good.

I don’t know if this one is useful, but maybe it can fill the gap to find the specific device tree for each devices. more importantly, it works exclusively for Amlogic. The device that Balbes150 end the support.

Maybe if we can somehow modify the dtb, it will work. But I have no idea how to do that?

I was inspired by this video, until I tried it myself:

As linux pkg is using schedutil i have updated linux-vim to 5.11.2 using tobetters source while I plan to move to chewitts source soon.

Pushed linux-vim-5.11.2 to unstable.
Everyone works smoothly with mesa-git

1 Like

What kernel EmuELEC uses?

I don’t know about the kernel, because I cannot manage to enter the terminal.

I 'm thinking that is 4.19 like Coreelec that’s why everyting work out of box (because is the same as the android)