Manjaro arm on Amlogic Tv box?

@spikerguy

Is your boot disk on SD Card or USB Flash? My boot disk is on USB Flash.

If I am not mistaken, darkstar Debian_5.10.12 also uses this u-boot.ext and it can only boot from OTG USB Port and without any USB Flash drive on the GT King Pro.

Edit:
The u-boot.ext I am using had modified/created date as 12/18/2020 same the one downloaded from https://yadi.sk/d/ZMQW85B-P6QejA. The Manjaro u-boot.ext is dated 12/28/2020. Both have the same exact size 735,459 bytes on disk.

@uropb

Is there a newer version of this u-boot.ext? I understand with the newer version of this u-boot.ext, it can boot with another USB drive together with USB Boot disk.

Balbes150 make new img, may be new u-boot.ext. Ask him self.

Oh ok that is the conflict. I have never tested it with boot on usb stick.

I don’t think he works on amlogic anymore. I will ask him again though.

I can boot with a a usb3 flash with boot and root disk in the usb 3 socket. So I don’t think that is the problem. Did you try another usb flash disk?

Tested rtl8822cs wifi driver dkms package from unstable.
Wifi works after reboot :smiley:

TV box: X96max+
DTB : meson-sm1-x96maxplus-vim100m.dtb

Before installing i run:

sudo pacman -S base-devel git bc dkms linux-vim-headers

Tested on clean image burned to sdcard:
sudo pacman -S manjaro-arm-tools
sudo buildarmimg -d vim3 -e xfce -b unstable

Did you change anything in the DTB file to make wifi work?

@uropb Thks. Based on how he reacts to some questions on amlogic devices, I think, @spikerguy will be a better person to approach him.

I have three Linux image with this u-boot.ext on USB Flash drive and so far all could not boot up correctly or do not boot at all when another USB drive (Flash or HDD) is on the device together with the USB Boot Drive. It might only be issue with Beelink GT King Pro only.

If you do have a chance, do test it out on USB Flash. I wonder whether it is only an Beelink GT King Pro issue. The image by darkstar_Debian_5.10.12 can only boot on USB Drive and NOT on SD Card according to him.

Just installed mesa-20.3.4-1 from Unstable Branch with linux-vim-5.10.8-1, Panfrost seems to have much less visual glitches to the point where a times it looks normal.

But mesa-20.3.4-1 glmark2-es2 score is quite significantly lower compared to latest mesa-git (285 compared to 400).

But with this mesa-20.3.4-1 and linux-vim-5.10.8-1, I noticed this Panfrost error for the first time.

dmesg output:

  50.339616] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f41680, tail=0x4f41680
[   50.343803] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f41680, tail=0x4f41680, sched_job=00000000e3ae3dfc
[   59.420653] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f82d00, tail=0x4f82d00
[   59.424859] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f82d00, tail=0x4f82d00, sched_job=00000000a80fb335
[   66.436437] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x6399000, tail=0x6399000
[   66.440633] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x6399000, tail=0x6399000, sched_job=000000002362dfcc
[   78.227119] audit: type=1131 audit(1612359934.786:92): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  113.769798] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x30d7100, tail=0x30d7580
[  113.774020] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x30d7100, tail=0x30d7580, sched_job=0000000017633c34
[  156.881572] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x4f44100, tail=0x4f44100
[  156.885790] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x4f44100, tail=0x4f44100, sched_job=00000000ad67c865
[  168.064398] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4f36cc0, tail=0x4f36cc0
[  168.067636] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4f36cc0, tail=0x4f36cc0, sched_job=000000004c0502ee
[  169.602682] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x313d340, tail=0x313d340
[  169.606868] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x313d340, tail=0x313d340, sched_job=000000007834315e
[  192.620180] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4f52d00, tail=0x4f52d00
[  192.623426] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4f52d00, tail=0x4f52d00, sched_job=00000000b98551a1
[  226.131396] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4ee5800, tail=0x4ee5800
[  226.135594] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4ee5800, tail=0x4ee5800, sched_job=00000000c0f06af1
[  236.796845] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x6399740, tail=0x6399740
[  236.800082] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x6399740, tail=0x6399740, sched_job=00000000432dac40
[  241.365370] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4ee5080, tail=0x4ee5080
[  241.368606] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4ee5080, tail=0x4ee5080, sched_job=000000007582d8fa
[  305.435077] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x31e8040, tail=0x31e8040
[  305.439276] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x31e8040, tail=0x31e8040, sched_job=00000000c605b1d2
[  320.680753] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x6399000, tail=0x6399000
[  320.684963] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x6399000, tail=0x6399000, sched_job=00000000e866af59
[  412.192315] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f803c0, tail=0x4f803c0
[  412.196510] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f803c0, tail=0x4f803c0, sched_job=00000000da63aa67
[  413.712020] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x30d8dc0, tail=0x30d8dc0
[  413.715270] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x30d8dc0, tail=0x30d8dc0, sched_job=000000002e740a23
[  427.451520] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x30d9540, tail=0x30d9540
[  427.455719] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x30d9540, tail=0x30d9540, sched_job=000000009b533bc6
[  445.753029] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f35280, tail=0x4f35280
[  445.757225] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f35280, tail=0x4f35280, sched_job=000000002725d206
[  450.326993] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4eee000, tail=0x4eee000
[  450.331194] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4eee000, tail=0x4eee000, sched_job=00000000432dac40
[  465.444904] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.494513] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.554491] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.624538] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.704600] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.794519] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.894660] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
               Reason: TODO
               raw fault status: 0x10002C2
               decoded fault status: SLAVE FAULT
               exception type 0xC2: TRANSLATION_FAULT_LEVEL2
               access type 0x2: READ
               source id 0x100
