|
一、已经准备的信息1、将 https://github.com/rockchip-toybrick/RKTools 依赖放入了RK3588的环境中
2、lsusb 查看有相关的驱动
root@RK3588:/sda/RK1808# lsusb
Bus 005 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 008 Device 009: ID 2207:0018
Bus 008 Device 001: ID 1d6b:0003
Bus 006 Device 001: ID 1d6b:0003
Bus 004 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 007 Device 001: ID 1d6b:0002
二、【rk3588开发板运行】报错如下:
1、核心代码片段:
rknn_devices_id devids;
ret = rknn_find_devices (&devids);
printf("n_devices = %d\n", devids.n_devices);
for(int i=0; i<devids.n_devices; i++) {
printf("%d:
type=%s, id=%s\n", i, devids.types, devids.ids);
}
2、RK3588运行报错信息:
root@RK3588:/sda/RK1808# ./jenkins_upload_wucp_20250812144355
E RKNNAPI: rknn_find_devices fail!
n_devices = 0
三、尝试的方法
1、找到帖子,有的说需要运行 npu_transfer_proxy, 有些说默认会运行。
(1)我手动运行npu_transfer_proxy,会出现自动退出的情况。
(2)top 或者ps ef等命令,均没有查看到npu_transfer_proxy有运行
(3)运行结果:
root@RK3588:/sda/RK1808# npu_transfer_proxy
I NPUTransfer: Starting NPU Transfer Proxy, Transfer version 2.0.0 (8f9ebbc@2020-04-03T09:12:43), devid = TM018086241200462, pid = 5210:5064
root@RK3588:/sda/RK1808#
2、帖子有说过,放到系统的bin目录中,试了一样的效果。
3、为了试探是不是RK1808算力棒没配好,我使用ubuntu22.04系统按照以下步骤,跑RKTools 成功得到结果:
(1)susb查看,驱动加载没问题
(2)手动运行npu_transfer_proxy,没有出现直接退出的情况
(3)运行编译好的rknn_ssd,正常得到结果:
oem@oem:~/test/RK1808/RKNPUTools/rknn-api/Linux/rknn_api_sdk/build$ ./rknn_ssd D RKNNAPI: ==============================================D RKNNAPI: RKNN VERSION RKNNAPI: API: 1.6.1 (00c4d8b build: 2021-03-15 16:31:44)D RKNNAPI: DRV: 1.7.1 (0cfd4a1 build: 2021-12-10 09:43:11)D RKNNAPI: ==============================================validCount: 26person @ (0, 600) (0, 600)person @ (0, 600) (0, 600)person @ (0, 600) (0, 600)person @ (0, 600) (0, 600)person @ (0, 600) (0, 600)car @ (0, 600) (0, 600)car @ (0, 600) (0, 600)car @ (0, 600) (0, 600)person @ (0, 600) (0, 600)person @ (0, 663) (0, 663)person @ (0, 663) (0, 663)person @ (0, 663) (0, 663)person @ (0, 663) (0, 663)person @ (0, 663) (0, 663)person @ (0, 663) (0, 663)person @ (0, 726) (0, 726)person @ (0, 726) (0, 726)person @ (0, 726) (0, 726)person @ (0, 660) (0, 660)bicycle @ (0, 780) (0, 780)bicycle @ (-2147483648, 780) (-2147483648, 780)bicycle @ (0, 780) (0, 780)bicycle @ (0, 780) (0, 780)bicycle @ (0, 780) (0, 780)bicycle @ (0, 780) (0, 780)bicycle @ (0, 780) (0, 780)write out.jpg succ!
|
|