ROC-RK3588S-PC_Ubuntu20.04-Minimal运行rknpu2示例代码NUP报错
运行rknpu2示例代码报错,镜像是ROC-RK3588S-PC_Ubuntu20.04-Minimal-r21164_v1.0.0c_220621.7z,报错内容如下:firefly@firefly:~/work/rk/tools/rknpu2/examples/rknn_yolov5_demo/build/build_linux_aarch64$ ./rknn_yolov5_demo ../../model/RK3588/yolov5s-640-640.rknn ../../model/bus.jpg
post process config: box_conf_threshold = 0.50, nms_threshold = 0.60
Read ../../model/bus.jpg ...
img width = 640, img height = 640
Loading mode...
E RKNN: failed to open rknpu module, need to insmod rknpu dirver!
E RKNN: failed to open rknn device!
rknn_init error ret=-1然后打印dmesg | grep rknpu,日志如下:
firefly@firefly:~/work/rk/tools/rknpu2/examples/rknn_yolov5_demo/build/build_linux_aarch64$ dmesg | grep rknpu
[ 5.764123] RKNPU fdab0000.npu: RKNPU: rknpu iommu is enabled, using iommu mode
[ 5.764265] RKNPU fdab0000.npu: Looking up rknpu-supply from device tree
[ 5.765306] Initialized rknpu 0.7.2 20220428 for fdab0000.npu on minor 1
[ 5.766042] RKNPU fdab0000.npu: Looking up rknpu-supply from device tree
[ 5.766978] RKNPU fdab0000.npu: Looking up rknpu-supply from device tree
firefly@firefly:~/work/rk/tools/rknpu2/examples/rknn_yolov5_demo/build/build_linux_aarch64$ 求助{:4_121:}
本帖最后由 wx__zRD1P9 于 2022-7-10 09:33 编辑
执行dmesg | grep npu日志
dpkg -l | grepnpu 看一下 我测试了一下是可以的,Minimal 默认没有创建 firefly 用户,firefly 用户是自己创建的 ? can not open device 可能是权限的问题,试一下再 root 用户下运行 板蓝根 发表于 2022-7-11 11:24
我测试了一下是可以的,Minimal 默认没有创建 firefly 用户,firefly 用户是自己创建的 ? can not open de ...
谢谢,果然是权限问题,请问自己添加的用户需要给上哪些文件权限可以不用sudo或root权限正常运行NPU
页:
[1]