Page 1 of 1

luckfox_pico_rkmpi_example运行失败

Posted: 2024-11-02 8:48
by jason
1、开发板型号:Luckfox Pico Max
2、SDK版本:https://github.com/LuckfoxTECH/luckfox-pico.git V1.4
3、esample: https://github.com/LuckfoxTECH/luckfox_ ... xample.git 的 luckfox_pico_rtsp_opencv
4、问题描述:git clone了SDK,默认配置下./build.sh编译Buildroot固件并到开发板flash中,把例程传到开发板运行报错。
对比烧录了网盘提供的Buildroot FLASH版本系统,例程可以正常运行。查看log发现编译的vi version: 1.22,网盘固件是vi version: 1.86,请问如果修改SDK配置可以正常运行例程?谢谢。
不过无论是SDK编译的固件还是网盘固件默认起来的rkipc都可以正常运行和用VLC查看视频流。

失败的ssh log:

Code: Select all

[root@luckfox root]# ./luckfox_pico_rtsp_opencv
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
rkaiq log level ff1
XCORE:K:rk_aiq_init_lib, ISP HW ver: 32
XCORE:K:
************************** VERSION INFOS **************************
version release date: 2024-2-18
         AIQ:       AIQ v5.0x5.0

git logs:
25bd14e RV1106: smart_door: release rga/isp/mpp for V1.3.0
99d080a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.2
6458e2a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.1
e8dab39 RV1106: CVR: release rga/isp/mpp for V1.1.0
a021b32 RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.0

************************ VERSION INFOS END ************************

ID: 0, sensor_name is m00_b_sc3336 4-0030, iqfiles is /etc/iqfiles
XCORE:K:rk_aiq_uapi_sysctl_preInit_devBufCnt: dev_ent:rkraw_rx, buf_cnt:2
XCORE:E:invalid main scene len!

IPCSERVER:K:cid[0] Process path:/tmp/UNIX.domain0, sockfd:13
XCORE:K:cid[0] rk_aiq_uapi_sysctl_init success. iq:/etc/iqfiles/sc3336_CMK-OT2119-PC1_30IRC-F16.json
XCORE:K:cid[0] rk_aiq_uapi_sysctl_prepare success. mode:0
rk_aiq_uapi2_sysctl_init/prepare succeed
CAMHW:K:cid[0] start success. isGroup:0, isOnline:1, isMultiIsp:0, init_ens:0x1bfc0ffc4739
XCORE:K:cid[0] rk_aiq_uapi_sysctl_start success.
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        00:22:42-297 {dump              :064} ---------------------------------------------------------
RTVersion        00:22:42-298 {dump              :065} rockit version: git-4720dc10a Tue Apr 30 15:47:55 2024 +0800
RTVersion        00:22:42-299 {dump              :066} rockit building: built- 2024-04-30 15:53:43
RTVersion        00:22:42-299 {dump              :067} ---------------------------------------------------------
(null)           00:22:42-299 {log_level_init    :207}

 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)           00:22:42-299 {read_log_level    :098} text is all=4
