Manjaro arm on Amlogic Tv box?

Unfortunately I think, as reported by @Chewitt, there is no one currently working on vdec driver. Hope I’m wrong

1 Like

I suspect you are right @dante6913 . It doesn’t look like anyone has worked on vdec since March 2020.

https://lore.kernel.org/lkml/20200330114824.46773eee@coco.lan/

Hopefully Manjaro ARMs support for Amlogic TV boxes will encourage someone to resume work on this as its over my pay grade.

2 Likes

I have updated the wiki page to include a ‘Hardware accelerated video playback’ section and I’ve added a link to @gausus 's X96 Max Plus dtb, which is a tweaked version of @TheMojoMan 's , I think?

@TheMojoMan - it would be cool if you could upload your rtl8822cs DKMS kernel module PKBUILD to the AUR so that users could just install it by running yay -S dkms-rtl8822cs-aml or whatever.

https://wiki.archlinux.org/title/AUR_submission_guidelines

If that’s too much work then we’ll just add a link to your pre-built package to the wiki, although that doesn’t seem like a good long term solution.

Is Bluetooth working for you after installing dkms-rtl8822cs-aml and meson-sm1-x96maxplus-vim100m, @TheMojoMan / @gausus ?

Came across this article Adding VP9 and MPEG2 stateless support in v4l2codecs for GStreamer Adding VP9 and MPEG2 stateless support in v4l2codecs for GStreamer

1 Like

Hi @spikerguy
Installed linux-vim 5.13.0-1 on Manjaro-Arm KDE on GT King Pro. Same issue. Kernel Panic during booting process (bad 6 boot up 5 kernel panics during booting process and 1 successful boot up and manage to switch back to mainline linux kernel). The successful boot up (linux-vim 5.13.0-1) lasted around 30 minumtes and kernel panic strike. Do you have any idea what is/are the issue(s)?

linux-vim 5.12.y and linux-vim 5.13.0-1 all seems to cause kernel panic during booting process more frequently than linux-vim 5.11.7-1 if I remember correctly (eventhough linux-vim 5.11.7-1 also causes kernel panic during booting process but not as frequent).

1 Like

Yes I tried it too and it seems to freeze the system, I even tried linux-aml-5.13.0-rc5 and that seem to cause the system to freeze too.
With linux-vim-5.13.0-1 i have green screen issue on mainline uboot, chewitt have been very busy lately, I will report to tobetter the findings for his branch.

The last I tried linux-aml 5.12.0-1 it won’t boot up ended with kernel panic with I/O error and since it cannot boot means have to reburn new image which lead me to try out Manjaro-Arm KDE Edition -Vim3 (v21.04 which took a few try to boot up and switch to mainline linux). So did try linux-aml 513.0-rc5.

Out of curiosity can GT King Pro use the Manjaro-Arm Odriod N2 image (v21.06) as a base? If not mistaken the Odroid N2 uses mainline linux if I ever need to burn a new Manjaro image?

No green color issue with linux-vim 5.13.0-1 (on vendor’s uboot) just having booting process kernel panic and system freeze. Hope tobetter will address the issues of kernel panic too with vendor’s uboot.

Edit: Have been using the Manjaro-Arm GNOME Edition recently, mainly on GNOME-Wayland session and it has been a positive experience. Overall GNOME-Wayland with Panfrost is smooth and NO mouse pointer flickering issue (or way less than in KDE (X11) or even on XFCE). Furthermore the Manjaro-Arm GNOME Edition doesn’t consume much RAM resoruces on start up ~550 MB.

By the way, is there a way to add “Applications” next “Activities” on the Top Menu Bar? I have seen some GNOME edition having this option.

1 Like

