<?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: How to use USB composite device? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801042#M123786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;You can refer to my later reply. It maybe do help for you.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Rita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 03:17:04 GMT</pubDate>
    <dc:creator>Rita_Wang</dc:creator>
    <dc:date>2018-08-24T03:17:04Z</dc:date>
    <item>
      <title>How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801039#M123783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Platform: i.MX6ULL&lt;/P&gt;&lt;P&gt;Software: Linux_4.9.11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer want to use USB composite device, one for HID and one for mass storage.&lt;/P&gt;&lt;P&gt;would you provide how to configuration USB driver for composite device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 02:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801039#M123783</guid>
      <dc:creator>felixhsu</dc:creator>
      <dc:date>2018-08-20T02:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801040#M123784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same issue, too.&lt;/P&gt;&lt;P&gt;I found some article but still not solve the issue.&amp;nbsp;I have trawled through many articles with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;1. &lt;A _jive_internal="true" href="https://community.nxp.com/thread/318511"&gt;https://community.nxp.com/thread/318511&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;2. &lt;A _jive_internal="true" href="https://community.nxp.com/thread/481706"&gt;https://community.nxp.com/thread/481706&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;I post it.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;3. &lt;A _jive_internal="true" href="https://community.nxp.com/thread/282200"&gt;https://community.nxp.com/thread/282200&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;g_multi.ko needs driver. Windows shows up as an unknow device "Multifunction Composite Gadget".&amp;nbsp; I need a HID and a mass storage.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;4. &lt;A href="https://unix.stackexchange.com/questions/373569/emulating-usb-device-with-a-file-using-g-mass-storage-udc-core-couldnt-find"&gt;https://unix.stackexchange.com/questions/373569/emulating-usb-device-with-a-file-using-g-mass-storage-udc-core-couldnt-find&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt;HID is work OK. But mass storage is still not work at all. log as below:&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 10pt;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 13.3333px;"&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# modprobe dummy_hcd&lt;/DIV&gt;&lt;DIV&gt;dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005&lt;/DIV&gt;&lt;DIV&gt;dummy_hcd dummy_hcd.0: Dummy host controller&lt;/DIV&gt;&lt;DIV&gt;dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 1&lt;/DIV&gt;&lt;DIV&gt;hub 1-0:1.0: USB hub found&lt;/DIV&gt;&lt;DIV&gt;hub 1-0:1.0: 1 port detected&lt;/DIV&gt;&lt;DIV&gt;2188000.ethernet supply phy not found, using dummy regulator&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# pps pps0: new PPS source ptp0&lt;/DIV&gt;&lt;DIV&gt;alloc_contig_range: [8c058, 8c060) PFNs busy&lt;/DIV&gt;&lt;DIV&gt;2188000.ethernet supply phy not found, using dummy regulator&lt;/DIV&gt;&lt;DIV&gt;pps pps0: new PPS source ptp0&lt;/DIV&gt;&lt;DIV&gt;alloc_contig_range: [8c058, 8c060) PFNs busy&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~#&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# modprobe g_hid&lt;/DIV&gt;&lt;DIV&gt;2188000.ethernet supply phy not found, using dummy regulator&lt;/DIV&gt;&lt;DIV&gt;pps pps0: new PPS source ptp0&lt;/DIV&gt;&lt;DIV&gt;alloc_contig_range: [8c058, 8c060) PFNs busy&lt;/DIV&gt;&lt;DIV&gt;g_hid gadget: HID Gadget, version: 2010/03/16&lt;/DIV&gt;&lt;DIV&gt;g_hid gadget: g_hid ready&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# g_hid gadget: high-speed config #1: HID Gadget&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~#&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# modprobe g_mass_storage file=/dev/mmcblk1&lt;/DIV&gt;&lt;DIV&gt;Mass Storage Function, version: 2009/09/11&lt;/DIV&gt;&lt;DIV&gt;LUN: removable file: (no medium)&lt;/DIV&gt;&lt;DIV&gt;LUN: file: /dev/mmcblk1&lt;/DIV&gt;&lt;DIV&gt;Number of LUNs=1&lt;/DIV&gt;&lt;DIV&gt;g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11&lt;/DIV&gt;&lt;DIV&gt;g_mass_storage gadget: userspace failed to provide iSerialNumber&lt;/DIV&gt;&lt;DIV&gt;g_mass_storage gadget: g_mass_storage ready&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# usb 1-1: new high-speed USB device number 2 using dummy_hcd&lt;/DIV&gt;&lt;DIV&gt;g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage&lt;/DIV&gt;&lt;DIV&gt;usb-storage 1-1:1.0: USB Mass Storage device detected&lt;/DIV&gt;&lt;DIV&gt;usb-storage 1-1:1.0: Quirks match for vid 0525 pid a4a5: 10000&lt;/DIV&gt;&lt;DIV&gt;scsi host0: usb-storage 1-1:1.0&lt;/DIV&gt;&lt;DIV&gt;2188000.ethernet supply phy not found, using dummy regulator&lt;/DIV&gt;&lt;DIV&gt;pps pps0: new PPS source ptp0&lt;/DIV&gt;&lt;DIV&gt;alloc_contig_range: [8c058, 8c060) PFNs busy&lt;/DIV&gt;&lt;DIV&gt;scsi 0:0:0:0: Direct-Access&amp;nbsp; &amp;nbsp; &amp;nbsp;Linux&amp;nbsp; &amp;nbsp; File-Stor Gadget 0409 PQ: 0 ANSI: 2&lt;/DIV&gt;&lt;DIV&gt;2188000.ethernet supply phy not found, using dummy regulator&lt;/DIV&gt;&lt;DIV&gt;pps pps0: new PPS source ptp0&lt;/DIV&gt;&lt;DIV&gt;alloc_contig_range: [8c058, 8c060) PFNs busy&lt;/DIV&gt;&lt;DIV&gt;sd 0:0:0:0: [sda] 7405568 512-byte logical blocks: (3.79 GB/3.53 GiB)&lt;/DIV&gt;&lt;DIV&gt;sd 0:0:0:0: [sda] Write Protect is off&lt;/DIV&gt;&lt;DIV&gt;sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;sda: sda1 sda2 sda3 sda4&lt;/DIV&gt;&lt;DIV&gt;sd 0:0:0:0: [sda] Attached SCSI disk&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~#&lt;/DIV&gt;&lt;DIV&gt;root@imx6ull14x14evk:~# lsusb&lt;/DIV&gt;&lt;DIV&gt;Bus 001 Device 002: ID 0525:a4a5 Netchip Technology, Inc. Pocketbook Pro 903&lt;/DIV&gt;&lt;DIV&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 05:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801040#M123784</guid>
      <dc:creator>alexkuo</dc:creator>
      <dc:date>2018-08-20T05:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801041#M123785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;You doesn't need to re-configure USB driver.&amp;nbsp; There are two USB port on i.mx6ulL evk board, one is USB OTG with microUSB connector, the other is USB Host.&amp;nbsp; For HID device, customer can connect it to USB host; for Mass storage, customer can use a USB OTG to HOST cable to connect microUSB connector, and the other side of the cable is used to connect mass storage, such as moble disk or U disk. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Hope this can do help for you.&lt;/SPAN&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Rita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 24 Aug 2018 03:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801041#M123785</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2018-08-24T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801042#M123786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;You can refer to my later reply. It maybe do help for you.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Rita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 03:17:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801042#M123786</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2018-08-24T03:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801043#M123787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer is want to use same USB port &lt;SPAN&gt;let PC&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;recognize&amp;nbsp;&lt;/SPAN&gt;two USB type device, for example USB HID and USB mass storage.&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, 30 Aug 2018 11:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801043#M123787</guid>
      <dc:creator>felixhsu</dc:creator>
      <dc:date>2018-08-30T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use USB composite device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801044#M123788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not modprobe two independent gadget drivers. For this, you need to use a composite driver that registers both functions. You can do this in two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; To use a single legacy composite driver (actually you are already using the legacy drivers on your tests), this is, you need to create a custom kernel module instead of using g_mass_storage and g_hid separately. See&amp;nbsp;drivers/usb/gadget/legacy/acm_ms.c for an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can configure the composite driver from userspace using configfs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://events.static.linuxfound.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf" title="https://events.static.linuxfound.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf"&gt;https://events.static.linuxfound.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;-Marco&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.ridgerun.com/" title="https://www.ridgerun.com/"&gt;GStreamer Development | Embedded Linux Development | Linux SDK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-USB-composite-device/m-p/801044#M123788</guid>
      <dc:creator>marcomadrigal</dc:creator>
      <dc:date>2018-08-30T14:52:55Z</dc:date>
    </item>
  </channel>
</rss>