(null)           00:22:42-299 {read_log_level    :100} module is all, log_level is 4
[INFO  (null)           00:22:42-304 {monitor_log_level :149} #Start monitor_log_level thread, arg:(nil)
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          00:22:42-309 {vi_set_dev_attr   :612} VI_DEV_ATTR_S all parameter reserved
RTIsp3x          00:22:42-310 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceSensorV4 00:22:42-314 {ispOpenDevice     :502} v4l2_open(/dev/video0), handler=46
RTDeviceSensorV4 00:22:42-317 {ispOpenDevice     :502} v4l2_open(/dev/v4l-subdev2), handler=48
RTDeviceSensorV4 00:22:42-318 {close             :112} do RTDeviceSensorV4L2 close
RTDeviceSensorV4 00:22:42-318 {close             :112} do RTDeviceSensorV4L2 close
RKViChn          00:22:42-319 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          00:22:42-320 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          00:22:42-320 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          00:22:42-320 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          00:22:42-320 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             00:22:42-321 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          00:22:42-323 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             00:22:42-325 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             00:22:42-326 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             00:22:42-327 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             00:22:42-328 {createRuntime     :638}   camera id                  : 0
cmpi             00:22:42-328 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             00:22:42-328 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             00:22:42-328 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             00:22:42-328 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             00:22:42-328 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             00:22:42-328 {createRuntime     :646}   sensor raw width           : 2304
cmpi             00:22:42-329 {createRuntime     :647}   sensor raw height          : 1296
cmpi             00:22:42-329 {createRuntime     :648} ---------------------------------------------------------
cmpi             00:22:42-329 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             00:22:42-329 {createRuntime     :655}   isp model name           : rkisp0
cmpi             00:22:42-329 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             00:22:42-329 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             00:22:42-330 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             00:22:42-330 {createRuntime     :660}   isp rawrd1_l_path        :
cmpi             00:22:42-330 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             00:22:42-330 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             00:22:42-330 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             00:22:42-331 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             00:22:42-331 {createRuntime     :667}   sensor link type         : 2
cmpi             00:22:42-331 {createRuntime     :668}   sensor is united         : 0
cmpi             00:22:42-331 {createRuntime     :672} ---------------------------------------------------------
cmpi             00:22:42-331 {createRuntime     :711} [non-WRAP MODE]: buff size = 4478976
RTIsp3x          00:22:42-340 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     00:22:42-343 {open              :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2     00:22:42-346 {open              :143} open video name(/dev/video11)
RKViChn          00:22:42-348 {setFrameRate      :1469} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     00:22:42-348 {ispCameraInfo     :567} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     00:22:42-349 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             00:22:42-350 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     00:22:42-351 {ispStreamOn       :458} do ispStreamOn start
CAMHW:K:camId:0, notify_isp_stream_status on
RTDeviceV4L2     00:22:42-371 {ispStreamOn       :511} do ispStreamOn done
vpss_init
rga_api version 1.10.1_[0]=== 0 ===

====RK_MPI_SYS_Bind vi0 to vpss0====
venc_init
MpiAdapterEncode 00:22:42-390 {ma_encode_create  :1743} ringbuf buf_size 4481024
MpiAdapterEncode 00:22:42-412 {ma_encode_create  :1782} mem_fd = 54
=== 1 ===
^C
[root@luckfox root]#

失败的串口log:

Code: Select all

[ 1375.131552] stream_cif_mipi_id0: s_power 1, entity use_count 1
[ 1375.132017] stream_cif_mipi_id0: s_power 0, entity use_count 0
[ 1375.284390] stream_cif_mipi_id0: s_power 1, entity use_count 1
[ 1375.285299] stream_cif_mipi_id0: open video, entity use_countt 2
[ 1375.285402] stream_cif_mipi_id1: open video, entity use_countt 1
[ 1375.295464] rkisp rkisp-vir0: first params buf queue
[ 1375.308212] vsys dev open 27
[ 1375.320327] stream_cif_mipi_id0: open video, entity use_countt 3
[ 1375.320550] stream_cif_mipi_id0: close video, entity use_count 2
[ 1375.322186] stream_cif_mipi_id0: open video, entity use_countt 3
[ 1375.325907] stream_cif_mipi_id0: close video, entity use_count 2
[ 1375.332175] stream_cif_mipi_id0: open video, entity use_countt 3
[ 1375.332256] stream_cif_mipi_id0: close video, entity use_count 2
[ 1375.349453] stream_cif_mipi_id0: open video, entity use_countt 3
[ 1375.349537] stream_cif_mipi_id0: close video, entity use_count 2
[ 1375.357822] rkisp queue buf done
[ 1375.359798] rkisp_hw ffa00000.rkisp: set isp clk = 198000000Hz
[ 1375.361946] rkcif-mipi-lvds: stream[0] start streaming
[ 1375.362070] rockchip-mipi-csi2 mipi0-csi2: stream on, src_sd: eb27b3d8, sd_name:rockchip-csi2-dphy0
[ 1375.362083] rockchip-mipi-csi2 mipi0-csi2: stream ON
[ 1375.362148] rockchip-csi2-dphy0: dphy0, data_rate_mbps 506
[ 1375.362183] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0, ret 0
[ 1375.399664] mpp_vcodec: 45: num_chan = 0
[ 1375.399796] mpp_vcodec: 387: attr->max_width = 2304, attr->max_height = 1296
[ 1375.409485] mpp_vcodec: 103: create channel 0 handle aad8ebe7 online 0
[ 1375.417374] rga_mm: failed to calculating buffer size!
[ 1375.417398] rga_common: memory param: w = 0, h = 0, f = YCbCr420SP(0xa), size = 0
[ 1375.417407] rga_mm: rga_mm_map_buffer map dma_buf error!
[ 1375.418223] rga_mm: This handle[-22] is illegal.
[ 1375.418260] rga_mm: Image size cal error! width = 0, height = 0, format = YCbCr420SP
[ 1375.418268] rga_mm: Can't get src buffer info from handle!
[ 1375.418275] rga_mm: failed to get buffer from handle
[ 1375.418282] rga_job: rga_job_commit: failed to map job info
[ 1375.418301] rga_job: failed to commit job!
[ 1375.418309] rga: rga_mpi_commit, commit mpi job failed
[ 1375.428712] 836: MPP_ENC_SET_CFG in
[ 1375.428741] 532: MPP_ENC_SET_RC_CFG bps 33592320 [31492800 : 35691840] fps [30:30] gop 60
[ 1375.428757] 335: MPP_ENC_SET_PREP_CFG w:h [2304:1296] stride [6912:1296]
[ 1375.428770] 270: send header for set cfg change input/format
[ 1375.428936] 836: MPP_ENC_SET_CFG in
[ 1375.428954] 532: MPP_ENC_SET_RC_CFG bps 3072000 [2880000 : 3264000] fps [30:30] gop 1
[ 1375.428964] 270: send header for set cfg change rc_mode/fps/gop
[ 1375.458007] rga: can not find request from id[7]
[ 1382.292097] mpp_vcodec: 162: destroy chan 0 hnd aad8ebe7 online 0 combo -1 mst -1
[ 1382.292710] mpp_vcodec: 188: destroy chan 0 done
[ 1382.292739] rga_job: [tgid:3581 pid:3600] destroy request[6] when the user exits
[ 1382.292750] rga_job: [tgid:3581 pid:3600] destroy request[8] when the user exits
[ 1382.292761] rga_job: [tgid:3581 pid:3600] destroy request[9] when the user exits
[ 1382.292770] rga_job: [tgid:3581 pid:3600] destroy request[10] when the user exits
[ 1382.292780] rga_mm: [tgid:3581] Destroy handle[2] when the user exits
[ 1382.292839] rkcif-mipi-lvds: stream[0] start stopping, total mode 0x2, cur 0x2
[ 1382.296454] rockchip-mipi-csi2 mipi0-csi2: stream off, src_sd: eb27b3d8, sd_name:rockchip-csi2-dphy0
[ 1382.296467] rockchip-mipi-csi2 mipi0-csi2: stream OFF
[ 1382.296493] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream_stop stream stop, dphy0
[ 1382.296514] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0, ret 0
[ 1382.296721] rkcif-mipi-lvds: stream[0] stopping finished, dma_en 0x0
[ 1382.296733] rkcif-mipi-lvds: stream[0] start stopping, total mode 0x0, cur 0x2
[ 1382.296741] rkcif-mipi-lvds: stream[0] stopping finished, dma_en 0x0
[ 1383.361383] rkisp-vir0: waiting on params stream off event timeout
[ 1383.362952] vi_release 99
[ 1383.362966] rockit isp stream off
[ 1383.363027] venc_release 51
[ 1383.363904] vrgn_release, 123
[ 1383.363920] vsys_release, 27
[ 1383.364143] stream_cif_mipi_id1: close video, entity use_count 0
[ 1383.364174] stream_cif_mipi_id0: close video, entity use_count 1
[ 1383.364415] stream_cif_mipi_id0: s_power 0, entity use_count 0

网盘固件成功的SSH log:

Code: Select all

[root@luckfox root]# ./luckfox_pico_rtsp_opencv
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
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        00:38:19-046 {dump              :064} ---------------------------------------------------------
RTVersion        00:38:19-050 {dump              :065} rockit version: git-8cb4d25b8 Tue Feb 28 11:12:39 2023 +0800
RTVersion        00:38:19-050 {dump              :066} rockit building: built- 2023-02-28 15:23:19
RTVersion        00:38:19-051 {dump              :067} ---------------------------------------------------------
(null)           00:38:19-051 {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)           00:38:19-052 {read_log_level    :093} text is all=4
(null)           00:38:19-052 {read_log_level    :095} module is all, log_level is 4
RTIsp3x          00:38:19-057 {ispInitDevice     :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x          00:38:19-059 {ispInitDevice     :211} sensor_index = 0
(null)           00:38:19-061 {monitor_log_level :144} #Start monitor_log_level thread, arg:(nil)
RTIsp3x          00:38:19-065 {ispInitDevice     :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x          00:38:19-067 {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          00:38:19-079 {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          00:38:19-081 {prepareRuntime    :334} ---------------------------------------------------------
RKViChn          00:38:19-081 {prepareRuntime    :336} vi version: 1.86, name:vvi
RKViChn          00:38:19-081 {prepareRuntime    :337} rockit-ko version: vmpi:fb2eed2be49e
RKViChn          00:38:19-082 {prepareRuntime    :338} rockit-ko building: -2023-02-09-11:04:49
RKViChn          00:38:19-082 {prepareRuntime    :339} ---------------------------------------------------------
RKViChn          00:38:19-083 {prepareRuntime    :358} mb pool create success, MBCnt= 2
cmpi             00:38:19-083 {createRuntime     :546} [non-WRAP MODE]: buff size = 4478976
RTIsp3x          00:38:19-087 {ispInitDevice     :208} sensor name = m00_b_sc3336 4-0030
RTIsp3x          00:38:19-090 {ispInitDevice     :211} sensor_index = 0
RTDeviceV4L2     00:38:19-094 {open              :138} open video name(/dev/video11)
RKViChn          00:38:19-097 {setFrameRate      :1153} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     00:38:19-100 {ispCameraInfo     :549} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     00:38:19-100 {ispInitFormat     :726} ioctl VIDIOC_S_FMT OK
RKViChn          00:38:19-102 {start             :813} =========== vi Start startRuntime ===========
RTDeviceV4L2     00:38:19-103 {ispStreamOn       :440} do ispStreamOn start
RTDeviceV4L2     00:38:19-127 {ispStreamOn       :493} do ispStreamOn done
vpss_init
=== 0 ===
rga_api version 1.9.1_[0]
=== 1 ===
====RK_MPI_SYS_Bind vi0 to vpss0====
venc_init
MpiAdapterEncode 00:38:19-189 {ma_encode_create  :1653} ringbuf buf_size 4481024
cmpi             00:38:19-212 {mb_get_buffer_by_i:422} allocated buffer(this=0x2777c0, data=(nil), size=0, id=-1)
MpiAdapterEncode 00:38:19-260 {ma_encode_get_pack:1978} map ptr: 0xa352c000
[DEBUG utils.c:134:rtsp_codec_data_parse_from_user_h264] sps 29
[DEBUG utils.c:142:rtsp_codec_data_parse_from_user_h264] pps 4
cmpi             00:38:19-372 {mb_get_buffer_by_i:422} allocated buffer(this=0x278860, data=(nil), size=0, id=-1)
[INFO  rtsp_demo.c:408:rtsp_new_client_connection] new rtsp client 172.32.0.100:63335 comming
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
OPTIONS rtsp://172.32.0.93:554/live/0 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)

[DEBUG rtsp_demo.c:725:rtsp_handle_OPTIONS]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 2
Date: Mon Jan  1 00:38:25 2024
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
DESCRIBE rtsp://172.32.0.93:554/live/0 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp

[DEBUG rtsp_demo.c:746:rtsp_handle_DESCRIBE]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 3
Date: Mon Jan  1 00:38:25 2024
Server: rtsp_demo
Content-Type: application/sdp
Content-Length: 321

v=0
o=- 0 0 IN IP4 0.0.0.0
s=rtsp_demo
t=0 0
a=control:rtsp://172.32.0.93:554/live/0
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;sprop-parameter-sets=Z03AMo2NUBIAUdNwEBAUAAADAAQAAAMA8jwiEag=,aO88gA==
a=control:rtsp://172.32.0.93:554/live/0/track1
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
SETUP rtsp://172.32.0.93:554/live/0/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP;unicast;client_port=53762-53763

[DEBUG rtsp_demo.c:950:rtsp_handle_SETUP]
[INFO  rtsp_demo.c:907:rtsp_new_rtp_connection] new rtp over udp for video ssrc:22345678 local_port:49152-49153 peer_addr:172.32.0.100 peer_port:53762-53763
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 4
Date: Mon Jan  1 00:38:25 2024
Session: 12345678
Transport: RTP/AVP;ssrc=22345678;unicast;client_port=53762-53763;server_port=49152-49153
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
PLAY rtsp://172.32.0.93:554/live/0 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Session: 12345678
Range: npt=0.000-

[DEBUG rtsp_demo.c:1037:rtsp_handle_PLAY]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 5
Date: Mon Jan  1 00:38:25 2024
Session: 12345678
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
TEARDOWN rtsp://172.32.0.93:554/live/0 RTSP/1.0
CSeq: 6
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Session: 12345678

[DEBUG rtsp_demo.c:1061:rtsp_handle_TEARDOWN]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 6
Date: Mon Jan  1 00:38:28 2024
Session: 12345678
Server: rtsp_demo

[DEBUG rtsp_demo.c:1158:rtsp_recv_msg] peer closed
[INFO  rtsp_demo.c:427:rtsp_del_client_connection] delete client 55 from 172.32.0.100
^C
[root@luckfox root]#

网盘固件成功的串口 log:

Code: Select all

[  573.485890] stream_cif_mipi_id0: s_power 1, entity use_count 1
[  573.487497] stream_cif_mipi_id0: s_power 0, entity use_count 0
[  573.640235] stream_cif_mipi_id0: s_power 1, entity use_count 1
[  573.640810] stream_cif_mipi_id0: open video, entity use_countt 2
[  573.640920] stream_cif_mipi_id1: open video, entity use_countt 1
[  573.650866] rkisp rkisp-vir0: first params buf queue
[  573.663577] vsys dev open 26
[  573.709606] rkisp queue buf done
[  573.711131] rkisp_hw ffa00000.rkisp: set isp clk = 198000000Hz
[  573.711181] rkcif-mipi-lvds: sditf_reinit_mode, mode->rdbk_mode 0, mode->name rkisp-vir0, link_mode 1
[  573.713465] rkcif-mipi-lvds: stream[0] start streaming
[  573.713623] rockchip-mipi-csi2 ffa20000.mipi-csi2: stream on, src_sd: a38734b1, sd_name:rockchip-csi2-dphy0
[  573.713637] rockchip-mipi-csi2 ffa20000.mipi-csi2: stream ON
[  573.713685] rockchip-csi2-dphy0: dphy0, data_rate_mbps 506
[  573.713713] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0
[  573.713724] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0
[  573.763477] create vpss node = 8957952
[  573.800352] mpp_vcodec: 44: num_chan = 0
[  573.800532] mpp_vcodec: 368: attr->max_width = 2304, attr->max_height = 1296
[  573.807960] mpp_vcodec: 103: chan_entry->handle 8ed70f4f, enc 8ed70f4f
[  573.809320] 755: MPP_ENC_SET_CFG in
[  573.809378] 524: MPP_ENC_SET_RC_CFG bps 33592320 [31492800 : 35691840] fps [30:30] gop 60
[  573.809394] 329: MPP_ENC_SET_PREP_CFG w:h [2304:1296] stride [6912:1296]
[  573.809409] 271: send header for set cfg change input/format
[  573.810386] 755: MPP_ENC_SET_CFG in
[  573.810430] 524: MPP_ENC_SET_RC_CFG bps 3072000 [2880000 : 3264000] fps [30:30] gop 1
[  573.810445] 271: send header for set cfg change rc_mode/fps/gop
[  573.810570] 755: MPP_ENC_SET_CFG in
[  573.810586] 524: MPP_ENC_SET_RC_CFG bps 3072000 [2880000 : 3264000] fps [30:30] gop 1
[  573.810597] 271: send header for set cfg change rc_mode/fps/gop
[  573.848375] 1062: mode cbr bps [2880000:3072000:3264000] fps fix [30/1] -> fix [30/1] gop i [1] v [0]
[  573.849781] 95: set level to 5
[  573.849799] h264e_pps_update:95: warning: for profile 77 transform_8x8_mode should be 0
[  593.227539] rga_job: [tgid:1265 pid:1265] destroy request[5074] when the user exits
[  593.227553] rga_job: [tgid:1265 pid:1265] destroy request[5075] when the user exits
[  593.227575] rga_job: [tgid:1265 pid:1265] destroy request[5076] when the user exits
[  593.227586] rga_job: [tgid:1265 pid:1265] destroy request[5077] when the user exits
[  593.227598] rga_job: [tgid:1265 pid:1265] destroy request[5078] when the user exits
[  593.253955] rkcif-mipi-lvds: stream[0] start stopping, total mode 0x2, cur 0x2
[  593.293125] rockchip-mipi-csi2 ffa20000.mipi-csi2: stream off, src_sd: a38734b1, sd_name:rockchip-csi2-dphy0
[  593.293152] rockchip-mipi-csi2 ffa20000.mipi-csi2: stream OFF
[  593.293902] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream_stop stream stop, dphy0
[  593.293916] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0
[  593.293942] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0
[  593.294119] rkcif-mipi-lvds: stream[0] stopping finished, dma_en 0x0
[  593.295286] rockit isp stream off
[  593.295987] stream_cif_mipi_id1: close video, entity use_count 0
[  593.296079] stream_cif_mipi_id0: close video, entity use_count 1
[  593.297217] stream_cif_mipi_id0: s_power 0, entity use_count 0


Re: luckfox_pico_rkmpi_example运行失败

Posted: 2024-11-02 10:53
by Crocodile
您好, https://github.com/LuckfoxTECH/luckfox ... i_example 中存在两个分支,请使用uname -a 查看板端系统使用的内核版本来使用对应分支的例程,网盘系统目前仍然是5.10.110的内核,后续会尽快进行更新

Re: luckfox_pico_rkmpi_example运行失败

Posted: 2024-11-02 14:16
by jason
Crocodile wrote: 2024-11-02 10:53 您好, https://github.com/LuckfoxTECH/luckfox ... i_example 中存在两个分支,请使用uname -a 查看板端系统使用的内核版本来使用对应分支的例程,网盘系统目前仍然是5.10.110的内核,后续会尽快进行更新
感谢回复,问题已经解决,例程可以运行了。 :lol:
但是5.10.160内核的SDK + 5.10.160的luckfox_pico_rtsp_opencv,帧率降低了很多,CPU占用率高了很多到了85%了。

Re: luckfox_pico_rkmpi_example运行失败

Posted: 2024-11-04 1:05
by Crocodile
帧率降低是因为5.10.160的VPSS驱动存在问题,无法通过VPSS来实现图像格式转换所以例程相比5.10.110删除了VPSS组件调用的部分使用opencv-mobile替代,后续rockchip修复了VPSS驱动问题会尝试进行更新

Re: luckfox_pico_rkmpi_example运行失败

Posted: 2024-11-04 2:20
by jason
Crocodile wrote: 2024-11-04 1:05 帧率降低是因为5.10.160的VPSS驱动存在问题,无法通过VPSS来实现图像格式转换所以例程相比5.10.110删除了VPSS组件调用的部分使用opencv-mobile替代,后续rockchip修复了VPSS驱动问题会尝试进行更新
感谢回复,虽然现在功能能用,但是性能降低太多了,请帮忙推动rockchip尽快修复VPSS驱动问题,感谢。