Manjaro arm on Amlogic Tv box?

I have installed a generic 5.11.3 Ubuntu kernel from kernel.ubuntu.com on a Ubuntu ports distro, and I have sound. This is a not vim kernel but works.

Maybe this info is of any help.

Sounds interesting. How does the installation process of the Ubuntu port work?

Hi @rna,
thanks for the info about EmuElec. I think to remember that balbes150 wrote on the Armbian forum (long time ago) that booting might not work anymore after running CoreElec/EmuElec on our boxes because these distros alter the bootloader of the box. Do you know if this problem has been fixed?

I wonder how this is supposed to work because hardware components of our tv boxes are quite different which is the reason for the different .dtb files. I will have a look into it, anyway. :grinning:

Sorry I have no idea about this. But in my case, If I want to use the other sd card to enter Armbian/Manjaro I have to press the reset button toothstick method again. Then the problem solved. I am using the current latest EmuElec 4.0 (The First Aarch64 version of EmuElec).

That is actually what my point was. How could EmuElec make one dtb for a universal Amlogic devices in the same category? I found this is very impressive, compared to our current solution that needs every device to have its own dtb.

Thanks. Does this means with tobetter kernel branch we can expect both Panfrost and Mali-Bifrost-dkms GPU acceleration option is available?

I never had a problem to run armbian to my H96 max X3 or HK1 Box after running Coreelec/Emuelec. I didn’t have any problem even after ejecting BL301 from Coreelec (to have a working ON/OFF of the original remote control).

If you don’t already know it, you do not have to press the reset button. For me a more convenient way is to install in Android the application “Terminal Emulator” and then type there “reboot update” (so as to run for the 1st time Armbian/Manjaro/Coreelec/Emuelec).

Aha, thanks - good to know this!

Updated from XFCE linux-5.11.1-1 to linux-vim-5.11.2-1 and latest mesa-git from Unstable Branch successfully. Ethernet, wifi, sound works.

[jfl@MNJROGTKPro ~]$ dmesg with some errors: Should it be a concern on “Volume was not properly unmounted. Some data may be corrupt. Please run fsck.”?

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.11.2-1-MANJARO-ARM (spikerguy@Manjaro-ARM-HC) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP PREEMPT Thu Mar 4 21:51:36 +03 2021
[    0.000000] Machine model: Beelink GT-King Pro
[    8.557762] systemd-journald[344]: Received client request to flush runtime journal.
[    8.581459] systemd-journald[344]: File /var/log/journal/ffb72a0ab52c46d1b3cdfcc8c9ac9b4e/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   11.348050] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

I have just upgraded my X96MaxPlus from linux-vim 5.10.8-1 to linux-vim 5.11.2-1 and everything works as expected, especially sound and wifi are working!

Thanks @spikerguy!

1 Like

This just be from previous incomplete shutdown process or maybe your sd card/usb is deteriorating.

Yes run fsck on the rootfs drive and it should be fine.

This is the original post from armbian forum:

Might give it a try but not sure If i will have enough time to get it to work.

1 Like

It is a new SD Card. Run fsck. Seems to fix it. Thanks for the great works.

[jfl@MNJROGTKPro ~]$ sudo fsck /dev/mmcblk1p1

[sudo] password for jfl: 
fsck from util-linux 2.36.2
fsck.fat 4.2 (2021-01-31)
Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
[12?q]? 1

*** Filesystem was changed ***
The changes have not yet been written, you can still choose to leave the
filesystem unmodified:
1) Write changes
2) Leave filesystem unchanged
[12?q]? 1
/dev/mmcblk1p1: 185 files, 17162/54628 clusters
[jfl@MNJROGTKPro ~]$ sudo fsck /dev/mmcblk1p1
fsck from util-linux 2.36.2
fsck.fat 4.2 (2021-01-31)
/dev/mmcblk1p1: 185 files, 17162/54628 clusters

Looking forward to it.

Edit: @spikerguy ,
FYI, certain webpage Index of /armbian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror on Chromium do seems to trigger Panfrost errors be it on linux 5.11.1-1, linux 5.11.3-1 or linux-vim 5.11.2-1. As pointed out earlier it could be due to Chromium Auto Translation. With manual Language Translation by right mouse click and select Translation to English the web page will display correctly else the page will be displayed with visual artifacts.

[ 3879.989463] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x7fe4bc0, tail=0x7fe4bc0
[ 3879.993627] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x51, head=0x7fe4bc0, tail=0x7fe4bc0, sched_job=00000000bbf47aa4
[ 3881.358032] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x638b1c0, tail=0x638b1c0
[ 3881.362192] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x51, head=0x638b1c0, tail=0x638b1c0, sched_job=000000000b08ef8b
[ 3881.378223] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x3174a00, tail=0x3174a00
[ 3881.384834] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x51, head=0x3174a00, tail=0x3174a00, sched_job=0000000059afc559
[ 3881.400699] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x47511c0, tail=0x47511c0
[ 3881.408097] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x51, head=0x47511c0, tail=0x47511c0, sched_job=00000000b146f9b2
[ 3881.423493] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x6406dc0, tail=0x6406dc0

