<?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>i.MX ProcessorsのトピックRe: ENET1 functions in U-Boot, NOT in kernel</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517543#M84060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin VandenBerge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried getting eth0 down and then up? You probably did but I would like to confirm as perhaps that is part of the problem. Does static IPs work on u-boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s odd that it’s working correctly in U-boot but not in kernel, however, have you tried using the NXP BSP Kernel? (4.15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 16:47:40 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2016-06-21T16:47:40Z</dc:date>
    <item>
      <title>ENET1 functions in U-Boot, NOT in kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517541#M84058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having issues getting ENET1 to function on a custom board based off of the i.MX6UL dev kit.&amp;nbsp; The interface works great in u-boot (can retrieve a DHCP address and respond to PING's).&amp;nbsp; However, I've not had any luck getting it to work in the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's my kernel version:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Linux version 4.1.20-01618-g0076509-dirty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my DTS entries for the ethernet device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; pinctrl_enet1: enet1grp {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x13030&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x40000011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET2_RX_DATA0__ENET1_MDIO&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0A429&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; MX6UL_PAD_ENET2_RX_DATA1__ENET1_MDC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1b088&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;amp;fec1 {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_enet1&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; phy-mode = "rmii";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; phy-handle = &amp;lt;&amp;amp;ethphy0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; phy-reset-gpios = &amp;lt;&amp;amp;gpio2 15 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; phy-reset-duration = &amp;lt;500&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; status = "okay";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; mdio {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; #size-cells = &amp;lt;0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; ethphy0: ethernet-phy@1 {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; compatible = "ethernet-phy-ieee802.3-c22";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; reg = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to configure the device, eth0, for static address these are the errors I receive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;sh-4.3# ifup eth0 -i etc/network/interfaces_static &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;run-parts: /etc/network/if-pre-up.d: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;ifconfig: SIOCSIFFLAGS: No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;ifconfig: SIOCSIFFLAGS: No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;route: SIOCADDRT: Network is unreachable&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;sh-4.3# ip link set eth0 up&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;ip: SIOCSIFFLAGS: No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Any advice on using only ENET1 on the i.MX6UL? &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517541#M84058</guid>
      <dc:creator>kvb</dc:creator>
      <dc:date>2016-06-09T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: ENET1 functions in U-Boot, NOT in kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517542#M84059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should also add that the LEDs on the Ethernet connector do come on with a cable attached.&amp;nbsp; The PHY is a Micrel &lt;STRONG&gt;KSZ8081RND&lt;/STRONG&gt;.&amp;nbsp; The UL devkit used 2x KSZ8081RNA to my understanding.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517542#M84059</guid>
      <dc:creator>kvb</dc:creator>
      <dc:date>2016-06-09T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: ENET1 functions in U-Boot, NOT in kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517543#M84060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin VandenBerge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried getting eth0 down and then up? You probably did but I would like to confirm as perhaps that is part of the problem. Does static IPs work on u-boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s odd that it’s working correctly in U-boot but not in kernel, however, have you tried using the NXP BSP Kernel? (4.15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517543#M84060</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-06-21T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: ENET1 functions in U-Boot, NOT in kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517544#M84061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/gusarambula"&gt;gusarambula&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should've marked this resolved as I discovered that the issue boiled down to some timing bug in the kernel.&amp;nbsp; It seems likely that the driver was trying to communicate with the PHY before it was completely out of reset.&amp;nbsp; This was discovered by adding some kernel debug messages in locations throughout the driver initialization and having a print statement in one particular location suddenly caused everything to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end solution was to add some delay in the PHY reset function after the reset steps were complete (toggling the HW I/O).&amp;nbsp; All seems to be working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENET1-functions-in-U-Boot-NOT-in-kernel/m-p/517544#M84061</guid>
      <dc:creator>kvb</dc:creator>
      <dc:date>2016-06-21T17:18:29Z</dc:date>
    </item>
  </channel>
</rss>

