Archlinux on Rock5b

just add

fdtoverlays /boot/dtbs/linux-aarch64-rockchip-bsp6.1-joshua-git/rockchip/overlay/rk3588s-mali.dtbo

to your /boot/extlinux/extlinux.conf

I’ve been against including Panthor for a while. This is because I would have users open a lot of new issues related to the GPU and I don’t have the GPU driver knowledge to maintain and fix new issues. From my understanding, Panthor still has a lot of problems. Overall this would create a lot more work for me.

I might create a Ubuntu 24.10 image with Panthor.

3 Likes

Is there a way to control the fan curve on arch? It switches between 0% and a 100% at around 53 Celsius. The only solution that I found that kinda works is if I set the policy of thermal_zone0 to user_space and then echo in the desired rpm. That isn’t ideal but I can’t figure out how to set a fan curve.

@Spooky Yes, but please do not do anything too drastic to 22.04. That is th only OS actually works with my beloved plugin. But I do remember an option where I could freeze updates on some level with a script on the Wiki if I remember correctly. Much like Armbian’s ’ “freeze” option.

@AbduEhabI could bet that I saw an rsetup/armbian-config like option in the new ACU och Arch from @kwankiu. I solved it by just opting for the standard Radxa/OkDO (in Europe) passive cooler as the fan was driving me crazy, had ticking noises even though there wasn’t any wires in the way as usually is the case. And absolutely no difference wahtsoever in temperature on neither idle or load. The down side of the standard passive case is that it should have gone through some more opinionnated people as the GPIO:s are barely exposed, the front and back-side can’t be used because of space for cables were lackiing amongst other things leaving it weirdly exposed. And by design, if they are missing, you cannot really get the upper part to mount as they were in symbiosis, so only option was using the bottom holes which covering the ssd and making the whole construction quite odd, especially during disassembly.

There appears to be a problem installing kodi on the 7ji repo. It does not compile. Can someone please direct me to another source?

I attempted to install kodi-mpp-git on the agr and I get this error:

Blockquote
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Java (missing: Java_JAVA_EXECUTABLE Runtime)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindJava.cmake:313 (find_package_handle_standard_args)
xbmc/interfaces/swig/CMakeLists.txt:35 (find_package)

:: Issue has been resolved. I had to install jdk17-openjdk.

Hi,
what is the best way to launch kodi? With the latest kodi-mpp and ffmpeg-mpp i still get a bit of a latency issue. Once every 30seconds, the sound cuts out for a split second. That’s just from running kodi in Wayland. Kodi-rpi doesn’t give me this issue. Perhaps I’m just not launching it correctly. How do you launch kodi to get the best performance?

Kodi standalone service

Isn’t that already included? You can boot directly into kodi from login screen. How is this different? When I boot into GBM, I can’t seem to reboot the system. It only reboots kodi. Is there a way to fix this?

::located a solution:

:: i was wrong about the system update fix. I continue to have audio cutting out about every 20-30 seconds for a split second. The only way I found that resolves this is by running kodi-mpp in GBM and not from desktop.

1 Like

I have located a slightly better fix. Ffmpeg-mpp from 7ji repo appears to have slightly less performance than ffmpeg-rockchip. This package appears to fix the latency issue I was having for the most part. The sound will cut out but less often when running Kodi from DE.

I have found the fix finally to the latency issue. One PKG in particular I had built/ installed from AGR that caused the latency. I have reverted the package and installed directly from 7JI repo instead and it worked! I no longer have to run Kodi in GBM to have flawless video/audio stream. The PKG that was the culprit is:
“Mesa-panfork-git”

Sorry for rambling. I’m glad I had finally figured it out.

::I have located the issue. My SBC is hooked into a audio/video receiver and it appears I may have a problem with my receiver and not with the device itself. Once I plug HDMI directly to the TV, the audio glitch is absent and everything works as it should.

2 Likes

Can someone please help!
How do I remove the (old r164485.832c3c7117e-1) mesa-panfork-git package (compiled from agr) and install a new package from aur (7Ji) without breaking the system???
pacman -Rdd Mesa-panfork-git
and then
yay -S Mesa-panfork-git (7Ji)
should break the system

that should work.

Here are some new developments:

1) sunshine-mpp-git : I have implemented mpp support to sunshine so now you can not stream your device desktop with hardware acceleartion. I use it for remote connecting to the SBC and it works like a charm. Available in agr repo and 7ji repo

2) acesteam-media-bin: I have wrapped around the android acestream-media apk, and with a lot of trickery it runs on linux arm. Available only in agr repo

