ame 发表于 2021-6-25 16:09:06

rk3568J Init runtime environment failed!

rk3568J 开发版,没有找到对应npu驱动的操作手册,按3399pro的方式,安装了1.6 版本的 rknn-toolkit,模型转换成功,但是运行推理test的时候,报错
--> Init runtime environment
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 815, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 162, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_runtime.py", line 269, in rknn.api.rknn_runtime.RKNNRuntime._load_library
E   File "/usr/lib/python3.5/ctypes/__init__.py", line 364, in __getattr__
E   func = self.__getitem__(name)
E   File "/usr/lib/python3.5/ctypes/__init__.py", line 369, in __getitem__
E   func = self._FuncPtr((name_or_ordinal, self))
E AttributeError: /usr/lib/librknn_runtime.so: undefined symbol: rknn_get_memory_detail_len

zyk 发表于 2021-6-25 16:45:38

RKNN-Toolkit暂不支持在rk356x上运行,预计7月份会更新支持的版本

aruen 发表于 2021-6-29 18:29:51

rk3568J 开发版Android11如何安装rknpu dirver?

jackhao163com 发表于 2021-6-30 10:31:04

ubtuntu版本的npu driver 是在哪获取? 这个是android 的:https://pan.baidu.com/s/1eALrnlIoaeWRDzhqfvjMoQ

aruen 发表于 2021-6-30 14:39:33

jackhao163com 发表于 2021-6-30 10:31
ubtuntu版本的npu driver 是在哪获取? 这个是android 的:https://pan.baidu.com/s/1eALrnlIoaeWRDzhqfvjM ...

提取码是多少?

jackhao163com 发表于 2021-6-30 15:26:16

aruen 发表于 2021-6-30 14:39
提取码是多少?

1234

aruen 发表于 2021-7-1 09:56:00

升级完Android的固件还是找不到rknpu
1|rk3568_firefly_aioj:/vendor/lib/modules # lsmod
Module                  SizeUsed by
bcmdhd               16015360

insmod也是报错
1|rk3568_firefly_aioj:/vendor/lib/modules # insmod rknpu-clang.ko
insmod: failed to load rknpu-clang.ko: Exec format error
1|rk3568_firefly_aioj:/vendor/lib/modules # insmod rknpu.ko
insmod: failed to load rknpu.ko: Invalid argument

logcat输出:
07-01 01:45:32.974 W/rknpu   (    0): disagrees about version of symbol set_user_nice
07-01 01:45:32.974 W/rknpu   (    0): Unknown symbol set_user_nice (err -22)
07-01 01:45:32.974 W/rknpu   (    0): disagrees about version of symbol _dev_info
07-01 01:45:32.974 W/rknpu   (    0): Unknown symbol _dev_info (err -22)
07-01 01:45:32.975 W/rknpu   (    0): disagrees about version of symbol _dev_err
07-01 01:45:32.975 W/rknpu   (    0): Unknown symbol _dev_err (err -22)
07-01 01:45:32.975 W/rknpu   (    0): disagrees about version of symbol _dev_warn
07-01 01:45:32.975 W/rknpu   (    0): Unknown symbol _dev_warn (err -22)
07-01 01:45:32.975 W/rknpu   (    0): disagrees about version of symbol dev_printk

jackhao163com 发表于 2021-7-1 15:32:38

aruen 发表于 2021-7-1 09:56
升级完Android的固件还是找不到rknpu
1|rk3568_firefly_aioj:/vendor/lib/modules # lsmod
Module      ...

安装readme操作

aruen 发表于 2021-7-1 17:11:08

jackhao163com 发表于 2021-7-1 15:32
安装readme操作

是按照readme操作的,还是找不到npu驱动!

aruen 发表于 2021-7-1 17:22:08

jackhao163com 发表于 2021-7-1 15:32
安装readme操作

