241209 多imx415运行调试
情况简述
之前买过一块RK3588-RD-V12,四个imx415摄像头工作正常,后板子经常硬重启,怀疑板卡出现问题,购买一块新的RK3588-RD-V12,调试imx415过程中发现问题,具体表现为:
- 四个摄像头只有两个注册成功
- 注册成功摄像头无法用gst命令工作
调试过程
开机启动dmesg
查看imx415摄像头设备信息,两个注册失败
rpdzkj@debian11:~$ dmesg | grep imx
[ 7.316092] imx415 2-001a: driver version: 00.01.08
[ 7.316102] imx415 2-001a: Get hdr mode failed! no hdr default
[ 7.316120] imx415 2-001a: Failed to get reset-gpios
[ 7.316132] imx415 2-001a: Failed to get power-gpios
[ 7.316138] imx415 2-001a: could not get default pinstate
[ 7.316142] imx415 2-001a: could not get sleep pinstate
[ 7.316166] imx415 2-001a: supply dvdd not found, using dummy regulator
[ 7.316227] imx415 2-001a: supply dovdd not found, using dummy regulator
[ 7.316254] imx415 2-001a: supply avdd not found, using dummy regulator
[ 7.384517] imx415 2-001a: Unexpected sensor id(000000), ret(-5)
[ 7.385045] imx415 2-0037: driver version: 00.01.08
[ 7.385062] imx415 2-0037: Get hdr mode failed! no hdr default
[ 7.385093] imx415 2-0037: Failed to get reset-gpios
[ 7.385114] imx415 2-0037: Failed to get power-gpios
[ 7.385124] imx415 2-0037: could not get default pinstate
[ 7.385131] imx415 2-0037: could not get sleep pinstate
[ 7.385164] imx415 2-0037: supply dvdd not found, using dummy regulator
[ 7.385274] imx415 2-0037: supply dovdd not found, using dummy regulator
[ 7.385318] imx415 2-0037: supply avdd not found, using dummy regulator
[ 7.442084] imx415 2-0037: Detected imx415 id 0000e0
[ 7.442895] imx415 3-001a: driver version: 00.01.08
[ 7.442946] imx415 3-001a: Get hdr mode failed! no hdr default
[ 7.443020] imx415 3-001a: Failed to get reset-gpios
[ 7.443073] imx415 3-001a: Failed to get power-gpios
[ 7.443097] imx415 3-001a: could not get default pinstate
[ 7.443115] imx415 3-001a: could not get sleep pinstate
[ 7.443171] imx415 3-001a: supply dvdd not found, using dummy regulator
[ 7.443441] imx415 3-001a: supply dovdd not found, using dummy regulator
[ 7.443552] imx415 3-001a: supply avdd not found, using dummy regulator
[ 7.505174] imx415 3-001a: Unexpected sensor id(000000), ret(-5)
[ 7.505775] imx415 3-0037: driver version: 00.01.08
[ 7.505803] imx415 3-0037: Get hdr mode failed! no hdr default
[ 7.505850] imx415 3-0037: Failed to get reset-gpios
[ 7.505885] imx415 3-0037: Failed to get power-gpios
[ 7.505901] imx415 3-0037: could not get default pinstate
[ 7.505913] imx415 3-0037: could not get sleep pinstate
[ 7.505949] imx415 3-0037: supply dvdd not found, using dummy regulator
[ 7.506113] imx415 3-0037: supply dovdd not found, using dummy regulator
[ 7.506188] imx415 3-0037: supply avdd not found, using dummy regulator
[ 7.568599] imx415 3-0037: Detected imx415 id 0000e0
[ 7.568686] rockchip-csi2-dphy csi2-dphy3: dphy3 matches m03_b_imx415 3-0037:bus type 5
[ 7.739599] rockchip-csi2-dphy csi2-dcphy1: dphy1 matches m01_b_imx415 2-0037:bus type 5
检测图像输出设备:
rpdzkj@debian11:~$ media-ctl -d /dev/media4 -e "rkisp_mainpath"
/dev/video44
rpdzkj@debian11:~$ media-ctl -d /dev/media4 -e "rkisp_selfpath"
/dev/video45
rpdzkj@debian11:~$ media-ctl -d /dev/media5 -e "rkisp_mainpath"
/dev/video53
rpdzkj@debian11:~$ media-ctl -d /dev/media5 -e "rkisp_selfpath"
/dev/video54
尝试gst播放,出现warning,且卡住,无播放进度
rpdzkj@debian11:~$ gst-launch-1.0 v4l2src device=/dev/video44 ! videoconvert! videoscale ! video/x-raw, width=800, height=1080 ! kmssink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
0:00:03.428497093 2241 0x556f34ac00 WARN v4l2 gstv4l2object.c:4497:gst_v4l2_object_probe_caps:<v4l2src0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
...
播放后再次查询dmesg
rpdzkj@debian11:~$ dmesg | grep imx
[ 141.570954] imx415 2-0037: s_stream: 1. 3864x2192, hdr: 0, bpp: 10
[ 141.628798] imx415 2-0037: set vblank 0x3a vts 2250
[ 141.630361] imx415 2-0037: set exposure(shr0) 8 = cur_vts(2250) - val(2242)
[ 141.631450] imx415 2-0037: set analog gain 0x0
[ 144.315430] imx415 2-0037: s_stream: 0. 3864x2192, hdr: 0, bpp: 10
[ 173.086958] imx415 2-0037: s_stream: 1. 3864x2192, hdr: 0, bpp: 10
[ 173.139052] imx415 2-0037: set vblank 0x3a vts 2250
[ 173.140487] imx415 2-0037: set exposure(shr0) 8 = cur_vts(2250) - val(2242)
[ 173.141411] imx415 2-0037: set analog gain 0x0
[ 179.792067] imx415 2-0037: s_stream: 0. 3864x2192, hdr: 0, bpp: 10
[ 189.553972] imx415 2-0037: s_stream: 1. 3864x2192, hdr: 0, bpp: 10
[ 189.614564] imx415 2-0037: set vblank 0x3a vts 2250
[ 189.615926] imx415 2-0037: set exposure(shr0) 8 = cur_vts(2250) - val(2242)
[ 189.617039] imx415 2-0037: set analog gain 0x0
[ 207.667478] imx415 2-0037: s_stream: 0. 3864x2192, hdr: 0, bpp: 10
fix.1. camera0默认不开启原因
根据 camera0默认不开启原因,调整硬件后,dmesg
得到:
[ 7.310055] imx415 2-001a: driver version: 00.01.08
[ 7.310070] imx415 2-001a: Get hdr mode failed! no hdr default
[ 7.310095] imx415 2-001a: Failed to get reset-gpios
[ 7.310113] imx415 2-001a: Failed to get power-gpios
[ 7.310121] imx415 2-001a: could not get default pinstate
[ 7.310127] imx415 2-001a: could not get sleep pinstate
[ 7.310154] imx415 2-001a: supply dvdd not found, using dummy regulator
[ 7.310240] imx415 2-001a: supply dovdd not found, using dummy regulator
[ 7.310278] imx415 2-001a: supply avdd not found, using dummy regulator
[ 7.375947] imx415 2-001a: Detected imx415 id 0000e0
[ 7.376262] imx415 2-0037: driver version: 00.01.08
[ 7.376272] imx415 2-0037: Get hdr mode failed! no hdr default
[ 7.376291] imx415 2-0037: Failed to get reset-gpios
[ 7.376303] imx415 2-0037: Failed to get power-gpios
[ 7.376309] imx415 2-0037: could not get default pinstate
[ 7.376314] imx415 2-0037: could not get sleep pinstate
[ 7.376332] imx415 2-0037: supply dvdd not found, using dummy regulator
[ 7.376398] imx415 2-0037: supply dovdd not found, using dummy regulator
[ 7.376432] imx415 2-0037: supply avdd not found, using dummy regulator
[ 7.446044] imx415 2-0037: Detected imx415 id 0000e0
[ 7.446295] imx415 3-001a: driver version: 00.01.08
[ 7.446308] imx415 3-001a: Get hdr mode failed! no hdr default
[ 7.446326] imx415 3-001a: Failed to get reset-gpios
[ 7.446338] imx415 3-001a: Failed to get power-gpios
[ 7.446344] imx415 3-001a: could not get default pinstate
[ 7.446348] imx415 3-001a: could not get sleep pinstate
[ 7.446363] imx415 3-001a: supply dvdd not found, using dummy regulator
[ 7.446427] imx415 3-001a: supply dovdd not found, using dummy regulator
[ 7.446454] imx415 3-001a: supply avdd not found, using dummy regulator
[ 7.506497] imx415 3-001a: Unexpected sensor id(000000), ret(-5)
[ 7.507651] imx415 3-0037: driver version: 00.01.08
[ 7.507693] imx415 3-0037: Get hdr mode failed! no hdr default
[ 7.507764] imx415 3-0037: Failed to get reset-gpios
[ 7.507816] imx415 3-0037: Failed to get power-gpios
[ 7.507840] imx415 3-0037: could not get default pinstate
[ 7.507857] imx415 3-0037: could not get sleep pinstate
[ 7.507911] imx415 3-0037: supply dvdd not found, using dummy regulator
[ 7.508145] imx415 3-0037: supply dovdd not found, using dummy regulator
[ 7.508325] imx415 3-0037: supply avdd not found, using dummy regulator
[ 7.563449] imx415 3-0037: Detected imx415 id 0000e0
[ 7.563540] rockchip-csi2-dphy csi2-dphy3: dphy3 matches m03_b_imx415 3-0037:bus type 5
[ 7.735428] rockchip-csi2-dphy csi2-dcphy0: dphy0 matches m00_f_imx415 2-001a:bus type 5
[ 7.737064] rockchip-csi2-dphy csi2-dcphy1: dphy1 matches m01_b_imx415 2-0037:bus type 5
三个摄像头注册成功,且用gst运行video44,仍无法播放,怀疑dts存在问题。
fix_tmp
参考mipi-摄像头-与isp-和i2c-的对应关系是怎样的如何匹配的4路mipi-相机
标签:241209,get,0037,imx415,001a,found,using,调试 From: https://www.cnblogs.com/wunyje/p/18600488