3) firefox-mpp: I have implemented mpp support to firefox, so that it does the decoding using ffmpeg-rockchip and uses hardware decoding. The results are great, it handles 4k@60 without considerable issues, with some overclocking i have a belief that it might even handle 8k@24 in rock5b. av1, h264, vp8 and vp9 decoding is supported. hevc is not supported in firefox at all, therefore hardware hevc is not implmented. Available only in agr repo

4) firefox-aarch64-mpp: This is just a cross-compiling package that generates aarch64 packages from x86_64 host with lots of hacks. Comes with no guarantee to build, you might try it if you get lucy. Available only in agr repo

5) iwlwifi-backport-dkms-git & Wifi 7 support : I have also created a dkms package that provides latest intel wifi driver & firmware support on BSP. I have tested to make it work with BE200 wifi-7 chipset. So yes, wifi 7 is possible with rock5b. In order this dkms module to be buildable, the kernel must be compiled in a specific way. I have created 1) 2) PRs to @Spooky’s kernel, when it is merged you can use the dkms module with this kernel. Until then you can use linux-aarch64-rockchip-bsp6.1-joshua-git in agr repo (the one in the 7ji repo does not have the patchset). iwlwifi-backport-dkms-git is also only available in agr repo

6) Intel BE200 bluetooth support: I created a PR to @Spooky’s kernel, when it is merged you can use the feature with the kernel, Until then you can use linux-aarch64-rockchip-bsp6.1-joshua-git in agr repo (the one in the 7ji repo does not have the patchset).

Binary package distribution of firefox-mpp in 7ji repo:
Firefox-mpp is quite capable so it might be very useful to distribute this without having to compile yourselves. The owner of the @7ji repo is ok with it, but i personally can only commit that i can make the required patchset maintained for the upstream firefox, maintaining the package at the same time is too much of burden i can not handle.

If you think you can contribute on maintaining firefox-mpp package, please consent your support at this github issue, so that binary packages of firefox-mpp can be distributed.

1 Like

I dont see kodi on the 7ji repo anymore. Will this not be supported anymore? Also I dont see firefox-mpp in the agr. Not sure if it has something to do with my end?

::Update- I ran the script below on AGR and it was able to update the list. I now see firefox:
agr sync --noconfirm

Could you try upgrading agr itself

‘agr update --agr’

Then may be sync once again…

Kodi patches were updated but i did not upfate the hashes of them, may be that was the reason 7ji could not build them…

Everything seems to be breaking down with ffmpeg-rockchip and mpv with recent updates. Had to hold x265 to 3.6-1 and symlink old versions of some libraries[1], but then it breaks compatiblity with ffmpeg4.4, which is required by vlc, which is required by phonon-qt6-vlc, which on the other hand is required by gwenview and okular.

[1]

/usr/lib/libglslang-default-resource-limits.so.15.0.0 to /usr/lib/libglslang-default-resource-limits.so.14
/usr/lib/libSPIRV.so.15.0.0 to /usr/lib/libSPIRV.so.14

In addition there are the earlier problems with having to revert some commits to mpv to make hardware decoding work at all anymore [FFmpeg] Introduce FFmpeg-Rockchip for hyper fast video transcoding via CLI

yep things break down when someone does not maintain, i had device issues lately so can not work on it.

you can downgrade to to mpv 0.38 with downgrade tool.

I have my new device to work on so i could maintain the packages a little bit:

Fixed: Kodi-mpp-git
Fixed: Sunshine-mpp-git (needs further port to ffmpeg7)
Fixed: A small versioning issue on Joshua Kernel package (Joshua has merged to BE200 related patches so latest package should work together with BE200 wifi7 dongle.)

I dont plan to fork mpv to support mpp yet, it is really time consuming to maintain all those mpp related forks just because rokchip does not fix their licensing issue and we can not mainline ffmpeg work to mainline ffmpeg. But yeah it is what it is.

Another great news is, now with Kodi-mpp on Wayland it is possible to render 10bit HDR content directly. I have also tested 4K HDR content in kodi with youtube addon, it works flawlessly, colors are washed out because i do not have an HDR screen, someone with better equipment can enjoy it…

Mesa has implemented this feature lately in to the mainline, you can test it out with mesa-panvk-git package. Soon it will be a part of main mesa package…

Before this it was only possible to get true HDR with GBM mode when rendering was direct to plane. Now it should be possible in all EGL based video rendering options, (possibly includes mpv when it works…)

3 Likes

I have the problem to compile kodi-mpp-git with agr.
Can you please add the binary to the 7ji repository.
Thanks in advance.
Uli