127|rk3568_firefly_aioj:/vendor/lib/modules # dmesg |grep rknpu
[    3.288388] rknpu: disagrees about version of symbol set_user_nice
[    3.288417] rknpu: Unknown symbol set_user_nice (err -22)
[    3.288539] rknpu: disagrees about version of symbol _dev_info
[    3.288549] rknpu: Unknown symbol _dev_info (err -22)
[    3.288594] rknpu: disagrees about version of symbol _dev_err
[    3.288603] rknpu: Unknown symbol _dev_err (err -22)
[    3.288672] rknpu: disagrees about version of symbol _dev_warn
[    3.288681] rknpu: Unknown symbol _dev_warn (err -22)
[    3.288726] rknpu: disagrees about version of symbol dev_printk
[    3.288731] rknpu: Unknown symbol dev_printk (err -22)
[    3.320988] rknpu: disagrees about version of symbol module_layout
[ 1783.471207] rknpu: disagrees about version of symbol module_layout
[ 1889.005890] rknpu: disagrees about version of symbol module_layout
[ 1916.252350] rknpu: disagrees about version of symbol set_user_nice
[ 1916.252389] rknpu: Unknown symbol set_user_nice (err -22)
[ 1916.252520] rknpu: disagrees about version of symbol _dev_info
[ 1916.252533] rknpu: Unknown symbol _dev_info (err -22)
[ 1916.252585] rknpu: disagrees about version of symbol _dev_err
[ 1916.252596] rknpu: Unknown symbol _dev_err (err -22)
[ 1916.252674] rknpu: disagrees about version of symbol _dev_warn
[ 1916.252684] rknpu: Unknown symbol _dev_warn (err -22)
[ 1916.252729] rknpu: disagrees about version of symbol dev_printk
[ 1916.252739] rknpu: Unknown symbol dev_printk (err -22)
[ 2506.885651] rknpu: disagrees about version of symbol set_user_nice
[ 2506.885684] rknpu: Unknown symbol set_user_nice (err -22)
[ 2506.885815] rknpu: disagrees about version of symbol _dev_info
[ 2506.885827] rknpu: Unknown symbol _dev_info (err -22)
[ 2506.885880] rknpu: disagrees about version of symbol _dev_err
[ 2506.885891] rknpu: Unknown symbol _dev_err (err -22)
[ 2506.885968] rknpu: disagrees about version of symbol _dev_warn
[ 2506.885974] rknpu: Unknown symbol _dev_warn (err -22)
[ 2506.886021] rknpu: disagrees about version of symbol dev_printk
[ 2506.886031] rknpu: Unknown symbol dev_printk (err -22)
[ 2514.537136] rknpu: disagrees about version of symbol module_layout
[ 2525.218097] rknpu: disagrees about version of symbol set_user_nice
[ 2525.218156] rknpu: Unknown symbol set_user_nice (err -22)
[ 2525.218311] rknpu: disagrees about version of symbol _dev_info
[ 2525.218328] rknpu: Unknown symbol _dev_info (err -22)
[ 2525.218389] rknpu: disagrees about version of symbol _dev_err
[ 2525.218403] rknpu: Unknown symbol _dev_err (err -22)
[ 2525.218568] rknpu: disagrees about version of symbol _dev_warn
[ 2525.218578] rknpu: Unknown symbol _dev_warn (err -22)
[ 2525.218647] rknpu: disagrees about version of symbol dev_printk
[ 2525.218661] rknpu: Unknown symbol dev_printk (err -22)
[ 4470.021143] rknpu: disagrees about version of symbol set_user_nice
[ 4470.021204] rknpu: Unknown symbol set_user_nice (err -22)
[ 4470.021457] rknpu: disagrees about version of symbol _dev_info
[ 4470.021476] rknpu: Unknown symbol _dev_info (err -22)
[ 4470.021567] rknpu: disagrees about version of symbol _dev_err
[ 4470.021581] rknpu: Unknown symbol _dev_err (err -22)
[ 4470.021676] rknpu: disagrees about version of symbol _dev_warn
[ 4470.021690] rknpu: Unknown symbol _dev_warn (err -22)
[ 4470.021755] rknpu: disagrees about version of symbol dev_printk
[ 4470.021770] rknpu: Unknown symbol dev_printk (err -22)
[ 4483.843211] rknpu: disagrees about version of symbol module_layout
页: [1] 2
查看完整版本: rk3568J Init runtime environment failed!