Manjaro arm on Amlogic Tv box?

Nice work Spikerguy, your patch worked !!

X96max+ (s905x3)

iw wlan0 link

Connected to xx:xxx (on wlan0)
	SSID: dd-wrt2
	freq: 2457
	signal: -27 dBm
	tx bitrate: 144.4 MBit/s

I used this DTB file: meson-sm1-x96maxplus-100M-mainline.dtb

Install dependencies and kernel headers like linux-odroid

sudo pacman -S dkms git bc linux-odroid

  1. Download patch made by Spikerguy
  2. Open terminal in download folder

sudo pacman -U dkms-rtl8822cs-2020.11.20-3-any.pkg.tar.zst
sudo modprobe 88x2cs
sudo reboot

NB!! need DTB file having rtw88,rtw8822c in wifisettings.
ā€¦

wifi@1 {
				compatible = "rtw88,rtw8822c";
				reg = <0x01>;
				phandle = <0x121>;
			};
..

I used this DTB file: meson-sm1-x96maxplus-100M-mainline.dtb

TIPS make a DTS / textcopy from your running system.

sudo pacman -S dtc
dtc -I fs /proc/device-tree > x96max.dts

You can open the file in txteditor and check your wifi setting.
Change settings if needed and make DTB file of DTS file.

dtc -I dts -O dtb -f x96max.dts -o x96max.dtb

Copy x96max.dtb to /boot/dtbs/amlogic/
Edit /boot/uEnv.ini

dtb_name=/dtbs/amlogic/x96max.dtb

MORE INFO

iw list

WIFI INFO