[  465.962888] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x8, head=0x4ef2000, tail=0x4ef2100, sched_job=00000000b94a390e
[  466.001956] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x6cac000, tail=0x6cac000
[  466.006149] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x6cac000, tail=0x6cac000, sched_job=00000000914b5ba1
[  467.203052] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x7acdb00, tail=0x7acdb00
[  467.206325] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x7acdb00, tail=0x7acdb00, sched_job=0000000079dfb17b
[jfl@MNJROGTKPRO ~]$ 

Edit: It looks like someone else had already reported this issue: Graphics glitches after upgrade to mesa 20.3 on Khadas VIM3 Pro (Mali G52 GPU) (#4157) · Issues · Mesa / mesa " Graphics glitches after upgrade to mesa 20.3 on Khadas VIM3 Pro (Mali G52 GPU)".

Robin Murphy @robmur01 · 1 day ago

The dmesg output looks a lot like you’re hitting the S922 coherency issue which was fixed in 5.11.

@spikerguy some progress in their tests so that the uboot.ext supports emmc?

No progress, I’ve tested new versions but it didn’t support on ugoos am6, didn’t get time to test any other board.
I will be sorry busy for coming weeks.

@spikerguy Does the new u-boot.ext now work with USB Boot drive with additional USB Flash or USB HDD on device?

It does looks like xfce compositor interfere with Panfrost, with xfce compositor “enabled”, LibreOffice Impress does crash on slide show mode on one of my “pptx” file. With the xfce compositor turn off, the slide show runs without issue.

Run on another distro without Panfrost, xfce compositor “enabled” or “disabled” have no effect on LibreOffice slide show.

Came across your post. I reported the bug that you mentioned - not sure if you found a solution already but for me the fix for the panfrost errors was change to linux-rc branch (5.11) and switch to git mesa master branch. mesa-git on the manjaro repository won’t be recent enough

@nerofire, Thanks for the information. Are you referring to the LibreOffice Impress crash with xfce compositor “enabled” or to “gpu schedule timeout error”?

Is linux-rc 5.11.rc7 stable enough for daily use? Are there visual glitches on xfce with Panfrost with linux-rc-5.11.rc7?

My bad - I was referring to the panfrost errors in dmesg.
I’ve had 5.11.rc4 for ~2 days now (stayed in stable branch), and it seems acceptable - my Khadas VIM3 is my daily driver currently. I guess you could easily switch back if you end up not liking it. Still get the occasional glitches, it’s not perfect, but it’s not as bad as before though. I’m using KDE, but I imagine the changes translate to xfce

Thanks for the info. Good to know that linux-rc-5.11 is stable for daily use.

Edit: Is KDE-Plasma-Wayland running smoothly on 5.11.rc4?

I have a X88 King and tried to install manjaro to an sd card.
I used “meson-g12b-odroid-n2.dtb” and “meson-g12b-ugoos-am6.dtb”. I was able to compete the boot process and initial actions (user, password etc) through SSH, because I had no mouse or keyboard usable in it. It seems that the USB ports are not available.
I even used the dtbs for GT King with the same result (no mouse and keyboard).
It seems that I have to find/make another dtb file. Is there any help if I already have the dtb files from Android firmware or Coreelec (in dtb or dts format)? I already have them available. Thank you.

I think you should first test all meson-g12a-…, meson-g12b-… and meson-sm1-… dtbs and see if one of it boots your box and has working USB.

It is possible to gain some information from the android/coreelec dtbs but it is quite difficult because they are tailored for a 4.x kernel.

Thank you for your answer. I already did that with no resutlt. It either boots with no USB ports (although if I insert a USB stick it momentarily flashes-so it must have at least power) or it stops booting at a certain point.
I have decompiled the “dtb” files to “dts” format of Android firmware and Coreelec, but as you already said I am not able to have any help (or hint of what to change) from them.