RV1126使用sc132gs抓图失败
参照wiki外设使用章节抓图使用/oem/usr/bin/ispserver &命令出现错误media get entity by name: rkcif-lvds-subdev is nullmedia get entity by name: rkcif-lite-lvds-subdev is null
:XCAM ERROR CamHwIsp20.cpp:160: @get_sensor_caps /dev/v4l-subdev3: Enum sensor frame interval failed
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
ispserver: ispserver version 1.0.0
ispserver: :get sensor name m01_f_sc132gs 1-0030
ispserver: :get cam_num 1
ispserver: :media get sys_path: /dev/media0
media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkispp_input_params is null
ispserver: :media get sys_path: /dev/media1
ispserver: :get rkisp-isp-subdev devname: /dev/v4l-subdev4
ispserver: :get rkisp-input-params devname: /dev/video15
ispserver: :get rkisp-statistics devname: /dev/video14
media get entity by name: rkispp_input_params is null
ispserver: :media get sys_path: /dev/media2
ispserver: :get rkispp_input_params devname: /dev/video23
ispserver: :media get sys_path: /dev/media3
ispserver: :media get sys_path: /dev/media4
ispserver: :media get sys_path: /dev/media5
ispserver: :media get sys_path: /dev/media6
ispserver: :media get sys_path: /dev/media7
ispserver: :media get sys_path: /dev/media8
ispserver: :media get sys_path: /dev/media9
ispserver: :cam id 0 find_sensor 1 find_isp 1 find_ispp 1
ispserver: :cam id 1 find_sensor 0 find_isp 0 find_ispp 0
ispserver: :enter wait thread for cam index 0
ispserver: :thread_func cam_id 0...
ispserver: :database_hash_init init complete
ispserver: :database_init
ispserver: :call_fun_ipc_demo_server init
ispserver: :hashtable init complete!
ispserver: :database_init over
ispserver: :manage_init
ispserver: :subscribe events from /dev/video15 success !
ispserver: :hdr_mode_db: 16
ispserver: :hdr mode: 1
[ 4616.780410] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
:XCAM ERROR SensorHw.cpp:854: failed to set hflip (val: 0)
ispserver: :set fec_en: 0, ret is 0
:XCAM ERROR SensorHw.cpp:834: failed to set hdr mode 5
:XCAM ERROR RkAiqManager.cpp:258: camhw prepare error -9
:XCAM ERROR rk_aiq_user_api_sysctl.cpp:258: prepare failed !
ispserver: :rkaiq engine prepare failed !
ispserver: :server main_exit
ispserver: :stop engine camera index 0...
ispserver: :deinit engine camera index 0...
[ 4616.787588] pgd = 95aae16c
[ 4616.787618] *pgd=7e4d0835
[ 4616.787632] CPU: 1 PID: 2953 Comm: ispserver Tainted: G O 4.19.111 #2
[ 4616.787639] Hardware name: Generic DT based system
[ 4616.787650] PC is at 0xa6faa838
[ 4616.787657] LR is at 0x21814
[ 4616.787663] pc : [<a6faa838>] lr : [<00021814>] psr: 600d0010
[ 4616.787676] sp : a6770d48ip : a6faa7ccfp : a69a5000
[ 4616.787686] r10: a69a8130r9 : 00028de5r8 : 00028532
[ 4616.787695] r7 : 0003b488r6 : 0003bfd8r5 : 0003b000r4 : 00000000
[ 4616.787706] r3 : 00000001r2 : 00000000r1 : 00000000r0 : 00000000
[ 4616.787720] Flags: nZCvIRQs onFIQs onMode USER_32ISA ARMSegment user
[ 4616.787730] Control: 10c5387dTable: 3128c06aDAC: 00000055
[ 4616.787744] CPU: 1 PID: 2953 Comm: ispserver Tainted: G O 4.19.111 #2
[ 4616.787756] Hardware name: Generic DT based system
[ 4616.787791] [<b010f408>] (unwind_backtrace) from [<b010b970>] (show_stack+0x10/0x14)
[ 4616.787816] [<b010b970>] (show_stack) from [<b09b4464>] (dump_stack+0x90/0xa4)
[ 4616.787842] [<b09b4464>] (dump_stack) from [<b011373c>] (__do_user_fault+0x130/0x134)
[ 4616.787870] [<b011373c>] (__do_user_fault) from [<b0113980>] (do_page_fault+0x240/0x348)
[ 4616.787887] [<b0113980>] (do_page_fault) from [<b0113c18>] (do_DataAbort+0x4c/0xec)
[ 4616.787900] [<b0113c18>] (do_DataAbort) from [<b0101d7c>] (__dabt_usr+0x3c/0x40)
[ 4616.787908] Exception stack(0xed4c7fb0 to 0xed4c7ff8)
[ 4616.787921] 7fa0: 00000000 00000000 00000000 00000001
[ 4616.787935] 7fc0: 00000000 0003b000 0003bfd8 0003b488 00028532 00028de5 a69a8130 a69a5000
[ 4616.787946] 7fe0: a6faa7cc a6770d48 00021814 a6faa838 600d0010 ffffffff
已经在在rv1126-firefly-jd4.dts添加了,并在rv1126_firefly_defg添加CONFIG_VIDEO_SC132GS=y,i2ctool可以找到设置&i2c1 {
status = "okay";
/delete-node/ os04a10@36;
sc132gs: sc132gs@30 {
compatible = "smartsens,sc132gs";
reg = <0x30>;
clocks = <&cru CLK_MIPICSI_OUT>;
clock-names = "xvclk";
power-domains = <&power RV1126_PD_VI>;
pinctrl-names = "rockchip,camera_default";
pinctrl-0 = <&mipicsi_clk0>;
pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <1>;
rockchip,camera-module-facing = "front";
rockchip,camera-module-name = "CMK-OT1607-FV1";
rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";
/* NO_HDR:0 HDR_X2:5 HDR_X3:6 */
// rockchip,camera-hdr-mode = <5>;
port {
ucam_out0: endpoint {
remote-endpoint = <&mipi_in_ucam0>;
data-lanes = <1 2 3 4>;
};
};
};
};
加了 iqfile 了吗? 板蓝根 发表于 2022-4-19 09:20
加了 iqfile 了吗?
复制了os04a10的iq修改名字,使用v4l2-ctl -d /dev/video19 --set-fmt-video=width=1080,height=1280,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/cif.out --stream-count=1 --stream-poll会提示无法获取iq设置 rkispp0: waiting on params stream on event timeout
rkisp rkisp-vir0: can not get first iq setting in stream on
select timeout
rkisp-bridge-ispp: bridge_stop timeout ret:0
请问sc132gs的iq能从哪里获取吗?或是没iq时如何测试摄像头 sdk/external/camera_engine_rkaiq/iqfiles,下有 rk 适配的 iqfile 如果有就可以直接用,如果没有说明rockchip 没有调过需要自行标定 板蓝根 发表于 2022-4-19 14:57
sdk/external/camera_engine_rkaiq/iqfiles,下有 rk 适配的 iqfile 如果有就可以直接用,如果没有说明rock ...
使用https://gitlab.com/firefly-linux/external/camera_engine_rkisp/-/tree/firefly/iqfiles下的sc132gs_blackvision_f00101a.xml文件
使用/oem/usr/bin/ispserver &出现大量的错误内容都是:XCAM ERROR RkAiqCalibTag.cppXXX# media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
:XCAM ERROR CamHwIsp20.cpp:160: @get_sensor_caps /dev/v4l-subdev3: Enum sensor frame interval failed
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
ispserver: ispserver version 1.0.0
ispserver: :get sensor name m01_f_sc132gs 1-0030
ispserver: :get cam_num 1
ispserver: :media get sys_path: /dev/media0
media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkispp_input_params is null
ispserver: :media get sys_path: /dev/media1
ispserver: :get rkisp-isp-subdev devname: /dev/v4l-subdev4
ispserver: :get rkisp-input-params devname: /dev/video15
ispserver: :get rkisp-statistics devname: /dev/video14
media get entity by name: rkispp_input_params is null
ispserver: :media get sys_path: /dev/media2
ispserver: :get rkispp_input_params devname: /dev/video23
ispserver: :media get sys_path: /dev/media3
ispserver: :media get sys_path: /dev/media4
ispserver: :media get sys_path: /dev/media5
ispserver: :media get sys_path: /dev/media6
ispserver: :media get sys_path: /dev/media7
ispserver: :media get sys_path: /dev/media8
ispserver: :media get sys_path: /dev/media9
ispserver: :cam id 0 find_sensor 1 find_isp 1 find_ispp 1
ispserver: :cam id 1 find_sensor 0 find_isp 0 find_ispp 0
ispserver: :enter wait thread for cam index 0
ispserver: :thread_func cam_id 0...
ispserver: :database_hash_init init complete
ispserver: :database_init
ispserver: :call_fun_ipc_demo_server init
ispserver: :hashtable init complete!
ispserver: :database_init over
ispserver: :manage_init
ispserver: :subscribe events from /dev/video15 success !
ispserver: :hdr_mode_db: 16
ispserver: :hdr mode: 1
:XCAM ERROR RkAiqCalibTag.cpp:6457: calib_check_getID_by_name(6457): subtag: isp_output_type from parent tag: header is unknown, assert!!!
:XCAM ERROR RkAiqCalibTag.cpp:6535: calib_check_tag_attrs(6535): parent_tag_id:2 tag_id:1115 --- tag id is is wrong: min:0 max:1115
:XCAM ERROR RkAiqCalibTag.cpp:6581: calib_check_tag_attrs(6581): parent_tag_id:2 parent_tag_name:headertag_id:1115 tag_name:unknown --- ASSERT!!!
:XCAM ERROR RkAiqCalibTag.cpp:6457: calib_check_getID_by_name(6457): subtag: sdk_IQfile_Verify from parent tag: header is unknown, assert!!!
:XCAM ERROR RkAiqCalibTag.cpp:6535: calib_check_tag_attrs(6535): parent_tag_id:2 tag_id:1115 --- tag id is is wrong: min:0 max:1115
我没有管iq文件可以出图但是图很暗,你有遇到吗。
页:
[1]