@spikerguy,

Beelink GT King Pro Manjaro-Arm-XFCE-linux-vim-5.11.2-1 (tobetter) with mesa-git from Unstable Branch. Encored first kernel panic or system freeze just now. Rebooted trying to see whether I can recreate the kernel panic or system freeze again.

The kernel panic occurs after completing copying and deleting around 3GB of files and with Web Browser in the background and trying to open a folder on HDD.

Running the normal test that used to caused kernel panic before using the old u-boot.ext is NOT causing any kernel panic or system freeze so far.

Will continue to test further.

Edit: System Freezedhappened the second time,
Activities that was performed before system freeze/kernel panic happened the second time.

  1. Start up htop
  2. Start up Chromium and load up around 12 tabs of shopping sites and two Manjaro Forum tabs (RAM used 2.5GB/3.68G) No system freeze (if had used old u-boot.ext it will system freeze when RAM usage is around 1.9G/3.68G)
  3. Closed all the shopping website tabs and just with Manjaro Forum tabs to reduce RAM usage down to <1G/3.68G.
  4. Start File Manager, Open external HDD (1TB) on one window and external USB Flash (4GB) on second window.
  5. Open a zip flie (sd_card.zip) to review the contents of the zip file. System freeze/kernel panic happen.

Edit: Tried to recreate the kernel panic for the past 1 hour but so far NO system freeze. Could have been just a bad SD Card that is not unmounted or shutdown properly. Continue testing with Chromium with many tabs, File Manager, LibreOffice Impress and RAM usage in 3.43G/3.68G. No system freeze so far.

The only consistent error that is repeatable is Chromium with Chinese Character web page with Langauge Translation seems to cause:

[ 1306.791097] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x8, head=0x1dc0c440, tail=0x1dc0c440, sched_job=00000000458373bf
[ 1307.691159] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x8, head=0x1dc3a440, tail=0x1dc3a440, sched_job=00000000ab21d9e1

And also the screen glitches/missing text posted earlier but both this happen in linux-5.11.1-1, 5.11.3-1, also 5.11.4-1 and linux-vim-5.11.2-1.

Edit 2: With Firefox accessing this website/page Index of /armbian/pool/main/l/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror, it also seems to cause Panfrost error but NO screen visual glitches like in Chromium.

[  834.995259] panfrost ffe40000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x46b9740, tail=0x46b9740
[  835.001336] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x51, head=0x46b9740, tail=0x46b9740, sched_job=0000000020b0dd27
1 Like

@spikerguy,
GT King Pro, XFCE linux-vim3-5.11.2-1. Eventhough the kernel default to cpupower governor to “Performance”, the system do at times seems less responsive to keystroke or mouse click for a second or two (like inactive then active again). The is no screen flashes.

This is known if you’re using Panfrost driver on mesa-git.

@spikerguy

GT King Pro XFCE-linux-vim 5.11.2-1, encounter 3rd kernel panic, this time during shutdown and this allow me to take a photo of the screen. I read on www.kernel.org release notes (changelog) linux 5.10.20 and linux 5.11.3 have a commit or patch to tackle kernel panic. Not sure this info is useful.

The situation/or activities that lead to this shutdown kernel panic is miminum.

  1. Turn on device to load up Manjaro
  2. Start up Firefox 86 to check some info and tried to recreate the kernel panic situation by loading up about 10 tabs shopping webpages.
  3. Total turn on duration is about 20 minutes. Close/exit Firefox
  4. Shutdown and kernel panic happened.

Edit: Encountered 4th Kernel Panic, this time during boot up. This time CPU2. On the 3rd Kernel Panic, it was CPU5.

@spikerguy,
Are face any kernel panic/system freeze with linux-vim 5.11.2-1 on your GT King Pro?

When it works, it seems to work well. Have been running this image for past 85 minutes and playing high resolution video from local HDD with MPV for past 20 minutes running on the background. Copying some two 708MB files USB Flash to another USB Flash.

Hi @JFL , I just want to know when you boot to GT King Pro, did you use SD Card or USB 3 to load the Vim3 image?
I just realized that instead of using TF Card, this GT King Pro uses SD Card, which is not quite convenient in my opinion.
Usually on my other boxes like X96 Max+ I used TF Card.

At the moment, I am waiting my GT King Pro 4gb/64gb to arrive.
Thanks for your info

@TheMojoMan same device model here, did you use your custom dtb files ? also how to use linux-vim, if you don’t bother explaining to me (I don’t even understand what it’s about –vim is a text editor to me hahahaha)