<?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 gadget serial hotplug in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694378#M107641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;Have you considered the ID pin on your hardware/software?&lt;/P&gt;&lt;P&gt;You could take a look to the following links for related issues:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/835504"&gt;https://community.nxp.com/message/835504&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/874540"&gt;https://community.nxp.com/message/874540&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&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>Wed, 06 Sep 2017 01:29:36 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2017-09-06T01:29:36Z</dc:date>
    <item>
      <title>USB gadget serial hotplug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694377#M107640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi~&lt;/P&gt;&lt;P&gt;I am using kernel version 4.1.15.2.0.1 with imx6solosabresd custom board.&lt;/P&gt;&lt;P&gt;Until now, I could use USB gadget serial very well.. but I am faced with new usb issue.&lt;/P&gt;&lt;P&gt;while using usb gadget serial, if I pull the usb cable out from the usb port, USB will not recognize that usb cable is not connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As below, I am using the below modules and fsl-imx-fb image.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;u_serial.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_f_acm.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_f_obex.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_f_serial.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;g_serial.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found the solution as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. After disconnecting the usb cable, I did "rmmod g_serial.ko".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. After connecting the usb cable, I did "insmod g_serial.ko"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But, I would like the custom board to do insmod and rmmod itself when the usb cable is connected or not.&lt;/P&gt;&lt;P&gt;So, I made udev rule in&amp;nbsp;&lt;SPAN style="font-size: 10.0pt;"&gt;/etc/udev/rules.d/10-local.rules&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ACTION=="add", KERNEL=="ttyGS0", SUBSYSTEM=="tty", RUN+="/etc/udev/rules.d/automount.sh"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ACTION=="remove", KERNEL=="ttyGS0", SUBSYSTEM=="tty", RUN+="/etc/udev/rules.d/autounmount.sh"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in automount.sh file,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;insmod g_serial.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in autounmount.sh file,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rmmod g_serial.ko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But, it is not working. ㅜ.ㅜ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need your help..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Colin Park&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 08:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694377#M107640</guid>
      <dc:creator>coilnpark</dc:creator>
      <dc:date>2017-09-05T08:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: USB gadget serial hotplug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694378#M107641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;Have you considered the ID pin on your hardware/software?&lt;/P&gt;&lt;P&gt;You could take a look to the following links for related issues:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/835504"&gt;https://community.nxp.com/message/835504&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/874540"&gt;https://community.nxp.com/message/874540&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&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>Wed, 06 Sep 2017 01:29:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694378#M107641</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-09-06T01:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: USB gadget serial hotplug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694379#M107642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the "imx6qdl.dts" file as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28946iFC943CEBB0FA2561/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could build the kernel image and then I tried to do porting, but porting was stopped while u-boot booting as below.&lt;/P&gt;&lt;P&gt;Could you give me more advice?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28988iEE0E8F6DF09DC6FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 08:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694379#M107642</guid>
      <dc:creator>coilnpark</dc:creator>
      <dc:date>2017-09-07T08:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB gadget serial hotplug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694380#M107643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U-boot problem was my fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I tried to change dr_mode = "host" and ""peripheral" but they are not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29064iA6BE98114DEB10EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 09:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-gadget-serial-hotplug/m-p/694380#M107643</guid>
      <dc:creator>coilnpark</dc:creator>
      <dc:date>2017-09-07T09:17:54Z</dc:date>
    </item>
  </channel>
</rss>

