<?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>LayerscapeのトピックRe: LS1021a USB3.0 Ethernet Over USB Issue</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021a-USB3-0-Ethernet-Over-USB-Issue/m-p/1018834#M5479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="342526" data-username="jiye@byos.io" href="https://community.nxp.com/people/jiye@byos.io" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Elias Bitbaker&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;Please refer to the following Linux Kernel and dts configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;Linux Kernel:&lt;/SPAN&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/100936iAC4ED5D82F27FD69/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;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/100978i4B33CEDD27D45B17/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;P&gt;&lt;/P&gt;&lt;P&gt;In the dts file, please change property dr_mode's data from "host" to "peripheral", add property maximum-speed = "super-speed".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usb3: usb3@3100000 {&lt;BR /&gt; compatible = "snps,dwc3";&lt;BR /&gt; reg = &amp;lt;0x0 0x3100000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; dr_mode = "&lt;SPAN&gt;peripheral&lt;/SPAN&gt;";&lt;BR /&gt; snps,quirk-frame-length-adjustment = &amp;lt;0x20&amp;gt;;&lt;BR /&gt; snps,dis_rxdet_inp3_quirk;&lt;BR /&gt; usb3-lpm-capable;&lt;BR /&gt; snps,dis-u1u2-when-u3-quirk;&lt;BR /&gt; snps,incr-burst-type-adjustment = &amp;lt;1&amp;gt;, &amp;lt;4&amp;gt;, &amp;lt;8&amp;gt;, &amp;lt;16&amp;gt;;&lt;BR /&gt; snps,host-vbus-glitches;&lt;/P&gt;&lt;P&gt;maximum-speed = “super-speed”;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute below shell commands to insmod related ko files on RDB board.&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod libcomposite.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod u_ether.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_ecm.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_ecm_subset.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_rndis.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod g_ether.ko&lt;BR /&gt;[ 138.046732] using random self ethernet address&lt;BR /&gt;[ 138.051188] using random host ethernet address&lt;BR /&gt;[ 138.055884] usb0: HOST MAC 5e:4a:86:d0:dc:b6&lt;BR /&gt;[ 138.060219] usb0: MAC c2:53:e1:5b:d0:d9&lt;BR /&gt;[ 138.064100] using random self ethernet address&lt;BR /&gt;[ 138.068549] using random host ethernet address&lt;BR /&gt;[ 138.073041] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008&lt;BR /&gt;[ 138.079653] g_ether gadget: g_ether ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 06:07:31 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2020-02-18T06:07:31Z</dc:date>
    <item>
      <title>LS1021a USB3.0 Ethernet Over USB Issue</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021a-USB3-0-Ethernet-Over-USB-Issue/m-p/1018833#M5478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make my standalone USB3.0 OTG works as a device mode ( my device has a type C male connector) here is my device tree file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97691i73D829242B28448C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it still not working, I can see my usb0 interface:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97737i9C7AC9F974AE7309/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.030270] usbcore: registered new interface driver usbfs&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.030302] usbcore: registered new interface driver hub&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.030341] usbcore: registered new device driver usb&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188193] usbcore: registered new interface driver pegasus&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188229] usbcore: registered new interface driver asix&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188253] usbcore: registered new interface driver ax88179_178a&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188276] usbcore: registered new interface driver cdc_ether&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188307] usbcore: registered new interface driver smsc75xx&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188338] usbcore: registered new interface driver smsc95xx&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188367] usbcore: registered new interface driver net1080&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188391] usbcore: registered new interface driver cdc_subset&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188418] usbcore: registered new interface driver zaurus&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188458] usbcore: registered new interface driver cdc_ncm&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.188683] dwc3 3100000.usb3: Failed to get clk 'ref': -2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.190364] usbcore: registered new interface driver usb-storage&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.221683] usbcore: registered new interface driver usbhid&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.221688] usbhid: USB HID core driver&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.924797] usb0: HOST MAC aa:99:03:25:2d:ca&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.924893] usb0: MAC 96:c7:a7:d8:8f:8e&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.308383] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready&lt;BR /&gt;root@localhost:/sys/class/net/usb0# dmesg | grep usb0&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.924797] usb0: HOST MAC aa:99:03:25:2d:ca&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.924893] usb0: MAC 96:c7:a7:d8:8f:8e&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.308383] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Then I saw this from lsdk1906&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&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/98677i453080C8BC2500D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then I enable necessary modules from the uboot kconfig for the USB3.0 ethernet device mode&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I tried to recompile the uboot using&lt;/P&gt;&lt;P&gt;flex-builder -c uboot -m ls1021atwr -b sd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I saw&lt;/P&gt;&lt;P&gt;&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/98661i49D1CA66A7221939/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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 16:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021a-USB3-0-Ethernet-Over-USB-Issue/m-p/1018833#M5478</guid>
      <dc:creator>jiye</dc:creator>
      <dc:date>2020-02-12T16:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021a USB3.0 Ethernet Over USB Issue</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021a-USB3-0-Ethernet-Over-USB-Issue/m-p/1018834#M5479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="342526" data-username="jiye@byos.io" href="https://community.nxp.com/people/jiye@byos.io" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Elias Bitbaker&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;Please refer to the following Linux Kernel and dts configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; "&gt;Linux Kernel:&lt;/SPAN&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/100936iAC4ED5D82F27FD69/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;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/100978i4B33CEDD27D45B17/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;P&gt;&lt;/P&gt;&lt;P&gt;In the dts file, please change property dr_mode's data from "host" to "peripheral", add property maximum-speed = "super-speed".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usb3: usb3@3100000 {&lt;BR /&gt; compatible = "snps,dwc3";&lt;BR /&gt; reg = &amp;lt;0x0 0x3100000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; dr_mode = "&lt;SPAN&gt;peripheral&lt;/SPAN&gt;";&lt;BR /&gt; snps,quirk-frame-length-adjustment = &amp;lt;0x20&amp;gt;;&lt;BR /&gt; snps,dis_rxdet_inp3_quirk;&lt;BR /&gt; usb3-lpm-capable;&lt;BR /&gt; snps,dis-u1u2-when-u3-quirk;&lt;BR /&gt; snps,incr-burst-type-adjustment = &amp;lt;1&amp;gt;, &amp;lt;4&amp;gt;, &amp;lt;8&amp;gt;, &amp;lt;16&amp;gt;;&lt;BR /&gt; snps,host-vbus-glitches;&lt;/P&gt;&lt;P&gt;maximum-speed = “super-speed”;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute below shell commands to insmod related ko files on RDB board.&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod libcomposite.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod u_ether.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_ecm.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_ecm_subset.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod usb_f_rndis.ko&lt;BR /&gt;root@ls1043a:/run/media/mmcblk0p1# insmod g_ether.ko&lt;BR /&gt;[ 138.046732] using random self ethernet address&lt;BR /&gt;[ 138.051188] using random host ethernet address&lt;BR /&gt;[ 138.055884] usb0: HOST MAC 5e:4a:86:d0:dc:b6&lt;BR /&gt;[ 138.060219] usb0: MAC c2:53:e1:5b:d0:d9&lt;BR /&gt;[ 138.064100] using random self ethernet address&lt;BR /&gt;[ 138.068549] using random host ethernet address&lt;BR /&gt;[ 138.073041] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008&lt;BR /&gt;[ 138.079653] g_ether gadget: g_ether ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 06:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021a-USB3-0-Ethernet-Over-USB-Issue/m-p/1018834#M5479</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-02-18T06:07:31Z</dc:date>
    </item>
  </channel>
</rss>

