<?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 How to use USB OTG as gadget HID in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/612999#M92564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using one USB OTG port as device. I can confirm that the OTG port is working when using Mfgtool for flashing images.&lt;/P&gt;&lt;P&gt;When building the kernel the USB gadget can be configured to only Gadget mass storage and UTP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After flashing the images and booting, I want the same port to be used as either gadget serial or gadget HID. But we configured the USB as gadget mass storage. If I give other option such as CONFIG_GADGET_SERIAL or HID I am unable to flash the images.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the right option to make it as GADGET MASS STORAGE and GADGET SERIAL?&lt;/P&gt;&lt;P&gt;I tried building the kernel and modules in separate builds, but when I try to do modprobe g_serial&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;modprobe g_serial&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;modprobe: can't load module libcomposite (kernel/drivers/usb/gadget/g_serial.ko): invalid module format&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am getting this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Apr 2017 09:43:47 GMT</pubDate>
    <dc:creator>chandraevolute</dc:creator>
    <dc:date>2017-04-15T09:43:47Z</dc:date>
    <item>
      <title>How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/612999#M92564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using one USB OTG port as device. I can confirm that the OTG port is working when using Mfgtool for flashing images.&lt;/P&gt;&lt;P&gt;When building the kernel the USB gadget can be configured to only Gadget mass storage and UTP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After flashing the images and booting, I want the same port to be used as either gadget serial or gadget HID. But we configured the USB as gadget mass storage. If I give other option such as CONFIG_GADGET_SERIAL or HID I am unable to flash the images.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the right option to make it as GADGET MASS STORAGE and GADGET SERIAL?&lt;/P&gt;&lt;P&gt;I tried building the kernel and modules in separate builds, but when I try to do modprobe g_serial&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;modprobe g_serial&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;modprobe: can't load module libcomposite (kernel/drivers/usb/gadget/g_serial.ko): invalid module format&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am getting this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 09:43:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/612999#M92564</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-15T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613000#M92565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try usb hid examples in imx-test (../mxc_usb_test) and description&lt;/P&gt;&lt;P&gt;in attached Linux Manual Chapter 39 CHIPIDEA USB Driver&lt;/P&gt;&lt;P&gt;imx-test&lt;BR /&gt;&lt;A href="https://community.nxp.com/www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz" target="test_blank"&gt;www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Apr 2017 23:18:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613000#M92565</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-16T23:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613001#M92566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I am able to run modeprobe g_serial and able to see the serial device in /dev folder.&lt;/P&gt;&lt;P&gt;I want to change the baud rate of the same, if &amp;nbsp;I give the below commands it is throwing error&lt;/P&gt;&lt;P&gt;stty -F /dev/ttyGS0 921600&lt;BR /&gt;stty: /dev/ttyGS0: cannot perform all requested operations&lt;/P&gt;&lt;P&gt;Is there any way to change the baudrate. Here the default baudrate is 9600. I want to operate at&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #242729; font-weight: normal;"&gt;921600 bps.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613001#M92566</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-18T10:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613002#M92567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it working for other baudrates, like 19200, e.t.c.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613002#M92567</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-18T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613003#M92568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The baud rate is not changing to other values.Just only 9600&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613003#M92568</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-18T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB OTG as gadget HID</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613004#M92569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Is there any way &amp;nbsp;to check whether the g_serial device is connected or not??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 07:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-OTG-as-gadget-HID/m-p/613004#M92569</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-21T07:50:51Z</dc:date>
    </item>
  </channel>
</rss>

