<?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: mx28 u-boot eth1 problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224611#M15637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect there might be yet another issue with the FEC. How do you use GPIO 3_27 ? Do you use it as GPIO or as FEC_RXER or not at all? It seems this pin might be "leaking" if it's in GPIO input mode and it's incrementing the error counter ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 11:36:27 GMT</pubDate>
    <dc:creator>MarekVasut</dc:creator>
    <dc:date>2013-07-10T11:36:27Z</dc:date>
    <item>
      <title>mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224608#M15634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've built a custom iMX28 module board, and want to use u-boot to test all the interfaces. I was able to get everything working with the exception of ETH1 (FEC1 port).&lt;/P&gt;&lt;P&gt;Whenever I ping from the FEC1 port, I don't get a response, and the ETH1 Receive Buffer Descriptor notes a RX CRC error.&lt;/P&gt;&lt;P&gt;I've assigned an ip address to the board, mac adresses to each FEC port. ETH0 works fine, but ETH1 doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same u-boot image on the EVK, and both FEC ports work fine. I've poured over the schematics and artwork for my board and I can't seem to find anything wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I loaded a Linux image on my board. With Linux, I can get both FEC ports working on my board. However, when I use u-boot, FEC1 does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what might be going on, or any suggestions on where to look.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think the issue has to do with u-boot, and I'm not sure if there are register settings that have to do with timing and synchronization, which are not set up properly. Might explain why I see an Rx CRC error on the Receive buffer Descriptor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is welcome.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 00:44:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224608#M15634</guid>
      <dc:creator>Chiz</dc:creator>
      <dc:date>2013-01-15T00:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224609#M15635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try upstream U-Boot 2013.01 , it supports both FECes on mx28. It might also be a PHY issue, check that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 13:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224609#M15635</guid>
      <dc:creator>MarekVasut</dc:creator>
      <dc:date>2013-01-16T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224610#M15636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found similar problem on custom hardware and embedded code. I think that's because ethernet FEC drivers are different in U-boot and linux (see below). In my understanding, U-boot driver correctly drops frames marked with CRC error status flag, but Linux driver just increase error counter and process it, as for good CRC frames. That's why I think it could be a iMX28 FEC1 processor bug (marking all frames as bad CRC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-boot driver (/drivers/net/fec_mxc.c, function fec_recv:&lt;/P&gt;&lt;P&gt;if ((bd_status &amp;amp; FEC_RBD_LAST) &amp;amp;&amp;amp; !(bd_status &amp;amp; FEC_RBD_ERR) &amp;amp;&amp;amp; ((readw(&amp;amp;rbd-&amp;gt;data_length) - 4) &amp;gt; 14)){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // -&amp;gt; frame processing&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux driver (/drivers/net/fec.c, function fec_enet_rx):&lt;/P&gt;&lt;P&gt;if (status &amp;amp; BD_ENET_RX_CR) /* CRC Error */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev-&amp;gt;stats.rx_crc_errors++;&lt;/P&gt;&lt;P&gt;// -&amp;gt; frame processing&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 11:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224610#M15636</guid>
      <dc:creator>Bogumil</dc:creator>
      <dc:date>2013-07-10T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224611#M15637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect there might be yet another issue with the FEC. How do you use GPIO 3_27 ? Do you use it as GPIO or as FEC_RXER or not at all? It seems this pin might be "leaking" if it's in GPIO input mode and it's incrementing the error counter ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 11:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224611#M15637</guid>
      <dc:creator>MarekVasut</dc:creator>
      <dc:date>2013-07-10T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224612#M15638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my application, I use GPIO 3_27 as GPIO input. I couldn't use it now for FEC_RXER. GPIO 3_27 is not connected to the PHY. It is configured as a GPIO input. If it causes RXER on the iMX28 MAC, then I would consider that this is a chip issue. &lt;/P&gt;&lt;P&gt;However, I do not think that GPIO 3_27 (FEC_RXER) is responsible. I have configured the iMX28 to perform a loop back test on FEC1. The FEC1 interface does not send data out to the PHY, it just loops it back to itself. If the FEC_RXER pin was causing error (due to GPIO 3_27), then I would see it with the loop back test. But the loop back test was successful. So I know the issue is occuring on the MAC/PHY interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PHY on my board is the LAN8720A. The RXER pin on the PHY is actually dual function. It is used to set the PHY address on power up. Then it is left to function as RXER after power up.&lt;/P&gt;&lt;P&gt;I do wonder if the pull up resistor on this pin is too strong and causes a leakage on the RXER input. Perhaps I can change the pull up resistor, and use a weaker pull up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 12:29:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224612#M15638</guid>
      <dc:creator>Chiz</dc:creator>
      <dc:date>2013-07-10T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224613#M15639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's for tip. I've checked it and it's GPIO input (a button in my board), stable high in normal operation. Nothing changed when I pressed and hold the button (GPIO low). I'm also using LAN8720A (same on EVK).&lt;/P&gt;&lt;P&gt;Chiz Chikwendu, do You also use 2 PHY, FEC0 connected to PHY address 0, FEC1 connected to PHY address 1?&lt;/P&gt;&lt;P&gt;BTW, We've just made simple test with opposite PHYs addresses (FEC0 with PHY address 1, FEC1 with PHY address 0) and nothing changed, still CRC error in FEC1. It seems it's not an issue with LAN8720 RXER output/address. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 12:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224613#M15639</guid>
      <dc:creator>Bogumil</dc:creator>
      <dc:date>2013-07-10T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224614#M15640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've changed GPIO 3_37 from input to output (still as GPIO) and we don't receive CRC error status. For me, that confirms a processor bug. Thank's a lot Marek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 05:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224614#M15640</guid>
      <dc:creator>Bogumil</dc:creator>
      <dc:date>2013-07-11T05:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224615#M15641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today we find out exactly the same issue with eth1 at imx28 running Windows Embedded CE 6.0&lt;/P&gt;&lt;P&gt;Looks like it is bug inside IC, because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GPIO 3_37&lt;/SPAN&gt; configured like GPIO, but works like ETH1_RX_ER.&lt;/P&gt;&lt;P&gt;I have reported that to freescale and we are waiting for the answer. Does somebody reported this bug to freescale before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 14:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224615#M15641</guid>
      <dc:creator>Radist</dc:creator>
      <dc:date>2013-11-13T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224616#M15642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same issue on our custom board even with mainline U-Boot 2013.04.&lt;/P&gt;&lt;P&gt;Do you have an answer from freescale yet? Is this issue chip internal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 07:38:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224616#M15642</guid>
      <dc:creator>michaelkrummsdo</dc:creator>
      <dc:date>2014-11-05T07:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: mx28 u-boot eth1 problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224617#M15643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't informed freescale. But all my tests described above confirms that's processor internal bug (leaking GPIO input into ETH_RX_ER).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 08:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mx28-u-boot-eth1-problem/m-p/224617#M15643</guid>
      <dc:creator>Bogumil</dc:creator>
      <dc:date>2014-11-05T08:08:28Z</dc:date>
    </item>
  </channel>
</rss>

