Manjaro arm on Amlogic Tv box?

I’ve checked and have not found anything in aur, maybe can pkg this but i don’t have device to test.

Have you tried chewitt source? Can you prepare a PKGBUILD which works for you?

I do not know how to prepare a PKGBUILD, yet. That would be a nice next goal to learn for me. But it would take some time …

I also tried to compile the driver but it failed. I think the error was something like “no target for aarch64”. I guess that the make file has to be adapted.
Also: Do I need to download the full source code of the vim kernel before to be able to compile this driver? (I know that I can download the vim kernel source from your gitlab page)

Maybe you can give it a try and upload the .ko somewhere and I would gladly do the testing on my device :grinning:

I dont know didn’t check the source yet, I need to understand what method is used for this driver.
If it is using dkms then no need to recompile the kernel.

Update: I checked it is the same and needs to be used with dkms.

If you get time then follow this pkgbuild and replace it with rtl8822cs

Ive used this for rtl8723du.

I tried to make it run but still get an error when the package is installed.
Need to do some more fixes to ‘arm.patch’ I guess because the makefile of 8822cs driver is a lot more complex than the one from 8723du.

1 Like

First attempt at making tutorial videos.

Flashing Manjaro ARM on Beelink GS King X | Sd-Card/eMMC Process | Mainline u-boot

Please share your feedback.

System: X96Max+ (Amlogic S905X3, Mali G31)
Kernel: linux-vim 5.10.5-1
Branch: unstable
DE: XFCE

@spikerguy
Sound is broken after yesterdays updates of pulseaudio to 14.2.2.
aplay -l shows my soundcard but Volume Control → Outputs only shows ‘Dummy output’.
Tried to fix it by running /usr/bin/g12_sound.sh and sudo systemctl enable sound --now and reboot but no luck.
Downgraded pulseaudio, pulseaudio-bluetooth and libpulse to 14.2.1 and redid above procedure but nothing changes. Sound is still broken.

Any ideas?

Sound problem fixed!

g12_sound.sh did not find my card correctly. After setting ‘card1’ to the right name in the script, running it, enabling sound and rebooting sound is working again.

Will upgrade pulseaudio to 14.2.2 now and see if it breaks my audio again …

Upgraded to pulseaudio 14.2.2, rebooted and … sound is still working.
Don’t know what broke my audio before but I don’t complain because it is working again :grinning:

Sorry about the sound issue, there is a confusion in g12 and sm1 sound scripts, vim3 have different routing and other devices still uses old routing.

I don’t know they will update the old audio routing to the new one uses in vim3.
While our sound script is the new routing, I do plan to spilt the package into 2.

Please check the audio routing in your device dts and share it here.

Thank you.

@spikerguy Can you help? I always get the same error when trying to install the rtl8822cs package (see below). I have uploaded my PKGBUILD, arm.patch and dkms.conf here

Here comes the output:

