rockchip-linux / rknn-toolkit2

BSD 3-Clause "New" or "Revised" License
891 stars 155 forks source link

RK3568提示驱动有问题 #49

Closed Zheng-Bicheng closed 2 years ago

Zheng-Bicheng commented 2 years ago

下载RKNN Toolkit Lite2后,按照手册安装。然后我下载了rknpu2,更新最新的驱动到/usr/lib。但是运行RKNN Toolkit Lite2自带的demo后提示错误如下: ` toybrick@debian10:~/Downloads/rknn_toolkit_lite2/examples/inference_with_lite$ python3 test.py --> Load RKNN model done --> Init runtime environment E RKNN: [04:05:28.147] failed to open rknpu module, need to insmod rknpu dirver! E RKNN: [04:05:28.147] failed to open rknn device! E Catch exception when init runtime! E Traceback (most recent call last): File "/home/toybrick/.local/lib/python3.7/site-packages/rknnlite/api/rknn_lite.py", line 148, in init_runtime self.rknn_runtime.build_graph(self.rknn_data, self.load_model_in_npu) File "rknnlite/api/rknn_runtime.py", line 838, in rknnlite.api.rknn_runtime.RKNNRuntime.build_graph Exception: RKNN init failed. error code: RKNN_ERR_FAIL

Init runtime environment failed ` 想问一下错误的原因是什么。使用的固件为toybrick最新的debian10固件,板子为toybrick的3568X

Zheng-Bicheng commented 2 years ago

问题已经解决,解决方案放在csdn( http://t.csdn.cn/agHx2 ) 了,需要用sudo命令来调用NPU才能驱动的起来。

kkiskkk commented 1 year ago

404了 所以要怎么解决。 请问 sudo运行哪个命令呢

LinoSun commented 1 year ago

404了 所以要怎么解决。 请问 sudo运行哪个命令呢

chenxinfeng4 commented 11 months ago

我也遇到相同问题,通过只能通过sudo运行。但这解决根本问题,为啥需要sudo?

gujiuren commented 1 month ago

404了 所以要怎么解决。 请问 sudo运行哪个命令呢

同问,怎么从根本上解决问题?

Zheng-Bicheng commented 1 month ago

404了 所以要怎么解决。 请问 sudo运行哪个命令呢

同问,怎么从根本上解决问题?

让系统工程师将底层设备树映射的设备文件权限修改为用户权限就可以用了。