[How To] Install run Manjaro ARM on Amlogic TV Boxes with S922X - S905X3 SOC

Hi @spikerguy,

I noticed a new script boot-vim3 https://mirror.easyname.at/manjaro/arm-unstable/core/aarch64/boot-vim3-2021.12-1-aarch64.pkg.tar.zst is available.

Is this script still applicable to GT King Pro?

No don’t try.
It causes kernel panic. Chewitt and Neil is trying to find a fix and libreelec box image no longer works for beelink s922x.

I will try an mmc patch by Neil to see if that helps.

Thks for the warning. Currently boot-VIM3 2020-10 is installed afraid when next Manjaro-Arm Stable Updates comes along it will automatically update the boot-VIM3. That is the reason I raise the question.

Good to know Chewitt and Neil is looking into this. Surprised that the current LibreElect does not work on GT KING PRO.

Add boot-vim3 to ignore in pacman config. Check arch wiki for details

1 Like

Edit /etc/pacman.conf:

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = boot-vim3
#IgnoreGroup =

or should it be without the space?

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg=boot-vim3
#IgnoreGroup =

With space is fine.

A Quick tutorial here

1 Like

my box wechip v9 (spec similiar with x96 air, S905X3 4GB RAM), i’ve burned microsd with manjaro xfce 21.10 but failed boot:

[0.150897] kvm: pmu event creation failed- 2

Hello and welcome to the forum,

This is a generic error and cannot confirm anything until any of the developer have this device to test.

I have been facing similar issue with BPI M5 and that have not been resolved yet.

Might try a new image on it which uses boot script instead of chainloader.

I use the Ugoos-amgb.plus box and installed manjaro to a fast sdcard

I tried the Manjaro-ARM-kde-plasma-vim3-21.12.img and put it on a fast sdcard. I couldn’t get it to boot so I checket the boot partition and it now using more standard uboot, but it wouldn’t boot for the sdcard. So Iused the old usb-stick I had and pointed the rootdevice in extlinux.conf to root=/dev/mmcblk0p2 and copied the Image file and initramfs-linux.img to the usb boot partition from the BOOT_MANJARO partition.
I couldn’t get sound to work with the meson-g12b-ugoos-am6.dtb, but when I tried the meson-g12b-a311d-khadas-vim3.dtb since its almost the same processor and now I got sound out from hdmi.
I still couldn’t get wifi and bluetooth working, but I installed emuelec on the box, logged in and copied out the brcm firmware that had from there. I had to rename some of the files from fw_bcm43752a2_ag… to bcm43752… and rename files it complained about when inserting the brcmfmac module in dmesg
Now wifi , hdmi sound and bluetoth is working
If the kernel gets updated running pacman I have to mount /dev/sda1 usb boot partiton and copy the Image and initramfs-linux.img from the /boot partition of the sdcard again.

Can you share the exact name of the manjaro arm image you used?

I am using it on ugoos am6 plus since long time and i have audio and wifi working.

I am using the custom dtb which is part of our kernel.

I think youre not using the right packages.

I have official packages for Ugoos Am6 plus.

I will share details once home. I will also release official image for this device.

I have am6b plus and not am6 plus. It uses the bcm43752

[    6.777134] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2
[    7.016980] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43752/2 wl0: Dec  4 2019 01:55:28 version 18.35.387.11 (wlan=r853831) FWID 01-ae9dfd3b

The image I used is:
β€œhttps://github.com/manjaro-arm/vim3-images/releases/download/21.12/Manjaro-ARM-kde-plasma-vim3-21.12.img.xz”

Another difference with my dtb i get:

[    1.369320] mmc1: new HS200 MMC card at address 0001
[    1.370170] mmcblk1: mmc1:0001 SLD32G 28.9 GiB 
[    1.372936] mmcblk1boot0: mmc1:0001 SLD32G 4.00 MiB 
[    1.374971] mmcblk1boot1: mmc1:0001 SLD32G 4.00 MiB 
[    1.376866] mmcblk1rpmb: mmc1:0001 SLD32G 4.00 MiB, chardev (235:0)

With meson-g12b-ugoos-am6-plus.dtb I get

[    0.870927] mmc1: switch to bus width 8 failed
[    0.871882] mmc1: switch to bus width 4 failed
[    0.871961] mmc1: new high speed MMC card at address 0001
[    0.872889] mmcblk1: mmc1:0001 SLD32G 28.9 GiB 
[    0.979268] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.000999] mmc1: switch to bus width 8 failed
[    1.001972] mmc1: switch to bus width 4 failed
[    1.002450] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    1.002467] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    1.003574] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    1.003585] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    1.004701] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    1.004729] Buffer I/O error on dev mmcblk1, logical block 0, async pa

