1. 前言
全志V5 SDK里面有ov2710的sensor驱动,但是实际硬件需要根据具体特性进行修改
2. 修改sensor驱动(1)初始化添加如下:
(2) 修改lane数 Mipi驱动默认使用4条lane,由于这边mipi接口使用一条lane,需要修改lane数
Mipi驱动目录:
修改lane mapping:
3. I2C问题 /lib/modules/4.4.55 # insmod videobuf2-dma-contig.ko /lib/modules/4.4.55 # insmod vin_io.ko /lib/modules/4.4.55 # insmod ov2710_mipi.ko /lib/modules/4.4.55 # insmod vin_v4l2.ko [ 24.602928] [VIN_WARN]Get mipi clk failed! [ 24.607525] [VIN_WARN]Get mipi clk source failed! [ 24.613000] [VIN_ERR]ov2710_mipi request i2c3 adapter failed!这里需要使用的I2C3为注册
这里没有i2c-3
(1)看是否有被占用 没有 (2)查看dev下有无i2c设备—-没有 Twi3没有注册成功 (3)看启动log–发现twi也没错
(4)查看设备树
(5)修改sysconfig配置文件
发现是这里未开启I2C3
(6)正常加载如下
/lib/modules/4.4.55 # insmod videobuf2-dma-contig.ko /lib/modules/4.4.55 # insmod vin_io.ko /lib/modules/4.4.55 # insmod ov2710_mipi.ko [ 21.846634] ———-init_sensor /lib/modules/4.4.55 # insmod vin_v4l2.ko [ 25.116058] ——-sensor_probe, start [ 25.120406] ——-sensor_probe, end [ 25.183136] [ov2710_mipi]find ov2710 raw data camera sensor now. 4. 采集timeout问题 /tmp # ./csi_test_mplane_32bit 0 0 open /dev/video0 fd = 3 find sunxi_isp.0 is /dev/v4l-subdev7 open sunxi_isp.0 fd = 4 find sunxi_isp.1 is /dev/v4l-subdev9 open sunxi_isp.1 fd = 5 [ 116.779001] [ov2710_mipi]find ov2710 raw data camera sensor now. resolution got from sensor = 640*480 num_planes = 3 [ 116.795351] [ov2710_mipi]sensor_s_stream on = 1, 640*480 3007 VIDIOC_STREAMON ok VIDIOC_S_CTRL ok VIDIOC_S_CTRL ok [ 116.892322] [ov2710_mipi]s_fmt set width = 640, height = 480 [ 118.790309] [ov2710_mipi]sensor_s_stream on = 0, 640*480 3007 [ 118.797258] [ov2710_mipi]sensor_s_stream on = 1, 640*480 3007 select timeout VIDIOC_S_CTRL ok VIDIOC_S_CTRL ok [ 118.892334] [ov2710_mipi]s_fmt set width = 640, height = 480 [ 118.904676] [VIN]vin pipiline reset after interrupt timeout! [ 120.790309] [ov2710_mipi]sensor_s_stream on = 0, 640*480 3007 [ 120.797260] [ov2710_mipi]sensor_s_stream on = 1, 640*480 3007 select timeout VIDIOC_S_CTRL ok VIDIOC_S_CTRL ok [ 120.892331] [ov2710_mipi]s_fmt set width = 640, height = 480 [ 120.904334] [VIN]vin pipiline reset after interrupt timeout! [ 121.970883] [ov2710_mipi]sensor_s_stream on = 0, 640*480 3007<
5. 查硬件
(1)硬件连接
按如下接上排线, 不要接反了
(2)查PMU供电电压
有一路IOVDD使能DVDD的那路DCDC烧了,量出来电压是5v; 可能两个模组都已经烧了,因为都发热很严重过
(3)修改PMU供电配置&同时更换新的sensor模组
出图正常
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:全志平台ov2710 sensor驱动调试记录 https://www.yhzz.com.cn/a/13444.html