我的开发板是core-1126-JD4,sensor是购买的OS04A10。SDK包rv1126_rv1109_linux_release_20211022,更新到最新了,如下: .repo/manifests/rv1126_rv1109/rv1126_rv1109_linux_release_20220324_v2.2.5b.xml [root@RV1126_RV1109:/]# cat /proc/version Linux version 4.19.111 (xzh@ubuntu) (kernel commit id: 85988bd7b1fc67ac96e868b90f4e676f44c713ae) (sdk version: rv1126_rv1109_linux_release_20220324_v2.2.5b.xml) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP PREEMPT Wed May 4 22:49:21 CST 2022 我编译的顺序是: 1.source envsetup.sh 选择的是 4. firefly_rv1126_rv1109; 2. ./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk 3. make menuconfig把下面的选项选中,并保存 # OPENCV3 BR2_PACKAGE_OPENCV3=y BR2_PACKAGE_OPENCV3_LIB_CALIB3D=y BR2_PACKAGE_OPENCV3_LIB_FEATURES2D=y BR2_PACKAGE_OPENCV3_LIB_FLANN=y BR2_PACKAGE_OPENCV3_LIB_HIGHGUI=y BR2_PACKAGE_OPENCV3_LIB_IMGCODECS=y BR2_PACKAGE_OPENCV3_LIB_IMGPROC=y BR2_PACKAGE_OPENCV3_LIB_ML=y BR2_PACKAGE_OPENCV3_LIB_OBJDETECT=y BR2_PACKAGE_OPENCV3_LIB_PHOTO=y BR2_PACKAGE_OPENCV3_LIB_SHAPE=y BR2_PACKAGE_OPENCV3_LIB_STITCHING=y BR2_PACKAGE_OPENCV3_LIB_SUPERRES=y BR2_PACKAGE_OPENCV3_LIB_TS=y BR2_PACKAGE_OPENCV3_LIB_VIDEOIO=y BR2_PACKAGE_OPENCV3_LIB_VIDEO=y BR2_PACKAGE_OPENCV3_LIB_VIDEOSTAB=y BR2_PACKAGE_OPENCV3_WITH_FFMPEG=y BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1=y BR2_PACKAGE_OPENCV3_WITH_JASPER=y BR2_PACKAGE_OPENCV3_WITH_JPEG=y BR2_PACKAGE_OPENCV3_WITH_PNG=y BR2_PACKAGE_OPENCV3_WITH_PROTOBUF=y BR2_PACKAGE_OPENCV3_WITH_TIFF=y BR2_PACKAGE_OPENCV3_WITH_V4L=y BR2_PACKAGE_OPENCV3_WITH_WEBP=y BR2_PACKAGE_FIREFLY_RKMEDIA_DEMO=y BR2_PACKAGE_ZBAR=y 4../build.sh 编完的固件烧进去之后,run起来可以用vlc看到通过rtsp传上来的视频。接下来用RkLunch-stop.sh关掉sensor ISP服务,接着运行: rkmedia_vi_rknn_venc_rtsp_test -a /oem/etc/iqfiles/ -c /oem/usr/share/rtsp-nn.cfg -b /oem/usr/share/rknn_model/box_priors.txt -l /oem/usr/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_inception_v2_rv1109_rv1126.rknn 就报错了: [root@RV1126_RV1109:/]# rkmedia_vi_rknn_venc_rtsp_test -a /oem/etc/iqfiles/ -c / oem/usr/share/rtsp-nn.cfg -b /oem/usr/share/rknn_model/box_priors.txt -l /oem/us r/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_incepti on_v2_rv1109_rv1126.rknn & [root@RV1126_RV1109:/]# media get entity by name: stream_cif_dvp_id0 is null media get entity by name: stream_cif_dvp_id1 is null media get entity by name: stream_cif_dvp_id2 is null media get entity by name: stream_cif_dvp_id3 is null media get entity by name: rkcif-lvds-subdev is null media get entity by name: rkcif-lite-lvds-subdev is null media get entity by name: stream_cif is null media get entity by name: rkcif-dvp-sof is null media get entity by name: rkisp-mpfbc-subdev is null media get entity by name: rkisp_dmapath is null media get entity by name: rockchip-mipi-dphy-rx is null media get entity by name: rkcif_dvp is null media get entity by name: rkcif_dvp is null media get entity by name: rkcif_lite_mipi_lvds is null [09:25:29.919093][CAMHW]:XCAM ERROR CamHwIsp20.cpp:1022: No free isp&ispp needed by fake camera! register factory : rkmpp register factory : rkmpp register factory : live555_rtsp_server register factory : video_enc register factory : audio_enc register factory : video_dec register factory : file_read_flow register factory : file_write_flow register factory : filter register factory : link_flow register factory : source_stream register factory : muxer_flow register factory : audio_dec register factory : output_stream register factory : move_detec register factory : occlusion_detec register factory : file_write_stream register factory : file_read_stream register factory : alsa_playback_stream register factory : alsa_capture_stream register factory : v4l2_capture_stream register factory : v4l2_output_stream register factory : drm_output_stream rga_api version 1.3.0_[11] (RGA is compiling with meson base: $PRODUCT_BASE) register factory : rkrga register factory : through_guard register factory : ANR register factory : AEC register factory : rockx_filter register factory : nn_result_input register factory : draw_filter register factory : rknn register factory : face_capture register factory : rockface_detect register factory : rockface_evaluate register factory : rockface_bodydetect register factory : rockface_recognize cfg path is /oem/usr/share/rtsp-nn.cfg BOX_PRIORS_TXT_PATH is /oem/usr/share/rknn_model/box_priors.txt LABEL_NALE_TXT_PATH is /oem/usr/share/rknn_model/coco_labels_list.txt MODEL_PATH is /oem/usr/share/rknn_model/ssd_inception_v2_rv1109_rv1126.rknn #CameraIdx: 0 rtsp path = /live/main_stream. video_type = 5. width = 1920. height = 1080. video path =rkispp_scale0. image type = 4. rtsp path = /live/sub_stream. video_type = 5. width = 720. height = 576. video path =rkispp_scale1. image type = 4. xml dirpath: /oem/etc/iqfiles/ #bMultictx: 0 ID: 0, sensor_name is m01_f_os04a10 1-0036, iqfiles is /oem/etc/iqfiles/ [09:25:29.940411][XCORE]:XCAM ERROR RkAiqCalibDb.cpp:804: calibdb /oem/etc/iqfiles//os04a10_CMK-OT1607-FV1_M12-40IRC-4MP-F16.xml and bin are all not exist! [09:25:29.941218][XCORE]:XCAM ERROR rk_aiq_user_api_sysctl.cpp:206: _rkAiqManager init error! [09:25:29.941957][CAMHW]:XCAM ERROR CamHwIsp20.cpp:1274: can't find sensor [09:25:29.942505][XCORE]:XCAM ERROR RkAiqManager.cpp:383: camhw deinit error -7 SAMPLE_COMM_ISP_Run : CamId is over 3 or not init SAMPLE_COMM_ISP_SetFrameRate : CamId is over 3 or not init init rtsp [INFO rtsp_demo.c:281:rtsp_new_demo] rtsp server demo starting on port 554 init mpi ##RKMEDIA Log level: 2 [RKMEDIA][SYS][Info]:text is all=2 [RKMEDIA][SYS][Info]:module is all, log_level is 2 [DEBUG rtsp_demo.c:481:rtsp_new_session] add session path: /live/main_stream VI create [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 Start... [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0 media get entity by name: rkcif-lvds-subdev is null media get entity by name: rkcif-lite-lvds-subdev is null [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1 media get entity by name: rkisp-mpfbc-subdev is null media get entity by name: rkisp_dmapath is null media get entity by name: rockchip-mipi-dphy-rx is null [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev5 [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2 [RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0 [RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale0 [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0 [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0, idx: 0 [RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video19 [ 1435.502204] rkispp0: scale0:0x0 out of range: [ 1435.502204] [wUsing mplane plugin for capture idth max:3264 ratio max:8 min:1] [ 1435.502308] rkispp0: scale0:0x0 out of range: [ 1435.502308] [width max:2080 ratio max:8 min:1] [ 1435.502339] rkispp0: scale0:0x0 out of range: [ 1[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 7 435.502339] [width max:3264 ratio max:8 min:1] [ 1435.502372] rkispp0: scale0:0x0 out of range: [ 1435.502372] [width max:3264 ratio max:8 min:1] [ 1435.502412] rkispp0: scale0:0x0 out of range: [ 1435.502412] [width max:3264 ratio max:8 min:1] [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 End... VENC create env_fps: 30 [RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[0], Type:5 Start... [RKMEDIA][SYS][Info]:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 1920, rect.h = 1080 mpp[2120]: mpp_rt: NOT found ion allocator mpp[2120]: mpp_rt: found drm allocator mpp[2120]: mpp_info: mpp version: 20d07111 author: daijh 2021-12-23 Merge branch 'rockchip' into mfirefly [RKMEDIA][VENC][Info]:MPP Encoder: MPPConfig: cfg init sucess! [RKMEDIA][VENC][Info]:MPP Encoder: qpMaxi use default value:48 [RKMEDIA][VENC][Info]:MPP Encoder: qpMini use default value:8 [RKMEDIA][VENC][Info]:MPP Encoder: qpMax use default value:48 [RKMEDIA][VENC][Info]:MPP Encoder: qpMin use default value:8 [RKMEDIA][VENC][Info]:MPP Encoder: qpInit use default value:-1 [RKMEDIA][VENC][Info]:MPP Encoder: qpStep use default value:2 [RKMEDIA][VENC][Info]:MPP Encoder: rect_x use default value:0 [RKMEDIA][VENC][Info]:MPP Encoder: rect_y use default value:0 [RKMEDIA][VENC][Info]:MPP Encoder: rotaion = 0 [RKMEDIA][VENC][Info]:MPP Encoder: automatically calculate bsp with bps_target [RKMEDIA][VENC][Info]:MPP Encoder: Set output block mode. [RKMEDIA][VENC][Info]:MPP Encoder: Set input block mode. [RKMEDIA][VENC][Info]:MPP Encoder: bps:[4937142,4443428,3949713] fps: [30/1]->[30/1], gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48. [RKMEDIA][VENC][Info]:MPP Encoder: AVC: encode profile 77 level 0 mpp[2120]: mpp_enc: MPP_ENC_SET_RC_CFG bps 4443428 [3949713 : 4937142] fps [30:30] gop 30 mpp[2120]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [1920:1080] stride [1920:1080] mpp[2120]: mpp_enc: send header for set cfg change input/format [RKMEDIA][VENC][Info]:MPP Encoder: w x h(1920[1920] x 1080[1080]) mpp[2120]: mpp_enc: mode cbr bps [3949713:4443428:4937142] fps fix [30/1] -> fix [30/1] gop i [30] v [0] [RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[0], Type:5 End... rtsp video [DEBUG rtsp_demo.c:481:rtsp_new_session] add session path: /live/sub_stream VI create [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale1, 720x576 Start... [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0 media get entity by name: rkcif-lvds-subdev is null media get entity by name: rkcif-lite-lvds-subdev is null [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1 media get entity by name: rkisp-mpfbc-subdev is null media get entity by name: rkisp_dmapath is null media get entity by name: rockchip-mipi-dphy-rx is null [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev5 [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2 [RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0 [RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale1 [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale1 [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale1, idx: 0 [RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video20 [ 1436.564359] rkispp0: waiting on params stream on event timeout [ 1436.595479] rkisp rkisp-vir0: can not get first iq setting in stream on [RKMEDIA][SYS][Info]:Camera 0 stream 7 is started [ 1436.596952] rkispp0: scale1:Using mplane plugin for capt0ure x0 out of range: [ 1436.596952] [width max:1280 ratio max:8 min:2] [ 1436.597007] rkispp0: scale1:0x0 out of range: [ 1436.597007] [width max:1280 ratio max:8 min:2] [ 1436.597028] rkispp0: scale1:0x0 out of range: [ 1[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video20, fd 421 36.597028] [width max:1280 ra[RKMEDIA][SYS][Info]:Opened tDRM device /dev/dri/card0: diriver rockchip version 2.0.0o. max:8 min:2] [ 1436.597044] rkispp0: scale1:0x0 out of range: [ 1436.597044] [width max:1280 ratio max:8 min:2] [ 1436.597061] rkispp0: scale1:0x0 out of range: [ 1436.597061] [width max:1280 ratio max:8 min:2] [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale1, 720x576 End... VENC create env_fps: 30 [RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[1], Type:5 Start... [RKMEDIA][SYS][Info]:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 720, rect.h = 576 mpp[2120]: mpp_info: mpp version: 20d07111 author: daijh 2021-12-23 Merge branch 'rockchip' into mfirefly [RKMEDIA][VENC][Info]:MPP Encoder: MPPConfig: cfg init sucess! [RKMEDIA][VENC][Info]:MPP Encoder: qpMaxi use default value:48 [RKMEDIA][VENC][Info]:MPP Encoder: qpMini use default value:8 [RKMEDIA][VENC][Info]:MPP Encoder: qpMax use default value:48 [RKMEDIA][VENC][Info]:MPP Encoder: qpMin use default value:8 [RKMEDIA][VENC][Info]:MPP Encoder: qpInit use default value:-1 [RKMEDIA][VENC][Info]:MPP Encoder: qpStep use default value:2 [RKMEDIA][VENC][Info]:MPP Encoder: rect_x use default value:0 [RKMEDIA][VENC][Info]:MPP Encoder: rect_y use default value:0 [RKMEDIA][VENC][Info]:MPP Encoder: rotaion = 0 [RKMEDIA][VENC][Info]:MPP Encoder: automatically calculate bsp with bps_target [RKMEDIA][VENC][Info]:MPP Encoder: Set output block mode. [RKMEDIA][VENC][Info]:MPP Encoder: Set input block mode. [RKMEDIA][VENC][Info]:MPP Encoder: bps:[987427,888685,789942] fps: [30/1]->[30/1], gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48. [RKMEDIA][VENC][Info]:MPP Encoder: AVC: encode profile 77 level 0 mpp[2120]: mpp_enc: MPP_ENC_SET_RC_CFG bps 888685 [789942 : 987427] fps [30:30] gop 30 mpp[2120]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [720:576] stride [720:576] mpp[2120]: mpp_enc: send header for set cfg change input/format [RKMEDIA][VENC][Info]:MPP Encoder: w x h(720[720] x 576[576]) mpp[2120]: mpp_enc: mode cbr bps [789942:888685:987427] fps fix [30/1] -> fix [30/1] gop i [30] v [0] [RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[1], Type:5 End... [RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[VENC]:Chn[1]... rtsp video create rknn_list success [RKMEDIA][SYS][Info]:Camera 0 stream 21 is started #Start GetMediaBuffer thread, arg:(nil) Loading model ... x_rate is 6.400000, y_rate is 3.600000 librknn_runtime version 1.7.0 (0bef7b3 build: 2021-08-18 19:53:17 base: 1131) model input num: 1, output num: 2 input tensors: index=0 name= n_dims=4 dims=[1 300 300 3] n_elems=270000 size=270000 fmt=0 type=3 qnt_type=2 fl=127 zp=127 scale=0.007843 output tensors: index=0 name= n_dims=4 dims=[1 1917 1 4] n_elems=7668 size=7668 fmt=0 type=3 qnt_type=2 fl=-76 zp=180 scale=0.089482 index=1 name= n_dims=3 dims=[0 1 1917 91] n_elems=174447 size=174447 fmt=0 type=3 qnt_type=2 fl=-66 zp=190 scale=0.137463 然后我发现/oem文件夹里面没有etc文件夹。请问这是哪里配置有问题吗? 再次上电运行后,我把-a /oem/etc/iqfiles/这个参数改成-a /etc/iqfiles/,还是会报错。我觉得根本原因还是编译完/oem下面没有etc文件夹就有问题。 请问下,哪个地方的配置没有配对,出了问题。 |
-
2.99 KB, 下载次数: 6, 下载积分: 灯泡 -1 , 经验 -1