Skip to content

Rockchip

Install

I try - armbian: Base on ubuntu 24.04 - Ubuntu for various Rockchip single board computers - Radxa document center Downloads for the Radxa Zero 3 6.1 Kernel: radxa-zero3_bookworm_kde_b1

NPU Driver

Work only on Debian Desktop image kernel 6.1 from radxa Official image

user: radxa, pass: radxa

Flash USB

Try usbimager to flush the image


RKNN Installation

radxa doc center

NPU Driver Configuration

Run sudo rsetup

Select:

Overlays -> Manage overlays -> Enable NPU, then reboot the system.

alt text


GStreamer

1
2
3
4
5
6
7
gst-inspect-1.0 | grep mpp
rockchipmpp:  mpph264enc: Rockchip Mpp H264 Encoder
rockchipmpp:  mpph265enc: Rockchip Mpp H265 Encoder
rockchipmpp:  mppjpegdec: Rockchip's MPP JPEG image decoder
rockchipmpp:  mppjpegenc: Rockchip Mpp JPEG Encoder
rockchipmpp:  mppvideodec: Rockchip's MPP video decoder
rockchipmpp:  mppvpxalphadecodebin: VP8/VP9 Alpha Decoder

Pipe test

radxa source
1
2
3
4
5
6
7
8
export DEST_IP="10.100.102.15"

gst-launch-1.0 -v   videotestsrc is-live=true pattern=ball ! \
video/x-raw,width=1280,height=720,framerate=30/1,format=NV12 ! \
mpph265enc ! \
h265parse config-interval=1 ! \
rtph265pay pt=96 ! \
udpsink host=$DEST_IP port=5000
pc side
1
2
3
4
5
gst-launch-1.0 -v   udpsrc port=5000 caps="application/x-rtp,media=video,encoding-name=H265,payload=96" ! \
rtph265depay ! \
h265parse ! \
avdec_h265 ! \
autovideosink sync=false

high cpu

There is no different between

gst-launch-1.0 videotestsrc ! x265enc ! fakesink
gst-launch-1.0 videotestsrc ! mpph265enc ! fakesink

gpio

alt text alt text


Reference