OrangePi5 video hardware acceleration

Hello
I have been a faitfull user od Dietpi for years now. It is simply the goto OS for SBCs or VM, but now I ran into a problem. I’m trying to use Frigate NVR on a OrangePi and I would like to use Dietpi for the OS. But since Dirtpi is very light weigth it seems to be missing drivers for hardware accelerated video decoding. I need /dev/video-enc0 and /dev/video-dec0. People run Frigate on OrangePi5 but everyone installs Joshua,s Ubuntu image for OPi5. I did it my self and it works great. That Ubuntu also has drivers for RKNN preinstalled. I would like to know how can I install these druvers to Dietpi?

Can you try to enable this device tree overlay: panthor-gpu

Add it to the overlays line in /boot/dietpiEnv.txt.

EDIT: You also need to adjust the overlay_prefix line to overlay_prefix=rockchip-rk3588. I really need to implement support for multiple prefixes, for those RK3588 boards, which have overlays with 3-4 different prefixes available, annoyingly :sweat_smile:.

Like this?

rootdev=UUID=53ccee89-f9e3-4685-936d-4e23ed78a21e
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=console=ttyFIQ0,1500000 console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=rockchip
overlay_prefix=rockchip-rk3588
overlays=panthor-gpu
user_overlays=

Yes!

Actually, Mesa 24.1 should have brought G610 support. And it (Mesa 24.2) is available via Bookworm backports. So for compatible userland libraries, this would likely be additionally needed:

cat << '_EOF_' > /etc/apt/preferences.d/dietpi-mesa
Package: src:mesa
Pin: release a=bookworm-backports
Pin-Priority: 500
_EOF_
apt upgrade

But likely applications like Chromium and FFmpeg would then also need to be compiled against them.