<?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: Ethernet PHY not found - u-boot migration</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360043#M50553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the PHY you use on your board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 15:52:03 GMT</pubDate>
    <dc:creator>fabio_estevam</dc:creator>
    <dc:date>2014-10-01T15:52:03Z</dc:date>
    <item>
      <title>Ethernet PHY not found - u-boot migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360041#M50551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a custom board derived from the Sabre Smart Device from Freescale. I managed to adapt the 2014 version of u-boot to start the board. The system start correctly, but there is a problem with our PHY (which is of course different than the sabre SDB one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the output of u-boot :&lt;/P&gt;&lt;P&gt;U-Boot 2014.10-rc2 (Oct 01 2014 - 10:24:31)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; Freescale i.MX6SOLO rev1.1 at 792 MHz&lt;/P&gt;&lt;P&gt;Reset cause: WDOG&lt;/P&gt;&lt;P&gt;Board: MX6S-Vendome&lt;/P&gt;&lt;P&gt;I2C:&amp;nbsp;&amp;nbsp; ready&lt;/P&gt;&lt;P&gt;DRAM:&amp;nbsp; 512 MiB&lt;/P&gt;&lt;P&gt;MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0&lt;/P&gt;&lt;P&gt;No panel detected: default to Hannstar-XGA&lt;/P&gt;&lt;P&gt;Display: Hannstar-XGA (1024x768)&lt;/P&gt;&lt;P&gt;In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;Out:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;Err:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;PMIC:&amp;nbsp; PFUZE100 ID=0x10&lt;/P&gt;&lt;P&gt;Net:&amp;nbsp;&amp;nbsp; Phy not found&lt;/P&gt;&lt;P&gt;PHY reset timed out&lt;/P&gt;&lt;P&gt;FEC [PRIME]&lt;/P&gt;&lt;P&gt;Hit any key to stop autoboot:&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; ping 192.1.1.48&lt;/P&gt;&lt;P&gt;Using FEC device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARP Retry count exceeded; starting again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARP Retry count exceeded; starting again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARP Retry count exceeded; starting again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARP Retry count exceeded; starting again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARP Retry count exceeded; starting again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abort&lt;/P&gt;&lt;P&gt;ping failed; host 192.1.1.48 is not alive&lt;/P&gt;&lt;P&gt;=&amp;gt; mii info&lt;/P&gt;&lt;P&gt;PHY 0x00: OUI = 0x5043, Model = 0x22, Rev = 0x02, 100baseT, FDX&lt;/P&gt;&lt;P&gt;=&amp;gt; mii dump 0 0&lt;/P&gt;&lt;P&gt;0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (3100)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- PHY control register --&lt;/P&gt;&lt;P&gt;&amp;nbsp; (8000:0000) 0.15&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; reset&lt;/P&gt;&lt;P&gt;&amp;nbsp; (4000:0000) 0.14&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; loopback&lt;/P&gt;&lt;P&gt;&amp;nbsp; (2040:2000) 0. 6,13 =&amp;nbsp;&amp;nbsp; b01&amp;nbsp;&amp;nbsp;&amp;nbsp; speed selection = 100 Mbps&lt;/P&gt;&lt;P&gt;&amp;nbsp; (1000:1000) 0.12&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; A/N enable&lt;/P&gt;&lt;P&gt;&amp;nbsp; (0800:0000) 0.11&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; power-down&lt;/P&gt;&lt;P&gt;&amp;nbsp; (0400:0000) 0.10&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; isolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; (0200:0000) 0. 9&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; restart A/N&lt;/P&gt;&lt;P&gt;&amp;nbsp; (0100:0100) 0. 8&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; duplex = full&lt;/P&gt;&lt;P&gt;&amp;nbsp; (0080:0000) 0. 7&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; collision test enable&lt;/P&gt;&lt;P&gt;&amp;nbsp; (003f:0000) 0. 5- 0 =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; (reserved)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In u-boot 2009, the code of the PHY is very close to the sabre SDB one. Only the "mx6_rgmii_rework" need to be modified. here is the old code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int mx6_rgmii_rework(char *devname, int phy_addr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned short val;&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;#if 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* To enable AR8031 ouput a 125MHz clk from CLK_25M */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0xd, 0x7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0xe, 0x8016);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0xd, 0x4007);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_read(devname, phy_addr, 0xe, &amp;amp;val);&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;&amp;nbsp; val &amp;amp;= 0xffe3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; val |= 0x18;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0xe, val);&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;&amp;nbsp; /* introduce tx clock delay */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0x1d, 0x5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_read(devname, phy_addr, 0x1e, &amp;amp;val);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; val |= 0x0100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0x1e, val);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif&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;// FJ disable crossover cable detection&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_read(devname, phy_addr, 0x10, &amp;amp;val);&lt;/P&gt;&lt;P&gt;&amp;nbsp; val &amp;amp;= 0xFFCF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; phy_write(devname, phy_addr, 0x10, val);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know what to look for to resolve this problem... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360041#M50551</guid>
      <dc:creator>philippeleduc</dc:creator>
      <dc:date>2014-10-01T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet PHY not found - u-boot migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360042#M50552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is maybe two separate issues :&lt;/P&gt;&lt;P&gt;&amp;gt;Net:&amp;nbsp;&amp;nbsp; Phy not found&lt;/P&gt;&lt;P&gt;&amp;gt;PHY reset timed out&lt;/P&gt;&lt;P&gt;Uboot does not find the phy where you provided a phy address.&lt;/P&gt;&lt;P&gt;If your phy is at 0x00&amp;nbsp; (for mdio) then make sure&lt;/P&gt;&lt;P&gt;you configure uboot accordingly so that it finds your phy.&lt;/P&gt;&lt;P&gt;Also, how are you setting the mac address in uboot. If&lt;/P&gt;&lt;P&gt;you are providing some fake mac addresses this might&lt;/P&gt;&lt;P&gt;cause the ARP errors you are seeing.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360042#M50552</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-10-01T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet PHY not found - u-boot migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360043#M50553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the PHY you use on your board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360043#M50553</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-10-01T15:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet PHY not found - u-boot migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360044#M50554</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;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; line-height: 1.5em; background-color: #f6f6f6;"&gt;Uboot does not find the phy where you provided a phy address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;gt; If your phy is at 0x00&amp;nbsp; (for mdio) then make sure&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;gt; you configure uboot accordingly so that it finds your phy.&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thank you for the tips! That was the problem: in our old uboot, it was configured to 'discover' the PHY, in the new one, the address is set at 1 (and our PHY address is 0). It is working like a charm now (even with a fake MAC :smileyhappy:).&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;FI, the PHY is a Marvell&amp;nbsp; 88E3019.&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thank you again for your help (I was getting mad yesterday ^^').&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Philippe Leduc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 05:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-PHY-not-found-u-boot-migration/m-p/360044#M50554</guid>
      <dc:creator>philippeleduc</dc:creator>
      <dc:date>2014-10-02T05:53:59Z</dc:date>
    </item>
  </channel>
</rss>

