Archlinux on Rock5b

@Benno fot the time being mpv --hwdec=rkmpp pattofile should fix your problem. You have to install mpv for this, and it only works for mpv, rest of the system can not sue this.

For the actual problem, i have a workaround, i will publish it later in the AUR.

With the added argument the video plays smoother and without the audio cutting out or the video freezing. Cool. I noticed the lines:

Apr 19 21:27:35 rock-5b kernel: mali fb000000.gpu: Incorrect firmware magic
Apr 19 21:27:35 rock-5b kernel: mali fb000000.gpu: Firmware initialization failed
Apr 19 21:27:35 rock-5b kernel: mali fb000000.gpu: Incorrect firmware magic
Apr 19 21:27:35 rock-5b kernel: mali fb000000.gpu: Firmware initialization failed

in the output of journalctl -f. What do they mean? Are you getting those messages too?

it means that the firmware binary is not there. install this one.
https://aur.archlinux.org/packages/libmali-radxa-g610-bin

1 Like

The same lines still turn up after I installed the package using yay.

and another rock5 @ midstream6.2 :slight_smile:
I appreciate your work here. Thank you

Do you have any advice how to use radxa pwm cpu fan with midstream kernel?

I dont have a fan and i can not confirm this works but the idea with the fan control is, it reads the soc-thermal node as control input, and runs PWM1 accordingly.

If you take @amazingfate 's overlay here, i guess you need at least a new fragment here, setting the status of &pwm1 as “okay”, because by default the PWM1 node in the dts is disabled. I also did not chec if the actual driver for PWM needs porting or further attention but, my guess is should be ok.

1 Like

thank you for the links.
To be honest. I have no clue how to write a new fragment to get this working :frowning:

I will ask for this in topic
Time to get rid of these userspace pwm fan controll shit
because i don´t want to spam the best thread here :slight_smile:

My overlay works for legacy 5.10 kernel. I don’t use midstream kernel so I can’t test a working overlay for you. I find the devietree of midstream is different from the legacy one:


this explains the warning
node has a unit name, but no reg or ranges property pwm
you just need to adapt the node registers, or in simple words, copy the syntax of thermal stages from mainline and adapt to the overlay working on 5.10.
@Schnabulator thats one of the benefits of having rock5, it forces you to be a programmer :slight_smile:

1 Like

Has anyone noticed that when they try to run mpv, it’s stopped working?
It prints this error message:

mpv: error while loading shared libraries: libvidstab.so.1.1: cannot open shared object file: No such file or directory

I was able to get it to get it going again by:

ln /lib/libvidstab.so.1.2 /lib/libvidstab.so.1.1

yeah i know that, arch is changing libvidstab version time to time, and ffmpeg depends on libvidstab.

The fix is force rebuilding the ffmpeg-mpp after a clean ‘sudo pacman -Syu’, or create a symlink the new libvidstab to the old one as you have done.

and kernel configuration master :slight_smile:

# CONFIG_NFSD is not set

if you have patches i can just add them to the github. I think ZRAM module is also not enabled as a module, now nfsd, i have noticed that PWM1 node of the dts is also not activated. most likely midstream is not too much tuned for rock5b in general.

Yeah it isn’t in midstream by default… I didn’t spend much time playing with kernel conf to make it work.
Having the 8BG version and running some hungry servers for work, I can hardly do without RAM compression so I fallbacked to previous kernel for now.

I’m trying to get an overview on which packages I would need for a decent gnome desktop experience. So far I think it should be something like:

base iproute2 mkinitcpio openssh gnome networkmanager

linux-rockchip-rk3588-bin linux-rockchip-rk3588-bin-headers 
linux-firmware linux-api-headers

gnome xorg

ffmpeg4.4-mpp ffmpeg-mpp dri2to3-git gl4es-git mpp-git

mesa-panfork-git libmali-radxa-g610-bin mesa-utils

vulkan-swrast-panfork-git vulkan-mesa-layers-panfork-git opencl-mesa-panfork-git 
mesa-vdpau-panfork-git libva-mesa-driver-panfork-git

Am I missing something here, or are some of these packages only experimental?

I’m asking again, this time even more kindly :smiling_face_with_three_hearts:.

I just dont have the skills to create my own image for a nice desktop experience :blush:

it looks good to me, some of the packages could be dependencies of others (ie xorg) but yeah …
for me at least all you need is gnome to get a gnome experience :slight_smile: but i am a simple guy.

@Bruno may be you better keep it with armbian, arch wont bring anything new unless you really need arch.

Ok, great. I’ve added them to my public repo. They are now hosted pre-build and rebuild every week. Installing archlinux from scratch will go quite fast and easy this way.

1 Like

Has anyone here had trouble getting bluetooth to work on the Radxa Wireless A8 Module? I couldn’t get bluetoothctl to pickup devices. I tried following these instructions https://wiki.radxa.com/Rock5/linux/debian#BT_Tip:, but that seemed to make things more broken. The instructions must only work for Radxa’s Debian image.

Also when I boot my board it can have one of two IP addresses.

The fix for some Bluetooth Modules (A8, AX210, etc.):
sudo nano /etc/modprobe.d/blacklist.conf
then add these lines somewhere (at the bottom of the file is fine):

blacklist pgdrv
blacklist btusb
blacklist btrtl
blacklist btbcm
#blacklist btintel

Then press Ctrl+X, then Y.
sudo apt install bluez or bluetooth – not needed to install since latest armbian version
systemctl status bluetooth CTRL+ C
systemctl start bluetooth
Then reboot .