[themojoman@X96MaxPlus rtl8822cs-dkms-git]$ makepkg -i
==> Making package: rtl8822-dkms-git 0.1-1 (Sa 23 Jan 2021 10:07:34 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning rtl8822cs git repo...
Cloning into bare repository '/home/themojoman/Develop/rtl8822cs-dkms-git/rtl8822cs'...
remote: Enumerating objects: 10, 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 | 44.00 KiB/s, done.
Resolving deltas: 100% (243/243), done.
  -> Found arm.patch
  -> Found dkms.conf
==> Validating source files with md5sums...
    rtl8822cs ... Skipped
    arm.patch ... Skipped
    dkms.conf ... Skipped
==> Extracting sources...
  -> Creating working copy of rtl8822cs git repo...
Cloning into 'rtl8822cs'...
done.
==> Starting prepare()...
patching file Makefile
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8822-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8822-dkms-git 0.1-1 (Sa 23 Jan 2021 10:10:01 CET)
==> Installing package rtl8822-dkms-git with pacman -U...
[sudo] password for themojoman: 
loading packages...
warning: rtl8822-dkms-git-0.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8822-dkms-git-0.1-1

Total Installed Size:  26,25 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                              [###########################################] 100%
(1/1) checking package integrity                                            [###########################################] 100%
(1/1) loading package files                                                 [###########################################] 100%
(1/1) checking for file conflicts                                           [###########################################] 100%
(1/1) checking available disk space                                         [###########################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> Unable to remove module rtl8822cs/0.1 for kernel 5.10.5-1-MANJARO-ARM: Not found in dkms status output.
:: Processing package changes...
(1/1) reinstalling rtl8822-dkms-git                                         [###########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m rtl8822cs -v 0.1 -k 5.10.5-1-MANJARO-ARM
Error!  Build of 8822cs.ko failed for: 5.10.5-1-MANJARO-ARM (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/rtl8822cs/0.1/build/ for more information.
==> Warning, `dkms install --no-depmod -m rtl8822cs -v 0.1 -k 5.10.5-1-MANJARO-ARM' returned 7
==> depmod 5.10.5-1-MANJARO-ARM

[themojoman@X96MaxPlus rtl8822cs-dkms-git]$ cat /var/lib/dkms/rtl8822cs/0.1/build/make.log 
DKMS make.log for rtl8822cs-0.1 for kernel 5.10.5-1-MANJARO-ARM (aarch64)
Sa 23. Jan 10:10:20 CET 2021
make: Entering directory '/usr/lib/modules/5.10.5-1-MANJARO-ARM/build'
  MODPOST /var/lib/dkms/rtl8822cs/0.1/build/Module.symvers
make: Leaving directory '/usr/lib/modules/5.10.5-1-MANJARO-ARM/build'

[themojoman@X96MaxPlus rtl8822cs-dkms-git]$ ls /var/lib/dkms/rtl8822cs/0.1/build/
clean  dkms.conf  halmac.mk    include  Makefile  modules.order   os_dep    README.md    runwpa
core   hal        ifcfg-wlan0  Kconfig  make.log  Module.symvers  platform  rtl8822c.mk  wlan0dhcp

My .dts uses the old routing and it seems I still have the old version of g12_sound.sh because I was able to fix the problem with it.

1 Like

How is your experience with Linux-kernel 5.11-rcy so far in Manjaro? Stable enough for daily use and also visual glitches compared to linux-vim 5.10.5-1.

I had to downgrade, so I didn’t really try it because in mainline kernel I don’t have sound.
I’m in linux-vim 5.10.5-1

Try NETBSD. My friend installed them on the microwave.

@spikerguy I was able to compile the rtl8822cs driver and now my internal wifi is working! :grinning_face_with_smiling_eyes:

I will edit this post later for a short tutorial.

P.S.: No dkms, yet.

2 Likes

So maybe its not a dkms driver.

waiting for your instructions, great work.

I have repeated the whole process I did this morning to write the tutorial. But this time I get an error when I try to activate the driver. So strange …

Maybe the reason is that I just deleted the .ko file using ‘sudo rm’ instead of doing ‘sudo modprobe -r 88x2cs’ and I have some driver parts remaining somewhere. I don’t know …

Anyway, here are the steps I did. Please give me feedback if it works for you.

DOES NOT WORK AS DESCRIBED BELOW! SEE POST #637 INSTEAD

------!!! STOP HERE !!! -----------------------

Howto: Compile and activate RTL8822CS wifi driver

Open a terminal and do the following:

  • sudo pacman -S base-devel bc
  • git clone https://github.com/chewitt/RTL8822CS.git
  • cd RTL8822CS/
  • sed -i 's/$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules/$(MAKE) -j4 -C $(KSRC) M=$(shell pwd) modules/g' Makefile
  • sed -i 's/$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded/strip $(MODULE_NAME).ko --strip-unneeded/g' Makefile
  • make
  • … (wait about 5 min.) …
  • Use version number of your kernel in the following steps:
  • sudo mkdir /lib/modules/5.10.5-1-MANJARO-ARM/kernel/drivers/net/wireless/realtek/rtlwifi/rtl88x2cs
  • sudo cp 88x2cs.ko /lib/modules/5.10.5-1-MANJARO-ARM/kernel/drivers/net/wireless/realtek/rtlwifi/rtl88x2cs
  • sudo modprobe 88x2cs
3 Likes

Getting this error at beginning I’m not able to compile it

[pedro@sala RTL8822CS]$ sed -i ‘s/$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules/$(MAKE) -j4 -C $(KSRC) M=$(shell pwd) modules/g’ Makefile
-bash: MAKE: comando não encontrado
-bash: ARCH: comando não encontrado
-bash: CROSS_COMPILE: comando não encontrado
-bash: KSRC: comando não encontrado
-bash: shell: comando não encontrado
-bash: MAKE: comando não encontrado
-bash: KSRC: comando não encontrado
-bash: shell: comando não encontrado
sed: invalid option – ‘C’
Uso: sed [OPÇÃO]… {script-só-se-não-houver-outro-script} [ficheiro-de-entrada]…

-n, --quiet, --silent
suprime mostra automática do espaço de padrões
–debug
anota a execução do programa
-e script, --expression=script
adiciona script aos comandos a executar
-f script, --file=script
adiciona conteúdos de script aos comandos a executar
–follow-symlinks
segue ligações simbólicas ao processar no local
-i[SUFIXO], --in-place[=SUFIXO]
edita ficheiros no local (segurança se SUFIXO fornecido)
-l N, --line-length=N
especifica comprimento de linha desejado no comando “l”
–posix
desactiva todas as extensões GNU.
-r, --regexp-extended
usa expressões regulares estendidas no script.
-s, --separate
considera ficheiros como separados em vez de uma única,
longa corrente contínua.
–sandbox
opera em modo virtual (desactiva os comandos e/r/w).
-u, --unbuffered
carrega quantidades mínimas de dados dos ficheiros de entrada e
despejar mais frequentemente os buffers de saída
-z, --null-data
separa linhas com caracteres NUL
–help mostra esta mensagem e sai
–version mostra informação de versão e sai

Se não for dada a opção -e, --expression, -f ou --file, o primeiro
argumento não-opção é considerado como o script sed a interpretar. Todos os
restantes argumentos são nomes de ficheiros de entrada; se não forem
especificados ficheiros de entrada, é lida a entrada padrão.

Página inicial do GNU sed: https://www.gnu.org/software/sed/.
Ajuda geral para uso de programas GNU: https://www.gnu.org/gethelp/.

It looks to me that the single quotes which should surround the commands s/$(MAKE) ... are replaced by back quotes in the webpage. Try to delete these characters in the terminal and use single quotes instead.