(7/7) Updating the info directory file…
[root@counter ~]# git clone https://github.com/chewitt/RTL8822CS.git
Cloning into ‘RTL8822CS’…
remote: Enumerating objects: 725, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 725 (delta 0), reused 2 (delta 0), pack-reused 715
Receiving objects: 100% (725/725), 4.03 MiB | 4.89 MiB/s, done.
Resolving deltas: 100% (243/243), done.
[root@counter ~]# cd RTL8822CS/
[root@counter RTL8822CS]# sed -i ‘s/$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)/$(MAKE) -j4 -C $(KSRC) M=$(shell pwd)/g’ Makefile
[root@counter RTL8822CS]# sed -i ‘s/$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded/strip $(MODULE_NAME).ko --strip-unneeded/g’ Makefile
[root@counter RTL8822CS]# make
make -j4 -C /lib/modules/5.12.9-1-MANJARO-ARM/build M=/root/RTL8822CS modules
make[1]: Entering directory ‘/usr/lib/modules/5.12.9-1-MANJARO-ARM/build’
CC [M] /root/RTL8822CS/core/rtw_cmd.o
CC [M] /root/RTL8822CS/core/rtw_debug.o
CC [M] /root/RTL8822CS/core/rtw_security.o
CC [M] /root/RTL8822CS/core/rtw_io.o
CC [M] /root/RTL8822CS/core/rtw_ioctl_query.o
CC [M] /root/RTL8822CS/core/rtw_ioctl_set.o
CC [M] /root/RTL8822CS/core/rtw_ieee80211.o
CC [M] /root/RTL8822CS/core/rtw_mlme.o
CC [M] /root/RTL8822CS/core/rtw_mlme_ext.o
CC [M] /root/RTL8822CS/core/rtw_mi.o
CC [M] /root/RTL8822CS/core/rtw_wlan_util.o
CC [M] /root/RTL8822CS/core/rtw_vht.o
CC [M] /root/RTL8822CS/core/rtw_pwrctrl.o
CC [M] /root/RTL8822CS/core/rtw_rf.o
CC [M] /root/RTL8822CS/core/rtw_chplan.o
CC [M] /root/RTL8822CS/core/rtw_recv.o
CC [M] /root/RTL8822CS/core/rtw_sta_mgt.o
CC [M] /root/RTL8822CS/core/rtw_ap.o
CC [M] /root/RTL8822CS/core/mesh/rtw_mesh.o
CC [M] /root/RTL8822CS/core/mesh/rtw_mesh_pathtbl.o
CC [M] /root/RTL8822CS/core/mesh/rtw_mesh_hwmp.o
CC [M] /root/RTL8822CS/core/rtw_xmit.o
CC [M] /root/RTL8822CS/core/rtw_p2p.o
CC [M] /root/RTL8822CS/core/rtw_rson.o
CC [M] /root/RTL8822CS/core/rtw_tdls.o
CC [M] /root/RTL8822CS/core/rtw_br_ext.o
CC [M] /root/RTL8822CS/core/rtw_iol.o
CC [M] /root/RTL8822CS/core/rtw_sreset.o
CC [M] /root/RTL8822CS/core/rtw_btcoex_wifionly.o
CC [M] /root/RTL8822CS/core/rtw_btcoex.o
CC [M] /root/RTL8822CS/core/rtw_beamforming.o
CC [M] /root/RTL8822CS/core/rtw_odm.o
CC [M] /root/RTL8822CS/core/rtw_rm.o
CC [M] /root/RTL8822CS/core/rtw_rm_fsm.o
CC [M] /root/RTL8822CS/core/efuse/rtw_efuse.o
CC [M] /root/RTL8822CS/core/rtw_sdio.o
CC [M] /root/RTL8822CS/os_dep/osdep_service.o
CC [M] /root/RTL8822CS/os_dep/linux/os_intfs.o
CC [M] /root/RTL8822CS/os_dep/linux/sdio_intf.o
CC [M] /root/RTL8822CS/os_dep/linux/sdio_ops_linux.o
CC [M] /root/RTL8822CS/os_dep/linux/ioctl_linux.o
CC [M] /root/RTL8822CS/os_dep/linux/xmit_linux.o
CC [M] /root/RTL8822CS/os_dep/linux/mlme_linux.o
CC [M] /root/RTL8822CS/os_dep/linux/recv_linux.o
CC [M] /root/RTL8822CS/os_dep/linux/ioctl_cfg80211.o
/root/RTL8822CS/os_dep/linux/recv_linux.c: In function ‘napi_recv’:
/root/RTL8822CS/os_dep/linux/recv_linux.c:358:55: error: ‘GRO_DROP’ undeclared (first use in this function)
358 | if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
| ^~~~~~~~
/root/RTL8822CS/os_dep/linux/recv_linux.c:358:55: note: each undeclared identifier is reported only once for each function it appears in
CC [M] /root/RTL8822CS/os_dep/linux/rtw_cfgvendor.o
make[2]: *** [scripts/Makefile.build:271: /root/RTL8822CS/os_dep/linux/recv_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs…
make[1]: *** [Makefile:1851: /root/RTL8822CS] Error 2
make[1]: Leaving directory ‘/usr/lib/modules/5.12.9-1-MANJARO-ARM/build’
make: *** [Makefile:2296: modules] Error 2
[root@counter RTL8822CS]# sudo make install
install -p -m 644 88x2cs.ko /lib/modules/5.12.9-1-MANJARO-ARM/kernel/drivers/net/wireless/
install: cannot stat ‘88x2cs.ko’: No such file or directory
make: *** [Makefile:2302: install] Error 1
[root@counter RTL8822CS]# sudo modprobe 88x2cs
modprobe: FATAL: Module 88x2cs not found in directory /lib/mo

Guessing you have the kernel-header package installed for the kernel you are running. That error usually means a missing header file:

[ray@ray-pc build]$ cd /usr/lib/modules/5.10.40-udl+/build
[ray@ray-pc build]$ grep -r GRO_DROP
include/linux/netdevice.h:	GRO_DROP,

hi,
i am using 5.12.9 , and wanted to install rltk8822cs driver .
i tried your steps seeems having error.

[root@counter ~]# cd /usr/lib/modules/5.12.9-udl+/build
bash: cd: /usr/lib/modules/5.12.9-udl+/build: No such file or directory

Please have a look in my second last post where the problem with GRO_DROP is addressed and where you can also find a link to my MEGA folder which includes the RTL8822CS dkms driver for kernel >= 5.12.

See here: Manjaro arm on Amlogic Tv box? - #1101 by TheMojoMan

Hi @danboid,

sorry, I have missed above message.

You are completely right that it would be best to add the dkms driver to AUR. I’m gonna have a look into the submission guidelines in the coming days.

No, it is not working. I did a lot of tests tweaking the .dtb and btrtl.c but with no success. It might also be a problem with the Realtek firmware. Not sure about it.

1 Like

hi, i tried to download from mega and run…below is error message
Reinstalling dkms-rtl8822cs-aml (2020.11.20-1)…
Error! echo
Error while configuring dkms-rtl8822cs-aml
Your kernel headers for kernel 5.12.9-1-MANJARO-ARM cannot be found at
/usr/lib/modules/5.12.9-1-MANJARO-ARM/build or /usr/lib/modules/5.12.9-1-MANJARO-ARM/source.
You can use the --kernelsourcedir option to tell DKMS where it’s located.
Error: dkms-rtl8822cs-aml: command failed to execute correctly
Running post-transaction hooks…
Arming ConditionNeedsUpdate…
Install DKMS modules
==> Unable to install module rtl8822cs-aml/2020.11.20 for kernel *: Missing kernel headers.
Transaction successfully finished.

It seems that you did not install the kernel header files for your kernel before installing the driver.

Hi,
ok , managed to resolve the issue and driver got installed .But i need a help , my tv box is i96pro s905x3 4gb , the onborad wifi is 8821cs based on manufacturer , so i installed the driver but noticed its not detected , is there any way to enable the onboard sdio bus network card detection ? seems kernel never detects the wifi card :frowning:

Did you load the kernel module? Try

sudo modprobe 88x2cs

Is this a typo (I mean 8821)? If not it might not work with the 88x2cs driver.

Hi sorry typo
Its 8822cs , on board wifi + bt

[root@counter ~]# sudo modprobe 88x2cs
[root@counter ~]# inxi -f
CPU: Info: Quad Core model: N/A variant: cortex-a55 bits: 64 type: MCP
Speed: 1908 MHz min/max: 100/1908 MHz Core speeds (MHz): 1: 1908 2: 1908 3: 1908 4: 1908
Features: aes asimd asimddp asimdhp asimdrdm atomics cpuid crc32 dcpop evtstrm fp fphp lrcpc pmull sha1 sha2
[root@counter ~]# inxi -n
Network: Device-1: meson-g12a-dwmac driver: meson8b_dwmac
IF: eth0 state: up speed: 100 Mbps duplex: full mac: de:b2:48:be:c5:38
Device-2: pwm-clock driver: pwm_clock
IF-ID-1: ip6tnl0 state: down mac: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
[root@counter ~]#

please see below , seems showing on lsmod

[root@counter ~]# lsmod
Module Size Used by
88x2cs 2355200 0
bnep 32768 2
zram 36864 2
nls_ascii 16384 1
btsdio 20480 0
brcmfmac 356352 0
meson_vdec 73728 0
brcmutil 24576 1 brcmfmac
cfg80211 401408 2 88x2cs,brcmfmac
hci_uart 147456 0
v4l2_mem2mem 40960 1 meson_vdec
btqca 24576 1 hci_uart
videobuf2_dma_contig 24576 1 meson_vdec
btrtl 24576 1 hci_uart
videobuf2_memops 20480 1 videobuf2_dma_contig
btbcm 24576 1 hci_uart
videobuf2_v4l2 32768 2 meson_vdec,v4l2_mem2mem
videobuf2_common 61440 5 meson_vdec,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
btintel 28672 1 hci_uart
bluetooth 647168 15 btrtl,btqca,btsdio,btintel,hci_uart,btbcm,bnep
videodev 249856 4 meson_vdec,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
mc 61440 4 videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
ecdh_generic 16384 1 bluetooth
meson_ir 16384 0
ao_cec_g12a 16384 0
ecc 32768 1 ecdh_generic
dw_hdmi_cec 16384 0
rc_core 57344 2 meson_ir
mdio_mux_meson_g12a 16384 0
rfkill 36864 7 bluetooth,cfg80211
meson_rng 16384 0
rtc_meson_vrtc 20480 1
snd_soc_meson_axg_pdm 16384 1
snd_soc_meson_axg_sound_card 16384 0
snd_soc_meson_g12a_tohdmitx 20480 1
snd_soc_max98357a 20480 1
sch_fq_codel 20480 2
crypto_user 16384 0
fuse 126976 1
ip_tables 32768 0
x_tables 45056 1 ip_tables
gpio_keys 20480 0
display_connector 20480 0

My box shows the following:

[themojoman@X96MaxPlus ~]$ inxi -n
Network: Device-1: meson-axg-dwmac driver: meson8b_dwmac
IF: eth0 state: down mac: … (deleted)
Device-2: pwm-clock driver: pwm_clock
IF-ID-1: ip6tnl0 state: down mac: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
IF-ID-2: wlan0 state: up mac: … (deleted)
[themojoman@X96MaxPlus ~]$ lsmod | grep 88
88x2cs 2355200 0
cfg80211 401408 1 88x2cs
[themojoman@X96MaxPlus ~]$ lsmod | grep rtl
btrtl 24576 1 hci_uart
bluetooth 651264 13 btrtl,btqca,btintel,hci_uart,btbcm,bnep

I have recognized the following difference:

Your system shows “Network: Device-1: meson-g12a-dwmac” while mine shows “Device-1: meson-axg-dwmac”.

So, I guess that you use a different .dtb than I do. Did you try the .dtb from my MEGA drive as well?