I’m running Debian 11 on my Rock5 B with the following kernel:
Linux rock-5b 5.10.110-37-rockchip-g74457be0716d #rockchip SMP Mon Feb 6 09:18:21 UTC 2023 aarch64 GNU/Linux
The system is running fine and running some critical workloads for me. However, I would like to start using the NPU and I’m currently stuck because the kernel I’m currently running has no rknpu module available.
How can I build this kernel module? I would like to load this kernel module without having to start from a new image given the existing workload running on my rock5.
Thank you @avaf! Could be indeed.
Where should I add this configuration line? I could not find a single page on the internet referencing this.
Here is the error I get when trying to run the yolov5 demo:
thibault@rock-5b:~/rknpu2/examples/rknn_yolov5_demo/install/rknn_yolov5_demo_Linux$ ./rknn_yolov5_demo ../../model/RK3588/yolov5s-640-640.rknn ../../model/bus.jpg
post process config: box_conf_threshold = 0.25, nms_threshold = 0.45
Read ../../model/bus.jpg ...
img width = 640, img height = 640
Loading mode...
E RKNN: [20:42:36.283] failed to open rknpu module, need to insmod rknpu dirver!
E RKNN: [20:42:36.284] failed to open rknn device!
rknn_init error ret=-1
Thank you! It worked with sudo
I’m glad to know my NPU is working, however not so much that sudo is needed to use it…
Is it only for those compiled programs or will I need it too when calling from Python?
hello, i’m getting this error with ubuntu server on rockpi5:
libEGL warning: MESA-LOADER: failed to open rknpu: /usr/lib/dri/rknpu_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
my goal is to do headless opengl rendering. any hint how to fix this?
I Have the same problem with radxa-zero3_debian_bullseye_xfce_b6.
I checked with
zcat /proc/config.gz | grep NPU
, it showed that checked
# RKNPU
CONFIG_ROCKCHIP_RKNPU=y
CONFIG_ROCKCHIP_RKNPU_DEBUG_FS=y
# CONFIG_ROCKCHIP_RKNPU_PROC_FS is not set
# CONFIG_ROCKCHIP_RKNPU_FENCE is not set
# CONFIG_ROCKCHIP_RKNPU_SRAM is not set
CONFIG_ROCKCHIP_RKNPU_DRM_GEM=y
# end of RKNPU
I have followed radaxa tutorial to install radaxa os on nvme (https://docs.radxa.com/en/rock5/rock5b/getting-started/install-os/nvme) with kernel: rock-5b 5.10.110-15-rockchip
in rsetup there is no option to enable npu. Is there any other image compatible with nvme boot that allows enablement of NPU module?
I got back to this board after 1.5 of a year - but it seems still not mature enough in terms of basic useability