AnsweredAssumed Answered

Mt9v022 interface with sabresd board

Question asked by Gunasekaran Srininvasan on Feb 8, 2016
Latest reply on Oct 10, 2016 by glb glb

I have ported the mt9v022 driver from soc camera model to platform camera model as used in ov5642 driver present in the imx kernel (3.14.54v). And I added the device tree node for the image sensor. The driver is getting loaded and when I use v4l2-clt to capture image it shows time out error.

 

Board details: imx6qsabresd platform

 

capture command:

$ v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=gt.jpeg

 

Error details:

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

 

debug messages:

 

In MVC: mxc_v4l_open

   device name is Mxc Camera

In g_ifparm function

In ioctl_g_fmt_cap function

End of mxc_v4l_open: v2f pix widthxheight 288 x 352

End of mxc_v4l_open: crop_bounds widthxheight 640 x 480

End of mxc_v4l_open: crop_defrect widthxheight 640 x 480

End of mxc_v4l_open: crop_current widthxheight 640 x 480

On Open: Input to ipu size is 640 x 480

ipu csi init interface

In s_power function

In standby function

In ioctl_init function

In dev_init function

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl 80685600

   case VIDIOC_QUERYCAP

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0e85667

   case default or not supported

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445624

   case VIDIOC_REQBUFS

In MVC:mxc_streamoff

MVC: In mxc_free_frame_buf

In MVC:mxc_allocate_frame_buf - size=152064

cma: dma_alloc_from_contiguous(cma 80e0719c, count 38, align 6)

cma: dma_alloc_from_contiguous(): returned abcd9000

cma: dma_alloc_from_contiguous(cma 80e0719c, count 38, align 6)

cma: dma_alloc_from_contiguous(): returned abcd9800

cma: dma_alloc_from_contiguous(cma 80e0719c, count 38, align 6)

cma: dma_alloc_from_contiguous(): returned abcda000

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445609

   case VIDIOC_QUERYBUF

In MVC:mxc_v4l2_buffer_status

In MVC:mxc_mmap

   pgoff=0x3c100, start=0x76a53000, end=0x76a79000

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c044560f

   case VIDIOC_QBUF

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445609

   case VIDIOC_QUERYBUF

In MVC:mxc_v4l2_buffer_status

In MVC:mxc_mmap

   pgoff=0x3c140, start=0x76a2d000, end=0x76a53000

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c044560f

   case VIDIOC_QBUF

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445609

   case VIDIOC_QUERYBUF

In MVC:mxc_v4l2_buffer_status

In MVC:mxc_mmap

   pgoff=0x3c180, start=0x76a07000, end=0x76a2d000

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c044560f

   case VIDIOC_QBUF

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl 40045612

   case VIDIOC_STREAMON

In MVC:mxc_streamon

camera enable

In irq request

YUV420

IN IPU Enable CSI and enabling csi: 0

CSI 0 Enabled<6>Enabled CSI

In MVC:mxc_poll

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445611

   case VIDIOC_DQBUF

In MVC:mxc_v4l_dqueue

galcore 130000.gpu: pm_genpd_runtime_resume()

galcore 130000.gpu: pm_genpd_runtime_suspend()

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl 40045613

   case VIDIOC_STREAMOFF

In MVC:mxc_streamoff

IN IPU Disable CSI and disabling csi: 0

In irq requestCSI 0 Disabled

cma: dma_release_from_contiguous(page abcda800)

In MVC:mxc_free_frames

In MVC:mxc_v4l_close

In MVC:mxc_streamoff

In s_power function

In standby function

mxc_v4l_close: release resource

MVC: In mxc_free_frame_buf

cma: dma_release_from_contiguous(page abcd9000)

cma: dma_release_from_contiguous(page abcd9800)

cma: dma_release_from_contiguous(page abcda000)

In MVC:mxc_free_frames

 

Any help would be great.

Outcomes