Toybrick

楼主: gssg123

rk1808节点启动失败

bobby_jiang

高级会员

积分
546
21#
发表于 2020-6-4 16:16:56 | 只看该作者
[root@rk1808 ~]# vi /usr/bin/start_rknn.sh

#!/bin/sh

export VIV_VX_ENABLE_SWTILING_PHASE1=1
export VIV_VX_ENABLE_SWTILING_PHASE2=1
export TRANSFER_USB_DEVICE_CONFIG_BYPASS=1
export VSI_NN_LOG_LEVEL=5
export VIV_VX_DEBUG_LEVEL=5
export RKNN_SERVER_LOGLEVEL=5

export RKNN_SERVER_PLUGINS='/usr/lib64/npu/rknn/plugins/'

while true
do
  sleep 1
  rknn_server > /var/log/rknn.log
done


回复

使用道具 举报

gssg123

注册会员

积分
111
22#
 楼主| 发表于 2020-6-4 16:31:03 | 只看该作者
bobby_jiang 发表于 2020-6-4 16:16
[root@rk1808 ~]# vi /usr/bin/start_rknn.sh

#!/bin/sh

这个吗?
[root@rk1808 ~]# tail -f /var/log/rknn.log
start rknn server, version:1.3.2 (f113d64 build: 2020-04-23 09:35:26)
1 NNPluginManager loadPlugins(41): No plugin find!
I NPUTransfer: Starting NPU Transfer Server, Transfer version 2.0.0 (8f9ebbc@2020-04-03T09:12:43)
回复

使用道具 举报

bobby_jiang

高级会员

积分
546
23#
发表于 2020-6-4 16:37:19 | 只看该作者
pc上把程序跑起来啊,跑起来就有log输出了
回复

使用道具 举报

gssg123

注册会员

积分
111
24#
 楼主| 发表于 2020-6-4 16:52:18 | 只看该作者
bobby_jiang 发表于 2020-6-4 16:37
pc上把程序跑起来啊,跑起来就有log输出了

节点起不来,报主题帖里面的错误
回复

使用道具 举报

raul

中级会员

积分
235
25#
发表于 2020-6-4 17:16:49 | 只看该作者
麻烦提供下你的rknn模型,我们debug看下。
回复

使用道具 举报

gssg123

注册会员

积分
111
26#
 楼主| 发表于 2020-6-4 20:52:16 | 只看该作者
raul 发表于 2020-6-4 17:16
麻烦提供下你的rknn模型,我们debug看下。

个人觉得和模型无关,先给你看一下运行官方demo报错情况吧,使用的demo是http://repo.rock-chips.com/rk1808/mobilenet_v1.tar.gz
--> config model
done
--> Loading model
done
--> Building model
W The target_platform is not set in config, using default target platform rk1808.
W:tensorflow:From /home/johnny/.local/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py:3632: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
W:tensorflow:From /home/johnny/.local/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py:1941: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, use
    tf.py_function, which takes a python function which manipulates tf eager
    tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
    an ndarray (just call tensor.numpy()) but having access to eager tensors
    means `tf.py_function`s can use accelerators such as GPUs as well as
    being differentiable using a gradient tape.
   
done
--> Export RKNN model
done
--> Init runtime environment
E Execute ntp_transfer_proxy devices failed, ret code: 1. /home/johnny/.local/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/johnny/.local/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy)

E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1042, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 168, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_platform_utils.py", line 272, in rknn.api.rknn_platform_utils.start_ntp_or_adb
E   File "rknn/api/rknn_platform_utils.py", line 136, in rknn.api.rknn_platform_utils.weather_device_use_ntb
E Exception: Init runtime environment failed!
E Current device id is: None
E Devices connected:
E Execute ntp_transfer_proxy devices failed, ret code: 1. /home/johnny/.local/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/johnny/.local/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy)

Traceback (most recent call last):
  File "test.py", line 66, in <module>
    ret = rknn.init_runtime(target='rk1808')
  File "/home/johnny/.local/lib/python3.5/site-packages/rknn/api/rknn.py", line 378, in init_runtime
    adb_devices, ntb_devices = self.rknn_base.list_devices()
  File "rknn/api/rknn_base.py", line 1006, in rknn.api.rknn_base.RKNNBase.list_devices
  File "rknn/api/rknn_platform_utils.py", line 328, in rknn.api.rknn_platform_utils.get_ntb_devices
RuntimeError
回复

使用道具 举报

raul

中级会员

积分
235
27#
发表于 2020-6-5 08:59:56 | 只看该作者
gssg123 发表于 2020-6-4 20:52
个人觉得和模型无关,先给你看一下运行官方demo报错情况吧,使用的demo是http://repo.rock-chips.com/rk1 ...

这个错和前面的错是不一样的呀。这个错是因为gcc版本不够的原因导致的。要把gcc升级到5.5.0
回复

使用道具 举报

gssg123

注册会员

积分
111
28#
 楼主| 发表于 2020-6-5 10:09:15 | 只看该作者
raul 发表于 2020-6-5 08:59
这个错和前面的错是不一样的呀。这个错是因为gcc版本不够的原因导致的。要把gcc升级到5.5.0 ...

那我们先升级一下gcc,你把邮箱给我一下吧,模型发你邮箱
回复

使用道具 举报

bobby_jiang

高级会员

积分
546
29#
发表于 2020-6-5 10:50:41 | 只看该作者
bobby.jiang@rock-chip.com
回复

使用道具 举报

gssg123

注册会员

积分
111
30#
 楼主| 发表于 2020-6-5 10:57:41 | 只看该作者
bobby_jiang 发表于 2020-6-5 10:50
bobby.jiang@rock-chip.com

已发,请注意查收
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表