<?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 Questions about USB3.0 in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Questions-about-USB3-0/m-p/1154542#M6666</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I use the cmds as follows to&amp;nbsp;mount SSD as USB device，so i can transfer documentions from PC to my board.&lt;/P&gt;&lt;P&gt;However,when they are transfering files,if I&amp;nbsp;pull out the USB cable,the USB module will die on my board.&lt;/P&gt;&lt;P&gt;I can't use 'rmmod' to remove the 'g_mass_storage' module,and the rmmod will also die in exiting.&lt;/P&gt;&lt;P&gt;How can i solve this probelm without rebooting？&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 689px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125373iDBBAE0E6BD7B13E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 718px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125371i8966FB5190F4464C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;1.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 733px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125372i1BF2D541F5BA51DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;3.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 06:05:51 GMT</pubDate>
    <dc:creator>Victor97</dc:creator>
    <dc:date>2020-09-17T06:05:51Z</dc:date>
    <item>
      <title>Questions about USB3.0</title>
      <link>https://community.nxp.com/t5/Layerscape/Questions-about-USB3-0/m-p/1154542#M6666</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I use the cmds as follows to&amp;nbsp;mount SSD as USB device，so i can transfer documentions from PC to my board.&lt;/P&gt;&lt;P&gt;However,when they are transfering files,if I&amp;nbsp;pull out the USB cable,the USB module will die on my board.&lt;/P&gt;&lt;P&gt;I can't use 'rmmod' to remove the 'g_mass_storage' module,and the rmmod will also die in exiting.&lt;/P&gt;&lt;P&gt;How can i solve this probelm without rebooting？&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 689px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125373iDBBAE0E6BD7B13E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 718px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125371i8966FB5190F4464C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;1.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 733px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125372i1BF2D541F5BA51DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;3.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 06:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Questions-about-USB3-0/m-p/1154542#M6666</guid>
      <dc:creator>Victor97</dc:creator>
      <dc:date>2020-09-17T06:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about USB3.0</title>
      <link>https://community.nxp.com/t5/Layerscape/Questions-about-USB3-0/m-p/1159831#M6718</link>
      <description>&lt;P&gt;Configure Tree View Options Description&lt;BR /&gt;USB Gadget support ---&amp;gt;&lt;BR /&gt;&amp;lt;M&amp;gt; USB Gadget functions configurable through configfs&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[*] Mass storage&lt;BR /&gt;&amp;lt;M&amp;gt; USB Gadget precomposed configurations&lt;BR /&gt;&amp;lt;M&amp;gt; Mass Storage Gadget&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;dts configuration&lt;/P&gt;&lt;P&gt;usb0: usb3@2f00000 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "snps,dwc3";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x0 0x2f00000 0x0 0x10000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interrupts = &amp;lt;0 60 0x4&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr_mode = "peripheral";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snps,quirk-frame-length-adjustment = &amp;lt;0x20&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snps,dis_rxdet_inp3_quirk;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maximum-speed = “super-speed”;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;# dd if=/dev/zero of=./test bs=1M count=500&lt;BR /&gt;# insmod libcomposite.ko&lt;BR /&gt;# insmod usb_f_mass_storage.ko&lt;BR /&gt;# insmod g_mass_storage.ko file=test&lt;/P&gt;&lt;P&gt;Attach the USB cable between target board and Linux host machine&lt;BR /&gt;A new external hard drive appears on the host.&amp;nbsp; You may now use the host's tools to initialize and format the drive, and write data to it.&amp;nbsp; To avoid data loss or corruption, make sure to unmount the drive from the host to safely remove it when finished.&amp;nbsp;&amp;nbsp; You can then unload the mass storage driver:&lt;/P&gt;&lt;P&gt;E.g;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@xiao:~#&lt;/SPAN&gt;&lt;SPAN&gt;fdisk /dev/sdc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;root@xiao:~# mkfs.ext2 /dev/sdc1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@xiao:~#&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;mount /dev/sdc1 /mnt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@xiao:~#&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dd if=/dev/zero of=src_img bs=1M count=10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@xiao:~#&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; cp src_img /mnt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 03:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Questions-about-USB3-0/m-p/1159831#M6718</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-09-28T03:09:08Z</dc:date>
    </item>
  </channel>
</rss>

