|
本帖最后由 lfb6054 于 2023-1-13 10:35 编辑
问题描述:rk1808M0通过USB插在rk3399(飞凌嵌入式ok3399)上,通过被动模式调用rk1808M0计算棒npu算力,使用以下代码、sdk和api,运行如下,发现无法检测到NPU设备。
root@Super:/home/RKNPUTools-rk33-mid-8.1-develop/rknn-api/Linux/rknn_api_sdk# ./rknn_ssd
E RKNNAPI: rknn_find_devices fail!
n_devices = 0
E NPUTransfer: Cannot connect to proxy: Connection refused
E RKNNAPI: rknn_init, driver open fail! ret = -4(ERROR_NO_DEVICE)!
E RKNNAPI: rknn_query, context = nullptr!
rknn_query fail! ret=-7
附件1:$ ifconfig
root@Super:/home/RKNPUTools-rk33-mid-8.1-develop/rknn-api/Linux/rknn_api_sdk# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.227 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::2924:81f9:4ff6:ccc1 prefixlen 64 scopeid 0x20<link>
ether de:8f:e2:3a:e3:cd txqueuelen 1000 (Ethernet)
RX packets 30602 bytes 2722137 (2.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8597 bytes 1644151 (1.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 24
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f8:e4:3b:1e:5c:6e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.180.1 netmask 255.255.255.0 broadcast 192.168.180.255
inet6 fe80::dfa1:b74e:8447:8dc6 prefixlen 64 scopeid 0x20<link>
ether 10:dc:b6:9f:b6:d0 txqueuelen 1000 (Ethernet)
RX packets 1324 bytes 87109 (87.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 945 bytes 143105 (143.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 664 bytes 56674 (56.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 664 bytes 56674 (56.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
附件2:$ lsusb
root@Super:/home/RKNPUTools-rk33-mid-8.1-develop/rknn-api/Linux/rknn_api_sdk# lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 003 Device 005: ID 2207:0018
Bus 003 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
附件3:$ ./npu_transfer_proxy devicesroot@Super:/home/RKNPUTools-rk33-mid-8.1-develop/npu_transfer_proxy/linux-aarch64# ./npu_transfer_proxy devices
List of ntb devices attached
TM01808422040001C eba63fc5 USB_DEVICE
附件4:$ adb devicesroot@Super:/home/RKNPUTools-rk33-mid-8.1-develop/npu_transfer_proxy/linux-aarch64# adb devices
List of devices attached
TM01808422040001C device
附件5:$ ping 192.168.180.8
root@Super:/home/RKNPUTools-rk33-mid-8.1-develop/rknn-api/Linux/rknn_api_sdk# ping 192.168.180.8
PING 192.168.180.8 (192.168.180.8) 56(84) bytes of data.
64 bytes from 192.168.180.8: icmp_seq=1 ttl=64 time=0.710 ms
64 bytes from 192.168.180.8: icmp_seq=2 ttl=64 time=0.512 ms
64 bytes from 192.168.180.8: icmp_seq=3 ttl=64 time=0.578 ms
^C
--- 192.168.180.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.512/0.600/0.710/0.082 ms
附件六:ssh toybrick@192.168.10.8 能够登录。
求指条明路:
1、想知道这种方案能否实现?
2、以上报错有何解决方案?
3、如果该方案可以实现,要用那个版本的C++ API?
|
|