wiphy index: 0
max # scan SSIDs: 9
max scan IEs length: 2304 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
Band 1:
Capabilities: 0x1963
RX LDPC
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps
* 5.5 Mbps
* 11.0 Mbps
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm) (no IR)
* 2472 MHz [13] (20.0 dBm) (no IR)
* 2484 MHz [14] (disabled)
Band 2:
Capabilities: 0x1863
RX LDPC
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
VHT Capabilities (0x03d071b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
SU Beamformee
MU Beamformee
+HTC-VHT
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 867 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 867 Mbps
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180 MHz [36] (30.0 dBm)
* 5200 MHz [40] (30.0 dBm)
* 5220 MHz [44] (30.0 dBm)
* 5240 MHz [48] (30.0 dBm)
* 5260 MHz [52] (30.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (30.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (30.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (30.0 dBm) (no IR, radar detection)
* 5500 MHz [100] (30.0 dBm) (no IR, radar detection)
* 5520 MHz [104] (30.0 dBm) (no IR, radar detection)
* 5540 MHz [108] (30.0 dBm) (no IR, radar detection)
* 5560 MHz [112] (30.0 dBm) (no IR, radar detection)
* 5580 MHz [116] (30.0 dBm) (no IR, radar detection)
* 5600 MHz [120] (30.0 dBm) (no IR, radar detection)
* 5620 MHz [124] (30.0 dBm) (no IR, radar detection)
* 5640 MHz [128] (30.0 dBm) (no IR, radar detection)
* 5660 MHz [132] (30.0 dBm) (no IR, radar detection)
* 5680 MHz [136] (30.0 dBm) (no IR, radar detection)
* 5700 MHz [140] (30.0 dBm) (no IR, radar detection)
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
* 5885 MHz [177] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* set_bss
* join_ibss
* set_pmksa
* del_pmksa
* flush_pmksa
* remain_on_channel
* frame
* set_channel
* connect
* disconnect
WoWLAN support:
* wake up on anything (device continues operating normally)
software interface modes (can always be added):
interface combinations are not supported
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0

Wifi speed test

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

2 Ghz
Download: 47.92 Mbit/s
Upload: 89.76 Mbit/s

5 Ghz
Download: 62.58 Mbit/s
Upload: 166.18 Mbit/s

2 Likes

MPV playback broken (no picture).
Software and HW decoding.

Manjaro-ARM-xfce-vim3-21.12.img

VLC works.

Think its about sound not working.
When disable sound in MPV movie plays fine.

Please advice the container and its format used in the video content youā€™re trying to place.
Try kodi also

@spikerguy
Please advice the container and its format used in the video content youā€™re trying to place.
Try kodi also

All movies failed to play from MPV. (Tested different files / containers even mp3 files)
MPV black screen / playback at 00:00.

Video playback inn Firefox also not working.

Chang DTB file fixed the problem.

Tested different DTB files :
DTB working sound and video playback on x96max+
meson-sm1-x96maxplus-vim100m_sound.dtb
meson-sm1-x96maxplus-vim1000m-sound.dtb

DTB files also has the WIFI fix for rtw8822c

Please share the output of the command for mpv with filename.

mpv {filename.mp4}

I am not sure what have changed, please share the output of this command
inxi -Fzxi

@spikerguy
Please share the output of the command for mpv with filename.

mpv {filename.mp4}

The problem are solved using different DTB file for x96max+.

DTB: Not playing sound
meson-sm1-x96maxplus-100M-mainline.dtb

mpv bbb_sunflower_1080p_60fps_normal.mp4

(+) Video --vid=1 () (h264 1920x1080 60.000fps)*

  • (+) Audio --aid=1 () (mp3 2ch 48000Hz)
  • Audio --aid=2 (*) (ac3 6ch 48000Hz)*
    

File tags:

  • Artist: Blender Foundation 2008, Janus Bager Kristensen 2013*
  • Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net*
  • Composer: Sacha Goedegebure*
  • Genre: Animation*
  • Title: Big Buck Bunny, Sunflower version*
    AO: [pulse] 48000Hz stereo 2ch float
    VO: [gpu] 1920x1080 yuv420p
    AV: 00:00:00 / 00:10:34 (0%) A-V: -0.000 Dropped: 12

DTB sound working:
meson-sm1-x96maxplus-vim100m_sound.dtb
meson-sm1-x96maxplus-vim1000m-sound.dtb

inxi -Fzxi
System:
  Kernel: 5.15.7-1-MANJARO-ARM-ODROID aarch64 bits: 64 compiler: gcc
    v: 10.2.0 Desktop: Xfce 4.16.0 Distro: Manjaro ARM base: Arch Linux
Machine:
  Type: ARM System: SEI Robotics SEI610 details: N/A
CPU:
  Info: quad core model: N/A variant: cortex-a55 bits: 64 type: MCP
    arch: ARMv8 rev: 0
  Speed (MHz): avg: 1908 min/max: 100/1908 cores: 1: 1908 2: 1908 3: 1908
    4: 1908 bogomips: N/A
  Features: Use -f option to see features
Graphics:
  Device-1: meson-g12a-vpu driver: meson_drm v: N/A bus-ID: N/A
  Device-2: meson-g12a-mali driver: panfrost v: kernel bus-ID: N/A
  Device-3: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: N/A bus-ID: N/A
  Display: x11 server: X.org 1.21.1.1 driver: loaded: modesetting
    resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: meson-g12a-dw-hdmi driver: meson_dw_hdmi bus-ID: N/A
  Device-2: axg-sound-card driver: axg_sound_card bus-ID: N/A
  Sound Server-1: ALSA v: k5.15.7-1-MANJARO-ARM-ODROID running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
Network:
  Device-1: meson-axg-dwmac driver: meson8b_dwmac v: N/A port: N/A
    bus-ID: N/A
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: pwm-clock driver: pwm_clock v: N/A port: N/A bus-ID: N/A
  IF-ID-1: ip6tnl0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: meson-gx-uart driver: meson_uart bus-ID: N/A
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 148.21 GiB used: 8.86 GiB (6.0%)
  ID-1: /dev/mmcblk2 vendor: HP model: DF4032 size: 29.12 GiB
  ID-2: /dev/sda type: USB vendor: Generic model: STORAGE DEVICE
    size: 119.08 GiB
Partition:
  ID-1: / size: 116.94 GiB used: 8.78 GiB (7.5%) fs: ext4 dev: /dev/sda2
  ID-2: /boot size: 213.4 MiB used: 88 MiB (41.2%) fs: vfat dev: /dev/sda1
Swap:
  ID-1: swap-1 type: zram size: 4.87 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 54.9 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 187 Uptime: 16m Memory: 3.25 GiB used: 731.6 MiB (22.0%)
  Init: systemd Compilers: gcc: 10.2.0 Packages: 736 Shell: fish v: 3.3.1
  inxi: 3.3.11
1 Like

For sound you might have to switch the audio routing inside this file.
/usr/bin/g12_sounds.sh

Inside this file there are 2 Amlogic routing.

  1. New conf
  2. Old conf

Try to enable one at a time while disable the other and reboot to see if sound works on those dtb.

Yea i just chexkedeon ugoos am6.
Mpv works well for h264 with --hwdec=auto

But seek is still a problem.

Im newbie broā€¦ can u give me manjaro arm link for my x96max+ with wifi on?
Sorry my english badā€¦

Hello
There is no ready image for that device.

You will have to use vim3-21-12 image and use a different dtb as per this thread.
Then add the needed wifi firmware.

I burn vim3-21-12 imageā€¦edit the dtbā€¦ but cant boot from sdcardā€¦ can you help meā€¦

Whats image you use bro?

Do you use toothpick method?

Yesā€¦ but nothing happend

@akiztaeko
Whats image you use bro?

Latest VIM3 XFCE img.

DTB sound working and WIFI support:
meson-sm1-x96maxplus-vim100m_sound.dtb
meson-sm1-x96maxplus-vim1000m-sound.dtb

Download and copy to sdcard /dtbs/amlogic folder on sdcard BOOT_MNJRO.

Edit uEnv.ini (BOOT_MNJRO)
dtb_name=/dtbs/amlogic/meson-sm1-x96maxplus-vim1000m-sound.dtb

Use a toothpick or similar to push and hold the hidden button in audio-port.
Connect power, Wait for about 1min.
Disconnect power , release button.
Connect power again, hopefully your box will boot!

You have to manual install Wifi drivers / module.
Read my earlier post about WIFI patch form @spikerguy

Hi guys
Iā€™ve been having problems with my x96max+ (s905x3) lately. I use meson-sm1-sei610.dts and everything needed worked. But after the some update it stopped loading, just a black screen and nothing more. I think it happened after switching to a new boot process.
Now I have switched to meson-g12a-sei510.dts. The device is loading, everything worked, but only 1GB RAM available instead 4GB.

Can anyone tell me how to diagnose a boot problem or change the amount of available RAM?

I had the same problem some time ago. I found out that the update switched the kernel from linux-vim to linux mainline. That meant no boot and after switching to ā€œmeson-g12a-sei510.dtbā€ it bootet but no sound (well known problem of mainline kernel with X96Max+).

So I reinstalled linux-vim kernel and also copied uboot.ext and extlinux folder to boot partition from a second image (on a different sd card) to be able to boot linux-vim kernel again.

Please specify the boot media. Usb drive is sd card?

One kernel revision have usb boot missing in kernel so i hope your not encountering that issue.

HDD via USB. Mainline kernel 5.16.4.
I can try to connect to uart if there are no ideas how to fix it. But I would use this as a last resort

Yes better to provide bootlogs.

Thanks.