I tried switching between the dtb’s and no sound from hdmi on meson-g12b-ugoos-am6-plus.dtb

1 Like

Ah ok Sorry I did not read that carefully before.

I will ask Ugoos for the Schematic so I can understand what is different in that board. I had requested them for a sample but there was no stock.

Which dtb gets you most of the IO working ? Then we can make it as the base and then see which IO is not working.

AM6 Plus uses AP6275S which is BCM43752 as per the official email by Ugoos.

So with this you can try AP6275S firmware and hopefully it should work. I have asked Ugoos for the schematic once they share it then I will be able to update the dts and share it with you for testing.

In the image its brcmfmac4359-sdio.ugoos,am6.txt and it doesn’t work
I needed brcmfmac43752-sdio.ugoos,am6.txt
I think the diffrence on model am6 and am6b is that it supports wifi6

I made my own dtb from the kernelsource:

copied meson-khadas-vim3.dtsi - > meson-am6b.dtsi
	changed rtc@51 to nxp,pcf....
	changed soundmodel to AM6B
copied meson-g12b-a311d-khadas-vim3.dts  -> meson-g12b-ugoos-am6b.dts
changed include meson-khadas-vim3.dtsi to meson-am6b.dtsi
changed include meson-g12b-a311d.dtsi meson-g12b-s922x.dtsi
copied meson-g12b-khadas-vim3.dtsi -> meson-g12b-ugoos-am6b.dtsi			
	changed model to Ugoos am6b
added meson-g12b-ugoos-am6b.dtb to Makefile

and compiled dtbs and copied over to boot disk and pointed extlinux.conf to the new file

1 Like

@hste
Getting my AM6B Plus soon :smiley:
So will add official support for it with working wifi driver pkg as this chips firmware was recently released.

Happy holidays.

I think I got most of things working with my dtb file.
Stereo out works but I think there are some more configuring needed for audio on the device tree I think.
I have the dtbs here if you want to try:
dtbs

I have added rtc-pcf8563 clock and es8328 sound as I found those on the emuelec’s dtb file

[    6.065719] rtc-pcf8563 0-0051: registered as rtc0
[    6.066929] rtc-pcf8563 0-0051: setting system clock to 2021-12-30T10:29:43 U
TC (1640860183)
[    6.089067] es8328 0-0010: supply DVDD not found, using dummy regulator
[    6.105637] es8328 0-0010: supply AVDD not found, using dummy regulator
[    6.106139] es8328 0-0010: supply PVDD not found, using dummy regulator
[    6.107290] es8328 0-0010: supply HPVDD not found, using dummy regulator
1 Like

I made a new dtb based on that the 2 arm53 cpu’s on s922x-j on Ugoos am6b plus can run at 2.2GHz. So I added a some frequences up to 2.184GHz. I also redused the voltage on the higher frequences. Running stress -c 6 for some time the cpu-temp showed 67C and looking stable on my box.

neofetch 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   test@test-pc 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ------------ 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro ARM Linux aarch64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: Ugoos am6b 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.15.11-1-MANJARO-ARM 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 1 hour, 6 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 886 (pacman) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.1.12 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 2048x1152 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Terminal: /dev/pts/1 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   CPU: (6) @ 2.184GHz 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Memory: 705MiB / 3812MiB 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ                           
                                                       
1 Like

Can’t wait to get my hands on this device.

Hopefully something is arriving tomorrow and i suspect it’s from ugoos.

Any reason for creating a seperate dtsi for am6b ?

I am looking at them now. Have asked for schematic to understand what is different in this device.
received my device now.

I didn’t get sound working on the am6 version one so just to work with it I made a am6b version with parts from another where I got sound working looking at the dtsi files. I have also made a S922X-J dtsi for clocking it up to its spec. I made one with gpu clocked up from 800MHz to 820MHz but that one I had to edit the meson-g12b-common.dtsi file.

<pre>-Processors-
SOC/Package Information
ARM Cortex-A53 r0p4 (AArch64)           : 2184,00 MHz
ARM Cortex-A53 r0p4 (AArch64)           : 2184,00 MHz
ARM Cortex-A73 r0p2 (AArch64)           : 1908,00 MHz
ARM Cortex-A73 r0p2 (AArch64)           : 1908,00 MHz
ARM Cortex-A73 r0p2 (AArch64)           : 1908,00 MHz
ARM Cortex-A73 r0p2 (AArch64)           : 1908,00 MHz</pre>

If you can get a dtb that works well for both am6 and am6b that would of course be the best

I will make a separate dts for am6b-plus and will re-use am6-plus dts just the audio will be different as per your explanation until I go through the dts myself.

I will not be overclocking much unless they officially approve overclocking.