<?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>i.MX ProcessorsのトピックIssue in capturing images over MIPI-CSI</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1234979#M169880</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am integrating a third party ISP and Camera Sensor on i.MX8M Mini EVK over MIPI-CSI. I have integrated a driver into Yocto L5.4.47-2.2.0 and I am observing data and clock on the MIPI lines from ISP+Sensor. But I am unable to capture any images on i.MX8MM side.&lt;/P&gt;&lt;P&gt;Gstreamer command used to capture the image:&lt;BR /&gt;gst-launch-1.0 -v v4l2src device="/dev/video0" num-buffers=1 ! 'video/x-raw, width=(int)640, height=(int)480, format=(string)UYVY' ! jpegenc ! filesink location=/home/root/test.jpg&lt;/P&gt;&lt;P&gt;The gstreamer waits for capturing an image but nothing is recevied. When I press Ctrl+C and check the file size, it comes out zero i.e there is no data in the captured image. Also, gstreamer does not give any errors in the log.&lt;/P&gt;&lt;P&gt;The ISP+Sensor combo transmits image in YUV422 format and I am seeing MIPI CSI interrupts in /proc/interrupts.&lt;BR /&gt;root@imx8mmevk:~# cat /proc/interrupts | grep -i mipi_csi&lt;BR /&gt;57: 147901 0 0 0 GICv3 49 Level 32e30000.mipi_csi&lt;BR /&gt;&lt;BR /&gt;Q1. To debug this, I want to dump the low level framebuffer data from MIPI-CSI receiver driver so that I can confirm whether the MIPI CSI reciever driver is capturing the data or not.&lt;BR /&gt;Is this possible? If yes, then how do I dump the framebuffer data from driver level closest to MIPI HW?&lt;/P&gt;&lt;P&gt;Q2. I also tried to read the MIPI CSI registers 0x32E3_0004 to 0x32E3_011C using devmem utlity, but the system hangs when I try to read these registers.&lt;BR /&gt;I am able to read other registers like 'SNVS_HP Version ID Register 1' successfully using this utlity.&lt;BR /&gt;Is there any other way to read the MIPI CSI registers to find out its status?&lt;/P&gt;&lt;P&gt;Q3. Is there is any other way to confirm if the frames are correctly captured by the MIPI-CSI interface? Any further debug points to help will be very much appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 12:34:55 GMT</pubDate>
    <dc:creator>namanthaker</dc:creator>
    <dc:date>2021-02-23T12:34:55Z</dc:date>
    <item>
      <title>Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1234979#M169880</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am integrating a third party ISP and Camera Sensor on i.MX8M Mini EVK over MIPI-CSI. I have integrated a driver into Yocto L5.4.47-2.2.0 and I am observing data and clock on the MIPI lines from ISP+Sensor. But I am unable to capture any images on i.MX8MM side.&lt;/P&gt;&lt;P&gt;Gstreamer command used to capture the image:&lt;BR /&gt;gst-launch-1.0 -v v4l2src device="/dev/video0" num-buffers=1 ! 'video/x-raw, width=(int)640, height=(int)480, format=(string)UYVY' ! jpegenc ! filesink location=/home/root/test.jpg&lt;/P&gt;&lt;P&gt;The gstreamer waits for capturing an image but nothing is recevied. When I press Ctrl+C and check the file size, it comes out zero i.e there is no data in the captured image. Also, gstreamer does not give any errors in the log.&lt;/P&gt;&lt;P&gt;The ISP+Sensor combo transmits image in YUV422 format and I am seeing MIPI CSI interrupts in /proc/interrupts.&lt;BR /&gt;root@imx8mmevk:~# cat /proc/interrupts | grep -i mipi_csi&lt;BR /&gt;57: 147901 0 0 0 GICv3 49 Level 32e30000.mipi_csi&lt;BR /&gt;&lt;BR /&gt;Q1. To debug this, I want to dump the low level framebuffer data from MIPI-CSI receiver driver so that I can confirm whether the MIPI CSI reciever driver is capturing the data or not.&lt;BR /&gt;Is this possible? If yes, then how do I dump the framebuffer data from driver level closest to MIPI HW?&lt;/P&gt;&lt;P&gt;Q2. I also tried to read the MIPI CSI registers 0x32E3_0004 to 0x32E3_011C using devmem utlity, but the system hangs when I try to read these registers.&lt;BR /&gt;I am able to read other registers like 'SNVS_HP Version ID Register 1' successfully using this utlity.&lt;BR /&gt;Is there any other way to read the MIPI CSI registers to find out its status?&lt;/P&gt;&lt;P&gt;Q3. Is there is any other way to confirm if the frames are correctly captured by the MIPI-CSI interface? Any further debug points to help will be very much appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 12:34:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1234979#M169880</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-02-23T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1239208#M170277</link>
      <description>&lt;P&gt;did you get any wrong message？ it seems doesn't support UYVY, how about testing by&lt;/P&gt;
