系统为buildroot的NAND Flash,板子是RV1106 MAX版,在板子上运行yolov5示例,报错如下是什么问题:
现在是一直在这不动是为啥呢
已经运行过RkLunch-stop.sh了报错Segmentation fault
您好 ,第一个图片根据您的日志我目前无法判断是哪里出问题
Code: Select all
# ./luckfox_rtsp_yolov5
index=0, name=images, n_dims=4, dims=[1, 640, 640, 3], n_elems=1228800, size=1228800, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922
index=0, name=output0, n_dims=4, dims=[1, 80, 80, 255], n_elems=1632000, size=1632000, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922
index=1, name=286, n_dims=4, dims=[1, 40, 40, 255], n_elems=408000, size=408000, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922
index=2, name=288, n_dims=4, dims=[1, 20, 20, 255], n_elems=102000, size=102000, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922
model is NHWC input fmt
model input height=640, width=640, channel=3
init rknn model success!
load lable ./model/coco_80_labels_list.txt
rkaiq log level ff0
ID: 0, sensor_name is m00_b_sc3336 4-0030, iqfiles is /etc/iqfiles
rk_aiq_uapi2_sysctl_init/prepare succeed
rk_aiq_uapi2_sysctl_start succeed
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
log_file = (nil)
RTVersion 12:00:48-766 {dump :064} ---------------------------------------------------------
RTVersion 12:00:48-767 {dump :065} rockit version: git-8cb4d25b8 Tue Feb 28 11:12:39 2023 +0800
RTVersion 12:00:48-768 {dump :066} rockit building: built- 2023-02-28 15:23:19
RTVersion 12:00:48-768 {dump :067} ---------------------------------------------------------
(null) 12:00:48-768 {log_level_init :203}
please use echo name=level > /tmp/rt_log_level set log level
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null) 12:00:48-768 {read_log_level :093} text is all=4
(null) 12:00:48-769 {read_log_level :095} module is all, log_level is 4
RTIsp3x 12:00:48-772 {ispInitDevice :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x 12:00:48-773 {ispInitDevice :211} sensor_index = 0
(null) 12:00:48-774 {monitor_log_level :144} #Start monitor_log_level thread, arg:(nil)
RTIsp3x 12:00:48-779 {ispInitDevice :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x 12:00:48-779 {ispInitDevice :211} sensor_index = 0
[INFO rtsp_demo.c:280:rtsp_new_demo] rtsp server demo starting on port 554
[DEBUG rtsp_demo.c:480:rtsp_new_session] add session path: /live/0
rtsp streamq_alloc size is 1753484
vi_dev_init
RKViDev 12:00:48-786 {vi_set_dev_attr :440} VI_DEV_ATTR_S all parameter reserved
=== VI ATTRS INFO: ===
devId : 0
chnId : 0
buffcnt: 0
buffSize: 0
width: 0
height: 0
Maxwidth: 0
Maxwidth: 0
streaming: 0
RKViChn 12:00:48-788 {prepareRuntime :334} ---------------------------------------------------------
RKViChn 12:00:48-788 {prepareRuntime :336} vi version: 1.86, name:vvi
RKViChn 12:00:48-789 {prepareRuntime :337} rockit-ko version: vmpi:fb2eed2be49e
RKViChn 12:00:48-789 {prepareRuntime :338} rockit-ko building: -2023-02-09-11:04:49
RKViChn 12:00:48-789 {prepareRuntime :339} ---------------------------------------------------------
RKViChn 12:00:48-790 {prepareRuntime :358} mb pool create success, MBCnt= 2
cmpi 12:00:48-790 {createRuntime :546} [non-WRAP MODE]: buff size = 518400
RTIsp3x 12:00:48-792 {ispInitDevice :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x 12:00:48-793 {ispInitDevice :211} sensor_index = 0
RTDeviceV4L2 12:00:48-796 {open :138} open video name(/dev/video11)
RKViChn 12:00:48-796 {setFrameRate :1153} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2 12:00:48-797 {ispCameraInfo :549} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2 12:00:48-797 {ispInitFormat :726} ioctl VIDIOC_S_FMT OK
RKViChn 12:00:48-798 {start :813} =========== vi Start startRuntime ===========
RTDeviceV4L2 12:00:48-798 {ispStreamOn :440} do ispStreamOn start
RTDeviceV4L2 12:00:48-818 {ispStreamOn :493} do ispStreamOn done
vpss_init
=== 0 ===
rga_api version 1.10.0_[2]
====RK_MPI_SYS_Bind vi0 to vpss0====
venc_init
MpiAdapterEncode 12:00:48-833 {ma_encode_create :1653} ringbuf buf_size 520192
venc init success
=== 1 ===
cmpi 12:00:48-899 {mb_get_buffer_by_i:422} allocated buffer(this=0x30d650, data=(nil), size=0, id=-1)
MpiAdapterEncode 12:00:49-039 {ma_encode_get_pack:1978} map ptr: 0xa3221000
[DEBUG utils.c:134:rtsp_codec_data_parse_from_user_h264] sps 28
[DEBUG utils.c:142:rtsp_codec_data_parse_from_user_h264] pps 4
第二个出现异常视乎是rga的申请问题,请检查一下系统在设置CMA(在.mk中设置)时是否设置完整,如果使用的不是网盘系统的话可以尝试重新刷新系统。