移植rk628_csi_v4l2驱动到V853上,算是完成了,用命令/sample_driverVipp 0 1920 1080 2 30 0 10 /mnt,能测到MIPI信号了,回复如下
main:367 make devName[/dev/v4l-subdev35]
main:333 media_entity_desc: id[0x74], type[0x20000], name[sunxi_scaler.15], pads[2], links[0], major/minor[81/38]
main:350 sysname[/sys/dev/char/81:38], target[…/…/devices/platform/soc/5800800.vind/video4linux/v4l-subdev36]
main:367 make devName[/dev/v4l-subdev36]
main:321 enum media entity done! num:39
main:373 name of media_entity_desc we wanted is vin_video0
main:437 VIDIOC_G_FMT: resolution: 1920x1080, num_planes: 1
main:443 VIDIOC_G_PARM: capturemode:0x2
main:450 devname[/dev/video0] reqbufs: nr[5], type[9]
main:454 devname[/dev/video0] reqbufs: nr[5], type[9] done, ret[0]
main:510 devname[/dev/video0]: buffer 0 planes 0 mapped at address 0xb696d000
main:510 devname[/dev/video0]: buffer 1 planes 0 mapped at address 0xb6670000
main:510 devname[/dev/video0]: buffer 2 planes 0 mapped at address 0xb6373000
main:510 devname[/dev/video0]: b[ 50.356792] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
uffer 3 planes 0 mapped at address 0xb6076000
main:510 devname[/dev/video0]: buffer 4 planes 0 mapped at address 0xb5d79000
[ 50.418534] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
[ 50.468454] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
[ 50.518461] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
[ 50.568458] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
[ 50.618470] gc2053_mipi 1-0028: rk628_is_avi_ready PDEC_AVI_PB:0x2284a80d, avi_rcv_rdy:1
[ 50.695265] [VIN_ERR]isp0 configuration error
[ 50.700149] [VIN_ERR]isp0 width error
[ 50.704250] [VIN]__sunxi_isp_reset:isp0 reset!!!,ISP frame number is 0
[ 50.711563] [VIN_ERR]isp0 internal fifo full
[ 50.716344] [VIN_ERR]isp0 the write full flag of DMSC_AVG_FIFO
[ 50.722876] [VIN_ERR]isp0 the read empty flag of DMSC_AVG_FIFO
[ 50.729411] [VIN]__sunxi_isp_reset:isp0 reset!!!,ISP frame number is 0
[ 50.736759] [VIN_ERR]isp0 configuration error
[ 50.741638] [VIN_ERR]isp0 height error
[ 50.745833] [VIN]__sunxi_isp_reset:isp0 reset!!!,ISP frame number is 0
[ 50.753653] [gc2053_mipi]enable csi stream
[ 50.761955] [VIN_ERR]isp0 frame lost!
[ 50.766056] [VIN]__sunxi_isp_reset:isp0 reset!!!,ISP frame number is 0
[ 50.795335] [VIN_ERR]isp0 configuration error
[ 50.800217] [VIN_ERR]isp0 width error
[ 50.804317] [VIN]__sunxi_isp_reset:isp0 reset!!!,ISP frame number is 0
[ 50.828723] [VIN_ERR]isp0 configuration error
[ 50.833605] [VIN_ERR]isp0 width error
gc2053是原驱动文件的名称,直接在这个文件里改的
报错代码是写在sunxi_isp.c,static irqreturn_t isp_isr(int irq, void *priv)里的,求大佬给个排查思路