<?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中的主题 Re: UVC gadget on imx8mevk</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931182#M139662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Han,&lt;BR /&gt;You could take a look to the following Community thread for reference information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/508145"&gt;i.MX 6,7,8 support USB device mode support to UVC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, on application note AN12103 is implemented a UVC, but based on a i.MX RT processor:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN12103.pdf" title="https://www.nxp.com/docs/en/application-note/AN12103.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12103.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2019 01:50:55 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2019-10-11T01:50:55Z</dc:date>
    <item>
      <title>UVC gadget on imx8mevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931181#M139661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;We're trying to get UVC gadget working on imx8m-evk, without any success.&lt;/DIV&gt;&lt;DIV&gt;The system is initialized using "repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" target="test_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;mipi cameras are verified using gstreamer&lt;/LI&gt;&lt;LI&gt;usb gadget's configured with configfs:&amp;nbsp;&amp;nbsp;mkdir /sys/kernel/config/usb_gadget/g1&lt;BR /&gt;cd /sys/kernel/config/usb_gadget/g1&lt;BR /&gt;mkdir configs/c.1&lt;BR /&gt;mkdir strings/0x409&lt;BR /&gt;mkdir configs/c.1/strings/0x409&lt;BR /&gt;echo 0x3290 &amp;gt; idProduct&lt;BR /&gt;echo 0x18ec &amp;gt; idVendor&lt;BR /&gt;echo 0x0310 &amp;gt; bcdUSB&lt;BR /&gt;echo serial &amp;gt; strings/0x409/serialnumber&lt;BR /&gt;echo manufacturer &amp;gt; strings/0x409/manufacturer&lt;BR /&gt;echo UVC Gadget &amp;gt; strings/0x409/product&lt;BR /&gt;echo "Conf 1" &amp;gt; configs/c.1/strings/0x409/configuration&lt;BR /&gt;echo 120 &amp;gt; configs/c.1/MaxPower&lt;BR /&gt;mkdir functions/uvc.usb0&lt;BR /&gt;mkdir -p functions/uvc.usb0/streaming/uncompressed/u/480p&lt;BR /&gt;cat &amp;lt;&amp;lt;EOF &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/dwFrameInterval&lt;BR /&gt;333333&lt;BR /&gt;1000000&lt;BR /&gt;5000000&lt;BR /&gt;EOF&lt;BR /&gt;echo 480 &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/wHeight&lt;BR /&gt;echo 333333 &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/dwDefaultFrameInterval&lt;BR /&gt;echo 614400 &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/dwMaxVideoFrameBufferSize&lt;BR /&gt;echo 73728000 &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/dwMaxBitRate&lt;BR /&gt;echo 24576000 &amp;gt; functions/uvc.usb0/streaming/uncompressed/u/480p/dwMinBitRate&lt;BR /&gt;mkdir functions/uvc.usb0/streaming/header/h&lt;BR /&gt;cd functions/uvc.usb0/streaming/header/h&lt;BR /&gt;ln -s ../../uncompressed/u&lt;BR /&gt;cd ../../class/fs&lt;BR /&gt;ln -s ../../header/h&lt;BR /&gt;cd ../../class/hs&lt;BR /&gt;ln -s ../../header/h&lt;BR /&gt;cd ../../class/ss&lt;BR /&gt;ln -s ../../header/h&lt;BR /&gt;cd ../../../control&lt;BR /&gt;mkdir header/h&lt;BR /&gt;ln -s header/h class/fs&lt;BR /&gt;ln -s header/h class/hs&lt;BR /&gt;ln -s header/h class/ss&lt;BR /&gt;cd /sys/kernel/config/usb_gadget/g1&lt;BR /&gt;echo 1024 &amp;gt; functions/uvc.usb0/streaming_maxpacket&lt;BR /&gt;echo 15 &amp;gt; functions/uvc.usb0/streaming_maxburst&lt;BR /&gt;ln -s functions/uvc.usb0 configs/c.1&lt;BR /&gt;echo 38100000.dwc3 &amp;gt; UDC&lt;/LI&gt;&lt;LI&gt;After running user space testing app(&lt;A data-saferedirecturl="https://www.google.com/url?q=https://github.com/wlhe/uvc-gadget&amp;amp;source=gmail&amp;amp;ust=1569962622684000&amp;amp;usg=AFQjCNGVEQ_uvVlbxh7x-v5gOMUewTlRyg" href="https://github.com/wlhe/uvc-gadget" target="_blank"&gt;https://github.com/wlhe/uvc-gadget&lt;/A&gt;, with changes from 640x360 to 640x480 to match supported formats in ov5640_mipi_v2.c), imx8m-evk can be detected as a uvc device.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;However, once I opened the UVC with VLC player, there's no video streaming.&lt;/DIV&gt;&lt;DIV&gt;After further investigation, I discovered that UVC video payload packets were not sent out successfully by ISO endpoints, usb_request.complete was never called.&lt;/DIV&gt;&lt;DIV&gt;dwc3_send_gadget_ep_cmd(dwc3/gadget.c) returns -EAGAIN, indicating an error status of 'Bus Expiry'. Data flow is: dwc3_endpoint_interrupt() =&amp;gt; dwc3_gadget_start_isoc() =&amp;gt; __dwc3_gadget_kick_transfer() =&amp;gt; dwc3_send_gadget_ep_cmd()&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;We're running out of lead,&lt;/DIV&gt;&lt;DIV&gt;any help or information would be appreciated.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 20:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931181#M139661</guid>
      <dc:creator>hanyi</dc:creator>
      <dc:date>2019-09-30T20:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: UVC gadget on imx8mevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931182#M139662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Han,&lt;BR /&gt;You could take a look to the following Community thread for reference information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/508145"&gt;i.MX 6,7,8 support USB device mode support to UVC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, on application note AN12103 is implemented a UVC, but based on a i.MX RT processor:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN12103.pdf" title="https://www.nxp.com/docs/en/application-note/AN12103.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12103.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 01:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931182#M139662</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2019-10-11T01:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: UVC gadget on imx8mevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931183#M139663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply, Carlos.&lt;/P&gt;&lt;P&gt;But we know that isn't helping with this particular problem, no one's ever successfully verified UVC gadget on imx8 as far as I know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 13:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931183#M139663</guid>
      <dc:creator>hanyi</dc:creator>
      <dc:date>2019-10-11T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: UVC gadget on imx8mevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931184#M139664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For people that running into the same problem, it seems to be a dwc3 usb controller(driver) problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's another post about this from 2018, but I guess he didn't dig that deep:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/487869"&gt;Issue in Video Streaming with gadget webcam module g_webcam in i.MX8 EVK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen people having this problem on RK3399 which also integrate dwc3 as its usb controller.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/rockchip-linux/kernel/issues/167" title="https://github.com/rockchip-linux/kernel/issues/167"&gt;firefly rk3399 uvc-gadget 无法正常工作 · Issue #167 · rockchip-linux/kernel · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope in the future someone would be more committed to solving this, and this post would give him some useful information.&lt;/P&gt;&lt;P&gt;I'm currently done with this, not a big issue, I think most customer can accept not having uvc gadget feature.&lt;/P&gt;&lt;P&gt;After all no one cares about uvc gadget on a platform like imx8, it simply isn't designed for that purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 13:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931184#M139664</guid>
      <dc:creator>hanyi</dc:creator>
      <dc:date>2019-10-11T13:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: UVC gadget on imx8mevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931185#M139665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already fail on the step "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;mkdir functions/uvc.usb0":&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;&amp;nbsp;mkdir: cannot create directory 'uvc.usb0': Operation not permitted&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;I listed directory with gadget modules:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; border: 0px; font-size: 14px; margin: 0.3em 0px 1.375em;"&gt;&amp;gt;&amp;gt;ls /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea/kernel/drivers/usb/gadget/legacy&lt;/P&gt;&lt;P style="color: #444444; border: 0px; font-size: 14px; margin: 0.3em 0px 1.375em;"&gt;g_audio.ko g_ether.ko g_ncm.ko g_zero.ko&lt;BR /&gt;g_cdc.ko g_mass_storage.ko g_serial.ko&lt;/P&gt;&lt;P style="color: #444444; border: 0px; font-size: 14px; margin: 0.3em 0px 1.375em;"&gt;Don't I have required module in my image? I googled during 1 hour and couldn't find any answers, how to activate UVC gadget.&lt;/P&gt;&lt;P style="color: #444444; border: 0px; font-size: 14px; margin: 0.3em 0px 1.375em;"&gt;&lt;/P&gt;&lt;P style="color: #444444; border: 0px; font-size: 14px; margin: 0.3em 0px 1.375em;"&gt;I tried&amp;nbsp;modprobe uvcvideo and I have this module now, but it still not working. It seems to be another module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 19:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UVC-gadget-on-imx8mevk/m-p/931185#M139665</guid>
      <dc:creator>puttopolly</dc:creator>
      <dc:date>2020-06-12T19:57:25Z</dc:date>
    </item>
  </channel>
</rss>

