<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248660#M22305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think it's 12bit for the YUV422&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 04:53:06 GMT</pubDate>
    <dc:creator>levlvovsky</dc:creator>
    <dc:date>2015-01-30T04:53:06Z</dc:date>
    <item>
      <title>i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248636#M22281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented an OV5647 camera board which connects to my i.MX6 quad Wandboard.&amp;nbsp; I am having trouble getting images from the driver and need some help figuring out why.&amp;nbsp; I have reviewed about a dozen related threads on this forum, and tried to carefully implement their suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps I have taken so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Started with working kernel (based on John Weber's Yocto Kernel) and board which is known to work with OV5640 (YUV sensor) in this configuration.&amp;nbsp; rootfs is Linaro armhf with desktop ubuntu (so I can use VLC and other known tools for testing).&lt;/LI&gt;&lt;LI&gt;Made sure that the BSP sets GPR1 19 to 0 (select MIPI CSI interface to IPU0 CSI 0), and that the camera driver is detected by I2C.&lt;/LI&gt;&lt;LI&gt;Built a driver, OV5647_mipi.c, based on OV5640_mipi.c with the following changes:&lt;OL&gt;&lt;LI&gt;Replaced modes (register programming code) with code appropriate to generate a 1280x960 30 fps preview on the OV5647&lt;/LI&gt;&lt;LI&gt;Changed the chip_id high and low bytes to 0x56 and 0x47 respectively&lt;/LI&gt;&lt;LI&gt;Changed ov5647_data.pix.pixelformat to V4L2_PIX_FMT_SBGGR10&lt;/LI&gt;&lt;LI&gt;Added code to detect this and call mipi_csi2_set_datatype with MIPI_DT_RAW10&lt;/LI&gt;&lt;LI&gt;Tried steps 3, 4 with GREY and RAW10&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Added support for V4L2_PIX_FMT_SBGGR10 and V4L2_PIX_FMT_GREY to&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;drivers\media\video\mxc\capture\ipu_csi_enc.c&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;drivers\media\video\mxc\capture\mxc_v4l2_capture.c&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #000000; font-family: sans-serif;"&gt;drivers\mxc\ipu3\ipu_capture.c&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;drivers\mxc\ipu3\ipu_common.c&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;drivers\mxc\ipu3\ipu_param_mem.h&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Tested&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Sensor is correctly detected on I2C&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Driver reports MIPI clock stabilized okay&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Driver reports data being received from sensor&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;I have to guess that what is going on is that the image format is not being handled correctly, but I can't tell from the tracing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Some specific questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;How can I verify that I am talking to the correct IPU, CSI port and virtual channel?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Despite the driver's claim that it is receiving data, is it possible that this is a signal integrity issue?&amp;nbsp; I have not been able to successfully probe the lanes (I see a ton of common mode noise)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Are there steps I have missed to support a 10 bit Bayer sensor just as grayscale?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;What are the likely reasons why it is not getting frame interrupts?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Help!&amp;nbsp;&amp;nbsp; :smileyhappy:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;The following is what I get with DEBUG tracing on in the drivers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[ 1160.505314] End of mxc_v4l2_g_fmt: crop_current widthxheight 1280 x 960&lt;/P&gt;&lt;P&gt;[ 1160.505352] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505360] In MVC: mxc_v4l_do_ioctl c0405602&lt;/P&gt;&lt;P&gt;[ 1160.505373] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505380] In MVC: mxc_v4l_do_ioctl c0405602&lt;/P&gt;&lt;P&gt;[ 1160.505458] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505465] In MVC: mxc_v4l_do_ioctl c0445624&lt;/P&gt;&lt;P&gt;[ 1160.505472]&amp;nbsp;&amp;nbsp;&amp;nbsp; case default or not supported&lt;/P&gt;&lt;P&gt;[ 1160.505528] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505535] In MVC: mxc_v4l_do_ioctl c02c563a&lt;/P&gt;&lt;P&gt;[ 1160.505540]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_CROPCAP&lt;/P&gt;&lt;P&gt;[ 1160.505547] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505552] In MVC: mxc_v4l_do_ioctl 4014563c&lt;/P&gt;&lt;P&gt;[ 1160.505561]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_S_CROP&lt;/P&gt;&lt;P&gt;[ 1160.505567]&amp;nbsp;&amp;nbsp;&amp;nbsp; Cropping Input to ipu size 1280 x 960&lt;/P&gt;&lt;P&gt;[ 1160.505678] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.505686] In MVC: mxc_v4l_do_ioctl c0145608&lt;/P&gt;&lt;P&gt;[ 1160.505693]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_REQBUFS&lt;/P&gt;&lt;P&gt;[ 1160.505697] In MVC:mxc_streamoff&lt;/P&gt;&lt;P&gt;[ 1160.505702] MVC: In mxc_free_frame_buf&lt;/P&gt;&lt;P&gt;[ 1160.505709] In MVC:mxc_allocate_frame_buf - size=152064&lt;/P&gt;&lt;P&gt;[ 1160.508739] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.508746] In MVC: mxc_v4l_do_ioctl c0445609&lt;/P&gt;&lt;P&gt;[ 1160.508752]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QUERYBUF&lt;/P&gt;&lt;P&gt;[ 1160.508759] In MVC:mxc_v4l2_buffer_status&lt;/P&gt;&lt;P&gt;[ 1160.508904] In MVC:mxc_mmap&lt;/P&gt;&lt;P&gt;[ 1160.508911]&amp;nbsp;&amp;nbsp;&amp;nbsp; pgoff=0x184c0, start=0x45dbd000, end=0x45de3000&lt;/P&gt;&lt;P&gt;[ 1160.508933] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.508939] In MVC: mxc_v4l_do_ioctl c0445609&lt;/P&gt;&lt;P&gt;[ 1160.508944]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QUERYBUF&lt;/P&gt;&lt;P&gt;[ 1160.508949] In MVC:mxc_v4l2_buffer_status&lt;/P&gt;&lt;P&gt;[ 1160.508966] In MVC:mxc_mmap&lt;/P&gt;&lt;P&gt;[ 1160.508972]&amp;nbsp;&amp;nbsp;&amp;nbsp; pgoff=0x18300, start=0x46549000, end=0x4656f000&lt;/P&gt;&lt;P&gt;[ 1160.508987] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.508992] In MVC: mxc_v4l_do_ioctl c0445609&lt;/P&gt;&lt;P&gt;[ 1160.508997]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QUERYBUF&lt;/P&gt;&lt;P&gt;[ 1160.509002] In MVC:mxc_v4l2_buffer_status&lt;/P&gt;&lt;P&gt;[ 1160.509013] In MVC:mxc_mmap&lt;/P&gt;&lt;P&gt;[ 1160.509019]&amp;nbsp;&amp;nbsp;&amp;nbsp; pgoff=0x18340, start=0x46700000, end=0x46726000&lt;/P&gt;&lt;P&gt;[ 1160.509033] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509039] In MVC: mxc_v4l_do_ioctl c0445609&lt;/P&gt;&lt;P&gt;[ 1160.509044]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QUERYBUF&lt;/P&gt;&lt;P&gt;[ 1160.509049] In MVC:mxc_v4l2_buffer_status&lt;/P&gt;&lt;P&gt;[ 1160.509058] In MVC:mxc_mmap&lt;/P&gt;&lt;P&gt;[ 1160.509064]&amp;nbsp;&amp;nbsp;&amp;nbsp; pgoff=0x19f00, start=0x467ed000, end=0x46813000&lt;/P&gt;&lt;P&gt;[ 1160.509085] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509092] In MVC: mxc_v4l_do_ioctl c044560f&lt;/P&gt;&lt;P&gt;[ 1160.509097]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QBUF&lt;/P&gt;&lt;P&gt;[ 1160.509104] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509110] In MVC: mxc_v4l_do_ioctl c044560f&lt;/P&gt;&lt;P&gt;[ 1160.509115]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QBUF&lt;/P&gt;&lt;P&gt;[ 1160.509121] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509126] In MVC: mxc_v4l_do_ioctl c044560f&lt;/P&gt;&lt;P&gt;[ 1160.509131]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QBUF&lt;/P&gt;&lt;P&gt;[ 1160.509138] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509143] In MVC: mxc_v4l_do_ioctl c044560f&lt;/P&gt;&lt;P&gt;[ 1160.509148]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_QBUF&lt;/P&gt;&lt;P&gt;[ 1160.509154] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.509160] In MVC: mxc_v4l_do_ioctl 40045612&lt;/P&gt;&lt;P&gt;[ 1160.509166]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_STREAMON&lt;/P&gt;&lt;P&gt;[ 1160.509170] In MVC:mxc_streamon&lt;/P&gt;&lt;P&gt;[ 1160.509175] IPU:In prp_enc_enabling_tasks&lt;/P&gt;&lt;P&gt;[ 1160.509981] In prp_enc_setup&lt;/P&gt;&lt;P&gt;[ 1160.509988] YUV420&lt;/P&gt;&lt;P&gt;[ 1160.510026] eba 184c0000&lt;/P&gt;&lt;P&gt;[ 1160.510033] eba 18300000&lt;/P&gt;&lt;P&gt;[ 1160.510230] In MVC:mxc_poll&lt;/P&gt;&lt;P&gt;[ 1160.510243] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1160.510250] In MVC: mxc_v4l_do_ioctl c0445611&lt;/P&gt;&lt;P&gt;[ 1160.510256]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_DQBUF&lt;/P&gt;&lt;P&gt;[ 1160.510261] In MVC:mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;[ 1170.504999] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;[ 1170.511966] In MVC:mxc_poll&lt;/P&gt;&lt;P&gt;[ 1170.511983] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1170.511991] In MVC: mxc_v4l_do_ioctl c0445611&lt;/P&gt;&lt;P&gt;[ 1170.511997]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_DQBUF&lt;/P&gt;&lt;P&gt;[ 1170.512001] In MVC:mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;[ 1180.504959] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;[ 1180.511757] In MVC:mxc_poll&lt;/P&gt;&lt;P&gt;[ 1180.511773] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[ 1180.511783] In MVC: mxc_v4l_do_ioctl c0445611&lt;/P&gt;&lt;P&gt;[ 1180.511789]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_DQBUF&lt;/P&gt;&lt;P&gt;[ 1180.511794] In MVC:mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;[ 1190.504954] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 17:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248636#M22281</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-08-09T17:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248637#M22282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an i.MX6 porting guide for Linux BSP. Please read the Chapter 7 for the CSI porting details. Hope this information can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 03:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248637#M22282</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2013-08-13T03:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248638#M22283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jimmy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have just read through the chapter and I don't see any significant mention of the MIPI interface. Don't I need to make sure the MIPI capture is working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This guide would have been very helpful to me as I was implementing the driver. I had to figure out And guess at a bunch of things that it explains. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any thoughts on what would lead to the MIPI PHY having correct state and no errors, but no images coming through?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 04:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248638#M22283</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-08-13T04:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248639#M22284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More information here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/332645"&gt;Re: Some Experience When Enable MIPI Camera&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248639#M22284</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2013-08-13T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248640#M22285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have reviewed that in detail, verifying register settings all the way through.&amp;nbsp; It doesn't help with figuring out why I am not getting frame interrupts.&amp;nbsp; From what I can tell it could be any of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Incorrectly configured CSI2IPU gasket&lt;/P&gt;&lt;P&gt;2. Bayer image format not supported, or special magic needed to get it copied into memory (there are many threads on this topic and I have reviewed them all carefully.&lt;/P&gt;&lt;P&gt;3. MIPI connection not working correctly (seems not to be the issue since error registers are clear and state is 0x300)&lt;/P&gt;&lt;P&gt;4. Camera not correctly configured&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be very helpful to have some feedback on which of these are likely to be problematic, based on the dmesg trace above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing: even though the MIPI PHY state is 0x300, I have not been able to see any data on my scope, and there are high levels of noise throughout the wandboard system.&amp;nbsp; Could it be that the PHY state is okay, but in fact the camera is not sending any data?&amp;nbsp; Also, I never see the PHY state change to 0x330, which I would expect if either of the data lanes goes into stop mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 12:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248640#M22285</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-08-13T12:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248641#M22286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More info (I've managed to enable some IPU tracing):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 264.365866] imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x00001B00&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 264.365875] imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE = 0x03BF04FF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948470] Grey/Generic&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948485] imx-ipuv3 imx-ipuv3.0: init channel = 19&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948508] imx-ipuv3 imx-ipuv3.0: resizing from 960 -&amp;gt; 960 pixels, downsize=0, resize=1.0 (reg=8192)&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948527] imx-ipuv3 imx-ipuv3.0: initializing idma ch 20 @ ea8c0500&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948550] imx-ipuv3 imx-ipuv3.0: ch 20 word 0 - 00000000 00000000 00000000 E0002800 000EFC9F&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948563] imx-ipuv3 imx-ipuv3.0: ch 20 word 1 - 02D80000 005B0000 20C3C000 00027FC0 00000000&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948573] imx-ipuv3 imx-ipuv3.0: PFS 0x6,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948582] imx-ipuv3 imx-ipuv3.0: BPP 0x5,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948591] imx-ipuv3 imx-ipuv3.0: NPB 0xf&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948598] imx-ipuv3 imx-ipuv3.0: FW 1279,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948606] imx-ipuv3 imx-ipuv3.0: FH 959,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948614] imx-ipuv3 imx-ipuv3.0: EBA0 0x16c00000&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948622] imx-ipuv3 imx-ipuv3.0: EBA1 0x16c00000&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948631] imx-ipuv3 imx-ipuv3.0: Stride 2559&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948638] imx-ipuv3 imx-ipuv3.0: scan_order 0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948646] imx-ipuv3 imx-ipuv3.0: uv_stride 0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948656] imx-ipuv3 imx-ipuv3.0: u_offset 0x0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948664] imx-ipuv3 imx-ipuv3.0: v_offset 0x0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948672] imx-ipuv3 imx-ipuv3.0: Width0 0+1,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948679] imx-ipuv3 imx-ipuv3.0: Width1 0+1,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948688] imx-ipuv3 imx-ipuv3.0: Width2 0+1,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948695] imx-ipuv3 imx-ipuv3.0: Width3 0+1,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948703] imx-ipuv3 imx-ipuv3.0: Offset0 0,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948712] imx-ipuv3 imx-ipuv3.0: Offset1 0,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948720] imx-ipuv3 imx-ipuv3.0: Offset2 0,&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948727] imx-ipuv3 imx-ipuv3.0: Offset3 0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948741] eba 18c00000&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948749] eba 16000000&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948756] Calling enc_enable_csi&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.948763] Enabling ipu 0 with csi 0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.949043] In MVC:mxc_poll&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.949063] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.949072] In MVC: mxc_v4l_do_ioctl c0445611&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.949080]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_DQBUF&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 265.949084] In MVC:mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.947279] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.955480] In MVC:mxc_poll&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.955501] In MVC:mxc_v4l_ioctl&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.955510] In MVC: mxc_v4l_do_ioctl c0445611&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.955516]&amp;nbsp;&amp;nbsp;&amp;nbsp; case VIDIOC_DQBUF&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 275.955520] In MVC:mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 285.955111] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248845] IPU_CONF =&lt;/TD&gt;&lt;TD&gt;0x100006A4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248850] IDMAC_CONF =&lt;/TD&gt;&lt;TD&gt;0x0000002F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248856] IDMAC_CHA_EN1 =&lt;/TD&gt;&lt;TD&gt;0x00900000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248862] IDMAC_CHA_EN2 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248868] IDMAC_CHA_PRI1 =&lt;/TD&gt;&lt;TD&gt;0x18800001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248875] IDMAC_CHA_PRI2 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248880] IDMAC_BAND_EN1 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248886] IDMAC_BAND_EN2 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248893] IPU_CHA_DB_MODE_SEL0 =&lt;/TD&gt;&lt;TD&gt;0x00100000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248899] IPU_CHA_DB_MODE_SEL1 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248906] IPU_CHA_TRB_MODE_SEL0 =&lt;/TD&gt;&lt;TD&gt;0x00800000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248913] IPU_CHA_TRB_MODE_SEL1 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248919] DMFC_WR_CHAN =&lt;/TD&gt;&lt;TD&gt;0x00000090&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248925] DMFC_WR_CHAN_DEF =&lt;/TD&gt;&lt;TD&gt;0x202020F6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248931] DMFC_DP_CHAN =&lt;/TD&gt;&lt;TD&gt;0x000096CA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248937] DMFC_DP_CHAN_DEF =&lt;/TD&gt;&lt;TD&gt;0x2020F6F6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248943] DMFC_IC_CTRL =&lt;/TD&gt;&lt;TD&gt;0x00000002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248949] IPU_FS_PROC_FLOW1 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248954] IPU_FS_PROC_FLOW2 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248961] IPU_FS_PROC_FLOW3 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248967] IPU_FS_DISP_FLOW1 =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248973] IPU_VDIC_VDI_FSIZE =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248978] IPU_VDIC_VDI_C =&lt;/TD&gt;&lt;TD&gt;0x00000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&amp;nbsp; 780.248984] IPU_IC_CONF =&lt;/TD&gt;&lt;TD&gt;0x00000001&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This tells me that (1) I am setting the format and size for the IPU registers correctly (Step A) 4. in the "Some Experience when enabling MIPI.." guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still no frames, and no error message telling me what is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more clue however.&amp;nbsp; I can only attempt to capture once from the device.&amp;nbsp; The second time I capture, I get the following error and have to reboot to start capturing again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 440.222233] IPU:In prp_enc_enabling_tasks&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 440.230557] imx-ipuv3 imx-ipuv3.0: handler already installed on irq 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This suggests that the IPU is the problem, and that it is not getting cleaned up properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to dump CPU registers from the command line, in order to inspect the state of all these registers?&amp;nbsp; Or is that just something I have to code into (or enable) in the kernel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 15:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248641#M22286</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-08-13T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248642#M22287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;I can now get frames (although not actually correct width/height, etc), with a little bit of acrobatics:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I set the format of the driver on line 1622 of the driver file to V4L2_PIX_FMT_UYVY.&lt;/LI&gt;&lt;LI&gt;Compile the driver&lt;/LI&gt;&lt;LI&gt;Unload and reload the capture drivers&lt;/LI&gt;&lt;LI&gt;Attempt capture -&amp;gt; it fails&lt;/LI&gt;&lt;LI&gt;Set the pixel format back to V4L2_PIX_FMT_SBGGR10, recompile, reload drivers&lt;/LI&gt;&lt;LI&gt;Attempt capture -&amp;gt; it works&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it is working, I get "Warning IPU_INT_STAT_5 = 1", which seems to mean that the EOF interrupt is already set.&amp;nbsp; This would make sense since I am now getting frames with incorrect vertical sync (chopped images).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, if anyone with knowledge of the IPU and Bayer / Generic capture can comment, I would be most grateful!&amp;nbsp; I am more than a little surprised at the lack of support from Freescale on this, especially given that I intend to share both my driver and tips on supporting Bayer and Generic capture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 17:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248642#M22287</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-08-30T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248643#M22288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Edit Oct 24 2014: After receiving various messages from other users about what patches we have used, I have attached the relevant patches in a zip file.&amp;nbsp; These contain the MT9M031 driver, OV5647 driver and changes to the freescale kernel to (1) enable Greyscale/Raw capture and (2) allow correctly synch'd capture from a MIPI channel other than channel 0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally got it working a couple of days ago.&amp;nbsp; I had a couple of problems but basically I hit and resolved the following issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;No useful error prints on dmesg -&amp;gt; add #define DEBUG before #include &amp;lt;device.h&amp;gt;, or add CFLAGS_ipu_common.o := -DDEBUG to the Makefile for ipu_common.c (as an example).&lt;/LI&gt;&lt;LI&gt;MIPI from the camera -- I had the wrong register settings-- I was missing the setting that told the sensor to start streaming MIPI data.&amp;nbsp; The symptom here was 0x300/0x330 on the MIPI status register, and both error registers clear, but no data on the bus with the scope.&amp;nbsp; To see data on my fairly noisy Wandboard I had to measure at 10 ns/div in differential mode between the pairs (5GS/s scope, 1.5GHz probes).&lt;/LI&gt;&lt;LI&gt;Eliminating CSI-&amp;gt;IC-&amp;gt;MEM path in mxc_v4l2_capture-- I just took out the code that made this an option.&amp;nbsp; Eventually I will add code to automatically remove the option when Bayer/Grey, but for now this works.&lt;/LI&gt;&lt;LI&gt;Switching to 8 bit sensor output.&amp;nbsp; Shouldn't have to do this, but I was unable to get the image size right with 10 bit data (I was using 2 * width * height).&amp;nbsp; This seems to have been a big part of the missing EOF interrupt.&lt;/LI&gt;&lt;LI&gt;Grey worked, Bayer didn't.&amp;nbsp; Not sure why, but I couldn't get Bayer working.&amp;nbsp; When I added support for Grey, I started getting images.&amp;nbsp; Bayer should work, but doesn't seem to for me.&lt;/LI&gt;&lt;LI&gt;Made the capture client request Grey images.&amp;nbsp; If the capture client was requesting the image in a different format (default was UYVY or something), then the image would appear with the wrong format-- clearly having IPU colourspace processing done.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point I am getting Bayer patter data in memory and will soon look into using the graphics coprocessor or IPU to handle demosaicing.&amp;nbsp; When the code is a little cleaner I will also post my kernel patch and driver file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248643#M22288</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-09-06T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248644#M22289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the details of your work. I am working on to get a camera sensor working on a Wandboard Dual. The sensor appears to be somewhat similar to OV5647, at least in that sense that it is sending out the data over MIPI CSI-2 in raw Bayer 8 or 10bit format. I have now confirmed that I have the MIPI_CSI working properly as the DPHY status register is alternating between 0x300 and 0x330 during capture and the error bits are all clear. However, other than that, I get no data through the IPU pipeline. Looking at your description the reason for that is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I would be very much interested in seeing your code changes you have done. Have published them anywhere yet? Even if they are not cleaned up yet, I think those would be quite useful. Maybe I could somehow participate with fixing things as I appear to be facing the same problem here too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 13:25:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248644#M22289</guid>
      <dc:creator>timokokkonen</dc:creator>
      <dc:date>2013-10-02T13:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248645#M22290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My changes to the kernel can be found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mcmordie/linux/compare/johnweber:wandboard_imx_3.0.35_4.0.0...wandboard_imx_3.0.35_4.0.0" target="test_blank"&gt;https://github.com/mcmordie/linux/compare/johnweber:wandboard_imx_3.0.35_4.0.0...wandboard_imx_3.0.35_4.0.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t have my camera driver up in a public place yet, but anyway that&lt;/P&gt;&lt;P&gt;won’t help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there were substantial changes to enable grayscale mode and a&lt;/P&gt;&lt;P&gt;more minor change to get the MIPI clock rate right.  It was also important&lt;/P&gt;&lt;P&gt;to use the correct image capture path (CSI-&amp;gt;MEM) and to request the GRAY&lt;/P&gt;&lt;P&gt;format when capturing.  Otherwise the drivers try to handle the colourspace&lt;/P&gt;&lt;P&gt;conversion and fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From:&lt;/STRONG&gt; Timo Kokkonen &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sent:&lt;/STRONG&gt; October-02-13 9:26 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To:&lt;/STRONG&gt; Dave McMordie&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subject:&lt;/STRONG&gt; Re:  - i.MX6 OV5647 Bayer sensor driver (ERROR:&lt;/P&gt;&lt;P&gt;v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;timeout enc_counter 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Timo&lt;/P&gt;&lt;P&gt;Kokkonen&amp;lt;https://community.freescale.com/people/timokokkonen?et=watches.email.thread&amp;gt;in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i.MX Community&lt;/STRONG&gt; - View the full&lt;/P&gt;&lt;P&gt;discussion&amp;lt;https://community.freescale.com/message/353698?et=watches.email.thread#353698&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 21:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248645#M22290</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-10-02T21:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248646#M22291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can now see data flowing through the pipeline in the GREY mode. Although I don't think I am even close yet in having the data through correctly. And the behaviour is not very consistent with respect to the different capturing test applications I used (gstreamer, v4l2 capture example, Freescale v4l2 unit tests). But clearly I am making big progress here now. Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 07:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248646#M22291</guid>
      <dc:creator>timokokkonen</dc:creator>
      <dc:date>2013-10-03T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248647#M22292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timo, did you check that virtual channel is properly set on the ov5647 side? I had the same outcome as you did working with ov9740 and the reason was that imx6 software expects vc=1 while ov9740 default is vc=0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248647#M22292</guid>
      <dc:creator>DraganOstojic</dc:creator>
      <dc:date>2013-10-03T20:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248648#M22293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The virtual channel should be fine as I am getting the data all the way through to the gstreamer buffers and I am able save the captured image on a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is that apparently the data that gets through is in the raw bayer format but the pixelformat information doesn't come correctly with the image stream. The data gets through if I configure the pixel format to V4L2_PIX_FMT_GREY, but that's not what the image data is really. If I configure the sensor and CSI2 into RAW10 mode, the captured image it looks like there are in fact four frames instead of one. That would make sense if the data that gets through is in bayer format but it is being interpreted as YUV or RGB. One reason for that is obviously the V4L2_PIX_FMT_GREY which I am using. Probably I need to add support for V4L2_PIX_FMT_SRGGB8 and V4L2_PIX_FMT_SRGGB10 at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I haven't quite figured out yet how the data flows through the layers, so I am not there yet. I will let you know when I have some progress.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 09:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248648#M22293</guid>
      <dc:creator>timokokkonen</dc:creator>
      <dc:date>2013-10-04T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248649#M22294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you are well on the way if you are receiving the full&lt;/P&gt;&lt;P&gt;resolution bayer format images.  I was not able to get the RG8/RG10&lt;/P&gt;&lt;P&gt;versions working—like you it returned an image which it had tried to colour&lt;/P&gt;&lt;P&gt;convert, and the result was a 4x4 grid of subimages.  Since there I will&lt;/P&gt;&lt;P&gt;need to debayer the images in software anyhow, I left it at that.  The&lt;/P&gt;&lt;P&gt;tracing I did do confirmed the correct CPMEM settings for each raw mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other threads in which some people report being able to capture&lt;/P&gt;&lt;P&gt;in RAW, but it was not clear to me how they got it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From:&lt;/STRONG&gt; Timo Kokkonen &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sent:&lt;/STRONG&gt; October-04-13 5:45 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To:&lt;/STRONG&gt; Dave McMordie&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subject:&lt;/STRONG&gt; Re:  - i.MX6 OV5647 Bayer sensor driver (ERROR:&lt;/P&gt;&lt;P&gt;v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue&lt;/P&gt;&lt;P&gt;timeout enc_counter 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Timo&lt;/P&gt;&lt;P&gt;Kokkonen&amp;lt;https://community.freescale.com/people/timokokkonen?et=watches.email.thread&amp;gt;in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i.MX Community&lt;/STRONG&gt; - View the full&lt;/P&gt;&lt;P&gt;discussion&amp;lt;https://community.freescale.com/message/354072?et=watches.email.thread#354072&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248649#M22294</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2013-10-04T12:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248650#M22295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only Bayer-related FOURCCs which the IPU Capture Driver would recognize are &lt;/P&gt;&lt;P&gt;#define IPU_PIX_FMT_GENERIC fourcc('I', 'P', 'U', '0') /*!&amp;lt; IPU Generic Data */&lt;/P&gt;&lt;P&gt;#define IPU_PIX_FMT_GENERIC_32 fourcc('I', 'P', 'U', '1') /*!&amp;lt; IPU Generic Data */&lt;/P&gt;&lt;P&gt;#define IPU_PIX_FMT_GENERIC_16 fourcc('I', 'P', 'U', '2') /*!&amp;lt; IPU Generic Data */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formats "V4L2_PIX_FMT_SBGGR10" or "V4L2_PIX_FMT_SBGGR16" are not going to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try 0x32555049 instead in your driver -- it is "IPU2" and will get data stream going.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 16:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248650#M22295</guid>
      <dc:creator>ilkodossev</dc:creator>
      <dc:date>2014-05-09T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248651#M22296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Sub:Ov9712 camera with Imx6 Bayer format support&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i have read your threads regarding the Bayer format support for imx6 .I have used &lt;STRONG&gt;imx6 solo&lt;/STRONG&gt; processor with ov9712 omni vision camera in parallel port interface .&lt;/P&gt;&lt;P&gt;Ov9712 1MP&amp;nbsp; camera&amp;nbsp; does not have ISP and supports &lt;STRONG&gt;output formats (10-bit) raw RGB data&lt;/STRONG&gt;, our camera connection in hardware side sensor-&amp;gt;imx6 solo processor 8 bit (CSIO_Data12-CSIO_Data19).How can i achieve&amp;nbsp; this&amp;nbsp; conversion from camera&amp;nbsp; RGB bayer datas output&amp;nbsp;&amp;nbsp; to YUV422 format .IPU does not support the bayer format so i need to convert bayer data&amp;nbsp; to YUV422 data before giving this data to IPU unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please suggest your ideas how to access this bayer data format in imx6 solo processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248651#M22296</guid>
      <dc:creator>venkatesh_pvsm</dc:creator>
      <dc:date>2014-05-26T14:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248652#M22297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;I am trying to make ov8865 sensor to work with wandboard dual by modifying the ov5640_mipi driver. All the I2C communication seems to be OK, then I get the same "ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0" error. Can you please clarify for me couple of thing from this post?&lt;/P&gt;&lt;P&gt;1) How can you see that "&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;Driver reports data being received from sensor" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;2) What's the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MIPI status register" ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;3) What' the setting to tell &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sensor to start streaming the MIPI data? Is it the 0x4202 register?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Lev.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248652#M22297</guid>
      <dc:creator>levlvovsky</dc:creator>
      <dc:date>2014-10-29T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248653#M22298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this means that we got 0x300 or 0x330 from the MIPI status register (I am going from memory here and it has been a long time).&amp;nbsp; These values mean the MIPI bus is set up correctly and packets are being received on it.&amp;nbsp; The MIPI status register is a register (documented in the i.MX6Q reference manual in the chapter on the MIPI to CSI gasket) which tells you whether the MIPI bus is able to communicate with your sensor or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you have to tell your sensor to start sending frames using the I2C commands, and then you should start receiving data on the MIPI bus.&amp;nbsp; Once you are receiving data correctly you have to make sure the data format and size are correct and that the correct capture channel is configured (for me this was CSI-&amp;gt;MEM, not CSI-&amp;gt;IPU-&amp;gt;MEM (again going from memory, but something like that-- it had to be direct to memory since I wasn't decoding YUV).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The register to start streaming depends on your sensor.&amp;nbsp; Contact your OmniVision rep for support.&amp;nbsp; I didn't have any direct sales contact with OmniVision, and they still sent me the datasheets and provided register settings to get the OV5647 up and running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're feeling lost, I was too.&amp;nbsp; It took me a while to get my head around the data path, but once I did there were only two or three things to sort out.&amp;nbsp; There is a somewhat helpful checklist on this forum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.nxp.com/docs/DOC-94312" title="https://community.freescale.com/docs/DOC-94312"&gt;https://community.freescale.com/docs/DOC-94312&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248653#M22298</guid>
      <dc:creator>davemcmordie</dc:creator>
      <dc:date>2014-10-29T21:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248654#M22299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the sensor to send image data. For some reason I get data only when I set the sensor output to 8bit and declare image format as&amp;nbsp; V4L2_PIX_FMT_GREY. If I declare format as&amp;nbsp; V4L2_PIX_FMT_SBGGR8 bayer (which is right for that sensor in 8bit setting) then I get nothing. The data is also corrupted - rather than getting one big image I get 16 small images instead.&lt;/P&gt;&lt;P&gt;What the difference between &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CSI-&amp;gt;MEM and CSI-&amp;gt;IPU-&amp;gt;MEM? I tried changing &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CSI-&amp;gt;IPU-&amp;gt;MEM to &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CSI-&amp;gt;MEM but didn't notice any change. I think the Ov8865 sensor gives output only in the raw bayer format.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Lev.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 16:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248654#M22299</guid>
      <dc:creator>levlvovsky</dc:creator>
      <dc:date>2014-11-14T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248655#M22300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also am getting a 4x4 grid of smaller images instead of one normal image.&lt;/P&gt;&lt;P&gt;But my sensor is outputting YUV422.&lt;/P&gt;&lt;P&gt;Any idea what might be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 07:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OV5647-Bayer-sensor-driver-ERROR-v4l2-capture-mxc-v4l/m-p/248655#M22300</guid>
      <dc:creator>meflo</dc:creator>
      <dc:date>2015-01-29T07:17:10Z</dc:date>
    </item>
  </channel>
</rss>

