<?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: USB Camera preview failing on Android 7.1.2 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788379#M122159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to run gmem_info, I get this error:&amp;nbsp;/system/bin/sh: /system/bin/gmem_info: not executable: 64-bit ELF file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2018 19:18:32 GMT</pubDate>
    <dc:creator>trevormeyer</dc:creator>
    <dc:date>2018-11-07T19:18:32Z</dc:date>
    <item>
      <title>USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788371#M122151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a product using the MX6Q that runs Android and uses a USB camera.&amp;nbsp; The camera worked fine in Android 6.0 and 7.1.1, but in Android 7.1.2, the preview stream is corrupted.&amp;nbsp; Specifically, using the Camera App, the camera preview appears as purple static most of the time, or occasionally contains small blocks of the actual preview stream from the camera, combined with various random-looking artifacts.&amp;nbsp; When we capture an image the image is captured correctly, so only the preview stream has a problem.&amp;nbsp; There is no obvious difference in the logcat output&amp;nbsp;between the working version in 7.1.1 and the failing version in 7.1.2 (ie. no errors printed in 7.1.2 indicating a problem).&amp;nbsp; Any idea what might be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788371#M122151</guid>
      <dc:creator>trevormeyer</dc:creator>
      <dc:date>2018-10-12T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788372#M122152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="234226" data-username="trevormeyer" href="https://community.nxp.com/people/trevormeyer"&gt;Trevor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Would you like to provide these information for me?&lt;/P&gt;&lt;P&gt;1. Take a record of&amp;nbsp; "camera preview" by phone, and paste it here. I want to see the quality of image preview.&lt;/P&gt;&lt;P&gt;2. booting log of linux kernel.&lt;/P&gt;&lt;P&gt;3. android log via logcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;NXP TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 05:56:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788372#M122152</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-23T05:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788373#M122153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 02:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788373#M122153</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-24T02:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788374#M122154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully I will have the information for you later today.&amp;nbsp; When I last left the build the camera was not working at all due to some experimental changes, so I am trying to get it back to a working state now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple things I did not mention before: I can reproduce the same problem with a Logitech USB camera I bought at Target.&amp;nbsp; It is a HD Webcam C270; it worked in Android 6.0 and Android 7.1.1 but not Android 7.1.2.&amp;nbsp; We also have an MX6-based product that uses the same Android 7.1.2 build but has a CSI Camera module instead of the USB camera, and that works fine in 7.1.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 15:27:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788374#M122154</guid>
      <dc:creator>trevormeyer</dc:creator>
      <dc:date>2018-10-24T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788375#M122155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I send the various files directly to you, let me know when you get them or if you do not get them.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 16:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788375#M122155</guid>
      <dc:creator>trevormeyer</dc:creator>
      <dc:date>2018-10-24T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788376#M122156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="234226" data-username="trevormeyer" href="https://community.nxp.com/people/trevormeyer"&gt;Trevor Meyer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send files to me, please!&amp;nbsp; &lt;A href="mailto:weidong.sun@nxp.com"&gt;weidong.sun@nxp.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788376#M122156</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-25T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788377#M122157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="234226" data-username="trevormeyer" href="https://community.nxp.com/people/trevormeyer"&gt;Trevor&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I didn't find information on GPU driver in your log, could you confirm if you have added gpu driver in your kernel configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then run "gmem_info" on command line, checking if information on GPU can be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 06:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788377#M122157</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-30T06:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788378#M122158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="234226" data-username="trevormeyer" href="https://community.nxp.com/people/trevormeyer"&gt;Trevor&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I.MX expert team helped us to test USB camera on android 7.1.2,&amp;nbsp; there is no problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 07:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788378#M122158</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-11-02T07:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788379#M122159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to run gmem_info, I get this error:&amp;nbsp;/system/bin/sh: /system/bin/gmem_info: not executable: 64-bit ELF file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 19:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788379#M122159</guid>
      <dc:creator>trevormeyer</dc:creator>
      <dc:date>2018-11-07T19:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: USB Camera preview failing on Android 7.1.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788380#M122160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said that the NXP team tested the USB camera on a Sabre-SD board running 7.1.2 and it worked.&amp;nbsp; I assume that was an MX6-based Sabre? With that in mind, I removed all changes we made to any related components (video, gpu, ipu, USB and camera) and tested again but it still does not work.&amp;nbsp; So it seems there is some strange difference between our system and the Sabre-SD.&amp;nbsp; Would the NXP team have some suggestions as to where to look or what might have changed to break our build?&amp;nbsp; Here are some possibly relevant pieces of information for them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It worked in 6.0 and 7.1.1.&lt;/P&gt;&lt;P&gt;2) The same build works fine using a CSI-based camera.&amp;nbsp; Only the USB camera fails.&lt;/P&gt;&lt;P&gt;3) We didn't make any additional changes to our 7.1.2 build that were not in the 7.1.1 build, except as noted in 4) below.&lt;/P&gt;&lt;P&gt;4) In 7.1.2, we had to switch our CSI camera HAL to use MMAPStream as it had strange preview problems when using the USPStream.&amp;nbsp; I saw this same change was made to the NXP CSI-based camera HALs.&amp;nbsp; Could this be related somehow?&amp;nbsp; The UVC Camera HAL for MX6 uses the DMAStream which is derived from USPStream.&lt;/P&gt;&lt;P&gt;5) To distinguish between our two USB cameras, we had to&amp;nbsp;give them unique names: ci_hdrc.1-1.X, where X is the USB port number for the camera (2 or 3 in this case).&amp;nbsp; Could this mess something up in the 7.1.2 HAL somehow?&lt;/P&gt;&lt;P&gt;6) Similarly to 5), our USB cameras are FRONT and BACK rather than EXTERNAL.&lt;/P&gt;&lt;P&gt;7) We had to make some IPU and LCD related DTS changes for our display panel.&amp;nbsp; Could these be messing up the preview streaming in some way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 19:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Camera-preview-failing-on-Android-7-1-2/m-p/788380#M122160</guid>
      <dc:creator>trevormeyer</dc:creator>
      <dc:date>2018-11-07T19:51:26Z</dc:date>
    </item>
  </channel>
</rss>