&lt;P&gt;"gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! jpegenc ! filesink location=test.jpg" ？&lt;/P&gt;
&lt;P&gt;what registers of you mean " 0x32E3_0004 to 0x32E3_011C"?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 08:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1239208#M170277</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-03-03T08:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1239868#M170317</link>
      <description>&lt;P&gt;it seems that imx8mm has issue about UYVY, you can refer to the patch as below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://patchwork.kernel.org/project/linux-media/patch/20160902153706.512-1-niklas.soderlund+renesas@ragnatech.se/" target="_blank"&gt;https://patchwork.kernel.org/project/linux-media/patch/20160902153706.512-1-niklas.soderlund+renesas@ragnatech.se/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.19.35_1.0.0&amp;amp;id=6de690dd4e78b1bfd8e6777905203e55649d4d52" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.19.35_1.0.0&amp;amp;id=6de690dd4e78b1bfd8e6777905203e55649d4d52&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 03:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1239868#M170317</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-03-04T03:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1245415#M170839</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I apologise for the late response.&lt;/P&gt;&lt;P&gt;I got the CSI capturing working by using 2-lanes configuration. The issue seems to be with 4-lane configuration only. When I am using 4-lanes, I am unable to capture anything. For this 4-lane issue, I have raised another query.&lt;/P&gt;&lt;P&gt;I got UYVY working by adding the format support in the core drivers by taking reference from another IMX8MM based system which has same ISP+Sensor support which I am trying to integrate.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 06:47:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1245415#M170839</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-03-15T06:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1249447#M171184</link>
      <description>&lt;P&gt;I have replied to you in your another 4-lane issue case, did you have any issue about this case?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1249447#M171184</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-03-22T07:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1249738#M171216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There is no more issue with this query. I have marked my previous reply as solution to close this query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naman&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 14:08:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1249738#M171216</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-03-22T14:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1300237#M176235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I encounter exactly the same issue from the original post but i can't see how you resolved it &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/90212"&gt;@namanthaker&lt;/a&gt;&amp;nbsp; What did you change? By trying with 1, 2 and 4 lanes nothing can get me valid frames...&lt;/P&gt;&lt;P&gt;Am working on another sensor but the issue is the same: drivers recognize devices, device tree updated but gstreamer stuck on &lt;EM&gt;set_stream &lt;/EM&gt;and i am forced to ctrl+C to abort it and size of my output file is 0. I wonder that it is a clock problem? data format problem? etc...? How did you resolve your case please &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/90212"&gt;@namanthaker&lt;/a&gt; ? Anyone knows the solution to this type of problem or maybe is it better to create a new post for my problem?&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 07:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1300237#M176235</guid>
      <dc:creator>jfontain88</dc:creator>
      <dc:date>2021-06-30T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1300474#M176262</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188441"&gt;@jfontain88&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I had issue only while using 4-lane. When DTS and sensor were configured for 2-lane or 1-lane everything was working fine. Afterwards it was found that the problem with 4-lane was setup related i.e. problem with copper wire connection between IMX8MM EVK and sensor EVM. I disassembled the entire setup and recreated the setup with new copper wires. I also used a clean SW build with the kernel changes suggested in below query:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Issue-with-using-MIPI-CSI-4-Lane-on-i-MX8MM/m-p/1287968#M175097" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Issue-with-using-MIPI-CSI-4-Lane-on-i-MX8MM/m-p/1287968#M175097&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you try the 4-lane patch in the above query and check if it helps?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1300474#M176262</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-06-30T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in capturing images over MIPI-CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1301658#M176341</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;thank you very much for your reply but i still can't get data even from 1, 2 or 4 lanes. I think that my problem is not the same as yours then &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I'll work on it. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 08:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-capturing-images-over-MIPI-CSI/m-p/1301658#M176341</guid>
      <dc:creator>jfontain88</dc:creator>
      <dc:date>2021-07-02T08:24:11Z</dc:date>
    </item>
  </channel>
</rss>

