|
本帖最后由 jackeyt 于 2020-3-31 15:04 编辑
RK3399Pro开发板,运行rnkk_api,rockx等SDK均出错!
通过
打开NPU电源后,开发板上:lsusb- Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 005 Device 002: ID 2207:180a
- Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 007 Device 002: ID 2c7c:0125
- Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 002 Device 002: ID 058f:3894 Alcor Micro Corp.
- Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
可以看到:
- Bus 005 Device 002: ID 2207:180a
理论上来说,NPU已经上电成功了。此时,还打开了npu_transfer:
npu-transfer运行信息如下:
- I NPUTransfer: Starting NPU Transfer Proxy, Transfer version 1.9.8 (cab3961@2019-12-12T09:54:26), devid = 0123456789ABCDEF, pid = 10750:978
且在后台保持运行:
- ps aux|grep npu
- root 7825 0.1 0.0 103264 2912 pts/0 Sl 14:43 0:00 npu_transfer_proxy
但运行RKNN的DEMO时出现:./ssd_demo
- loading model...
- E NPUTransfer: Auto create transfer failed!
- E NPUTransfer: Create client failed!, ret = -1
- E NPUTransfer: Transfer interface open failed!, ret = -1
- E RKNNAPI: rknn_init, driver open fail! ret = -1(ERROR_IO)!
- rknn_init fail! ret=-3
- load_model error!!!
运行ROCKX的Demo时出现:
- rockx init(51): init module(11) error -1
- spec = local:transfer_proxy
- E NPUTransfer: Auto create transfer failed!
- E NPUTransfer: Create client failed!, ret = -1
- E NPUTransfer: Transfer interface open failed!, ret = -1
- E RKNNAPI: rknn_init, driver open fail! ret = -1!
- rockx load_model(47): rknn_init fail! ret=-3
- rockx init(51): init module(12) error -1
由上述可见,
查询文档,均说明- RKNN_ERR_DEVICE_UNAVAILABLE NPU 设备不可用
因此,求确认几个问题:1、看到NPU的USB ID是否确定NPU上电没问题?
2、如果查看librknn_api.so的版本?
3、如果查看NPU的固体版本?
4、如果查看NPU DRV的版本?
5、对于2.3.4的版本官方建议一致,有没有一个对照表?因为现版本更新较多,容易搞混!
|
|