<?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 How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596852#M89546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there any recommended way, how to set MAC address for FEC on iMX6UL when networking is disabled in U-Boot? We have MAC address burned in fuses. When U-Boot is compiled with networking support ethaddr is set as environment value, and propagated to kernel correctly.&lt;/P&gt;&lt;P&gt;When networking support is disabled, MAC address is not set. We got this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought, that MAC address fuses are read by kernel driver, but obviously not. Or is there something missing in dts file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;there is a piece of code in &lt;EM&gt;fec_main.c&lt;/EM&gt; in function &lt;EM&gt;fec_get_mac&lt;/EM&gt;, which obviously should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any info&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2016 15:57:36 GMT</pubDate>
    <dc:creator>jiriluznicky</dc:creator>
    <dc:date>2016-08-15T15:57:36Z</dc:date>
    <item>
      <title>How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596852#M89546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there any recommended way, how to set MAC address for FEC on iMX6UL when networking is disabled in U-Boot? We have MAC address burned in fuses. When U-Boot is compiled with networking support ethaddr is set as environment value, and propagated to kernel correctly.&lt;/P&gt;&lt;P&gt;When networking support is disabled, MAC address is not set. We got this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought, that MAC address fuses are read by kernel driver, but obviously not. Or is there something missing in dts file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;there is a piece of code in &lt;EM&gt;fec_main.c&lt;/EM&gt; in function &lt;EM&gt;fec_get_mac&lt;/EM&gt;, which obviously should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any info&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 15:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596852#M89546</guid>
      <dc:creator>jiriluznicky</dc:creator>
      <dc:date>2016-08-15T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596853#M89547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try suggestion provided in sect.43.3.2 Getting a MAC Address&lt;/P&gt;&lt;P&gt;attached Linux Manual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 00:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596853#M89547</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-16T00:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596854#M89548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the section 45.3.2 Getting a MAC Address in Linux Manual is only described what function &lt;EM style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;fec_get_mac&lt;/EM&gt; in Ethernet driver do&lt;EM style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;. &lt;/EM&gt;So, there is nothing more to try. There are four options. Three options which work (kernel cmd line, dts file, MAC set by bootloader) and one which doesn't (OCOTP alias Fuses).&lt;/P&gt;&lt;P&gt;To be more specific. In function &lt;EM&gt;fec_get_mac&lt;/EM&gt; is following code (line 1637): &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * 3) from flash or fuse (via platform data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; if (pdata)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap = (unsigned char *)&amp;amp;pdata-&amp;gt;mac;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The question is, who set &lt;EM&gt;pdata-&amp;gt;mac&lt;/EM&gt; earlier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 08:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596854#M89548</guid>
      <dc:creator>jiriluznicky</dc:creator>
      <dc:date>2016-08-16T08:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596855#M89549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one can check linux/..arm/mach-imx/common.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 23:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596855#M89549</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-16T23:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596856#M89550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Honestly, I would by very surprised (and happy) if someone shows me the exact location when the read of OCOTP_MAC is done in kernel code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596856#M89550</guid>
      <dc:creator>jiriluznicky</dc:creator>
      <dc:date>2016-08-17T12:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596857#M89551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In linux-4.6.2 to be more specific. Or is it present only in old 3.14 from BSP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 13:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596857#M89551</guid>
      <dc:creator>jiriluznicky</dc:creator>
      <dc:date>2016-08-17T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596858#M89552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; linux-4.6.2 is not supported, please try official nxp bsps from i.MX6 product page&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fmicrocontrollers-and-processors%2Farm-processors%2Fi.mx-applications-processors%2Fi.mx-6-processors%2Fi.mx6qp%2Fi.mx-6-series-software-and-development-tool-resources%3AIMX6_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6-series-software-and-development-tool-resources:IMX6_SW&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 00:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-a-MAC-address-when-using-U-Boot-with-CONFIG-CMD-NET-n/m-p/596858#M89552</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-18T00:00:14Z</dc:date>
    </item>
  </channel>
</rss>

