机器测试提示
E/NPUTransfer: Cannot connect to proxy: No such file or directory
E/RKNNAPI: rknn_init, driver open fail! ret = -4!
看似驱动有问题。
重新下载了 http://repo.rock-chips.com/rk1808/ 下的
http://repo.rock-chips.com/rk180 ... /android-arm64-v8a/
http://repo.rock-chips.com/rk1808/rknn-api/Android/
adb push npu_transfer_proxy /data/local/tmp/npu_transfer_proxy
adb shell进rk设备,修改权限,执行 ./npu_transfer_proxy&
再用android demo
http://repo.rock-chips.com/rk1808/rknn-api/Android/rk_ssd_demo/
测试,还是提示
2017-01-01 22:21:21.476 3336-3336/? E/NPUTransfer: Cannot connect to proxy: No such file or directory
2017-01-01 22:21:21.476 3336-3336/? E/RKNNAPI: rknn_init, driver open fail! ret = -4(ERROR_NO_DEVICE)!
2017-01-01 22:21:21.476 3336-3336/? E/rkssd4j: rknn_init fail! ret=-3
lsusb能看到有这个设备
Bus 005 Device 002: ID 2207:0018
1808连接到本机windows,网卡共享。ssh到1808上执行命令升级固件。
固件升级到1.7.0了,再拷贝RKNPUTools\npu_transfer_proxy\android-arm64-v8a\npu_transfer_proxy并启动,再用Android\rk_ssd_demo测试,还是同样的错误
2017-01-01 20:15:05.431 4998-4998/com.rockchip.gpadc.ssddemo E/NPUTransfer: Cannot connect to proxy: No such file or directory
2017-01-01 20:15:05.431 4998-4998/com.rockchip.gpadc.ssddemo E/RKNNAPI: rknn_init, driver open fail! ret = -4(ERROR_NO_DEVICE)!
2017-01-01 20:15:05.431 4998-4998/com.rockchip.gpadc.ssddemo E/rkssd4j: rknn_init fail! ret=-3
后来又 管理员启动npu_transfer_proxy后可以正常调用了。
(
adb shell
cd /data/local/tmp
su
./npu_transfer_proxy &
)
中间换过几个版本的npu_transfer_proxy,也到1808上刷过固件,不知道哪个操作起作用了。