<?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のトピックLX2160A-RDB - Uboot not conveying the MAC address to Linux</title>
    <link>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719644#M13257</link>
    <description>&lt;P&gt;I'm trying to configure custom ethernet mac addresses from u-boot and convey it to Linux on LX2160A-RDB based custom hw. I could configure the mac addresses on u-boot using "mac" command.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;However, Linux eth interfaces still shows random mac addresses&lt;/STRONG&gt;. Please find the details below.&lt;/P&gt;&lt;P&gt;As per my understanding, u-boot provides “mac” command to configure eth mac addresses for DPAA2 (fsl-mc). “mac” command store this mac configuration in EEPROM. after configuring mac, uboot updates&amp;nbsp;ethaddr/ethXaddr environment variable.&lt;/P&gt;&lt;P&gt;u-boot then loads Linux device tree and before passing it to the kernel, it calls&amp;nbsp;&lt;SPAN&gt;fdt_fixup_ethernet&lt;/SPAN&gt;&lt;SPAN&gt;(blob) api to updates "&lt;/SPAN&gt;mac-address" and "local-mac-address" fields with ethaddr/ethXaddr mac entries in Linux device tree for&amp;nbsp;dpmac nodes.&lt;/P&gt;&lt;P&gt;DPL device tree contains dpmac configurations. Do we also need "mac_addr" field in DPL for dpni nodes?&lt;/P&gt;&lt;P&gt;On Linux side, It still uses random mac addresses for eth interfaces. Does&amp;nbsp;&lt;SPAN&gt;fsl-dpaa2-mac/fsl-dpaa2-eth driver uses "mac-address" field from dpmac node from Linux device tree?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Is there any additional configuration required for Linux to uses mac addresses passed from uboot?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From u-boot console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;eth0: DPMAC3@10gbase-r, eth1: DPMAC4@10gbase-r, eth2: DPMAC5@10gbase-r, eth3: DPMAC6@10gbase-r&lt;/P&gt;&lt;P&gt;=&amp;gt; mac&lt;BR /&gt;ID: NXID v1&lt;BR /&gt;SN: blbx3-63&lt;BR /&gt;Errata: na&lt;BR /&gt;Eth0: 00:04:9f:04:68:b1&lt;BR /&gt;Eth1: 00:04:9f:04:68:b2&lt;BR /&gt;Eth2: 00:04:9f:04:68:b3&lt;BR /&gt;Eth3: 00:04:9f:04:68:b4&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;printenv&lt;BR /&gt;ethaddr=00:04:9F:04:68:B1&lt;BR /&gt;eth1addr=00:04:9F:04:68:B2&lt;BR /&gt;eth2addr=00:04:9F:04:68:B3&lt;BR /&gt;eth3addr=00:04:9F:04:68:B4&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux device tree configuration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aliases {&lt;BR /&gt;ethernet0 = &amp;amp;dpmac3;&lt;BR /&gt;ethernet1 = &amp;amp;dpmac4;&lt;BR /&gt;ethernet2 = &amp;amp;dpmac5;&lt;BR /&gt;ethernet3 = &amp;amp;dpmac6;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac3 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac4 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac5 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac6 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root@blackcomb-rev1:~# ip link&lt;BR /&gt;4: eth1: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether a2:04:30:ae:34:99&lt;/STRONG&gt; &lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;5: eth2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 12:9b:71:f2:aa:b7&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;6: eth3: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 82:12:40:b9:3e:78&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;7: eth4: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 26:59:9f:47:61:a6&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 15:05:47 GMT</pubDate>
    <dc:creator>csr202</dc:creator>
    <dc:date>2023-09-08T15:05:47Z</dc:date>
    <item>
      <title>LX2160A-RDB - Uboot not conveying the MAC address to Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719644#M13257</link>
      <description>&lt;P&gt;I'm trying to configure custom ethernet mac addresses from u-boot and convey it to Linux on LX2160A-RDB based custom hw. I could configure the mac addresses on u-boot using "mac" command.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;However, Linux eth interfaces still shows random mac addresses&lt;/STRONG&gt;. Please find the details below.&lt;/P&gt;&lt;P&gt;As per my understanding, u-boot provides “mac” command to configure eth mac addresses for DPAA2 (fsl-mc). “mac” command store this mac configuration in EEPROM. after configuring mac, uboot updates&amp;nbsp;ethaddr/ethXaddr environment variable.&lt;/P&gt;&lt;P&gt;u-boot then loads Linux device tree and before passing it to the kernel, it calls&amp;nbsp;&lt;SPAN&gt;fdt_fixup_ethernet&lt;/SPAN&gt;&lt;SPAN&gt;(blob) api to updates "&lt;/SPAN&gt;mac-address" and "local-mac-address" fields with ethaddr/ethXaddr mac entries in Linux device tree for&amp;nbsp;dpmac nodes.&lt;/P&gt;&lt;P&gt;DPL device tree contains dpmac configurations. Do we also need "mac_addr" field in DPL for dpni nodes?&lt;/P&gt;&lt;P&gt;On Linux side, It still uses random mac addresses for eth interfaces. Does&amp;nbsp;&lt;SPAN&gt;fsl-dpaa2-mac/fsl-dpaa2-eth driver uses "mac-address" field from dpmac node from Linux device tree?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Is there any additional configuration required for Linux to uses mac addresses passed from uboot?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From u-boot console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;eth0: DPMAC3@10gbase-r, eth1: DPMAC4@10gbase-r, eth2: DPMAC5@10gbase-r, eth3: DPMAC6@10gbase-r&lt;/P&gt;&lt;P&gt;=&amp;gt; mac&lt;BR /&gt;ID: NXID v1&lt;BR /&gt;SN: blbx3-63&lt;BR /&gt;Errata: na&lt;BR /&gt;Eth0: 00:04:9f:04:68:b1&lt;BR /&gt;Eth1: 00:04:9f:04:68:b2&lt;BR /&gt;Eth2: 00:04:9f:04:68:b3&lt;BR /&gt;Eth3: 00:04:9f:04:68:b4&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;printenv&lt;BR /&gt;ethaddr=00:04:9F:04:68:B1&lt;BR /&gt;eth1addr=00:04:9F:04:68:B2&lt;BR /&gt;eth2addr=00:04:9F:04:68:B3&lt;BR /&gt;eth3addr=00:04:9F:04:68:B4&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux device tree configuration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aliases {&lt;BR /&gt;ethernet0 = &amp;amp;dpmac3;&lt;BR /&gt;ethernet1 = &amp;amp;dpmac4;&lt;BR /&gt;ethernet2 = &amp;amp;dpmac5;&lt;BR /&gt;ethernet3 = &amp;amp;dpmac6;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac3 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac4 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac5 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;dpmac6 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;phy-connection-type = "10gbase-r";&lt;BR /&gt;mac-address = [00 00 00 00 00 00];&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root@blackcomb-rev1:~# ip link&lt;BR /&gt;4: eth1: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether a2:04:30:ae:34:99&lt;/STRONG&gt; &lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;5: eth2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 12:9b:71:f2:aa:b7&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;6: eth3: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 82:12:40:b9:3e:78&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;7: eth4: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000&lt;BR /&gt;&lt;STRONG&gt;link/ether 26:59:9f:47:61:a6&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;lt;= Random mac address&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 15:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719644#M13257</guid>
      <dc:creator>csr202</dc:creator>
      <dc:date>2023-09-08T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160A-RDB - Uboot not conveying the MAC address to Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719731#M13261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products,&lt;/P&gt;
&lt;P&gt;You have enabled FDT_SEQ_MACADDR_FROM_ENV in your configs?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 19:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719731#M13261</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2023-09-08T19:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160A-RDB - Uboot not conveying the MAC address to Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719741#M13262</link>
      <description>Thanks Joseph.&lt;BR /&gt;I tried defining FDT_SEQ_MACADDR_FROM_ENV in u-boot config header. It didn't make any difference, I still see the random mac addresses on Linux eth interfaces.&lt;BR /&gt;&lt;BR /&gt;From u-boot it does update mac entries in device tree before passing it to Linux.&lt;BR /&gt;Loading Device Tree to 000000009eff4000, end 000000009efff7bd ... OK&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@3/mac-address' = 00 04 9f 04 68 b1&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@3/local-mac-address' = 00 04 9f 04 68 b1&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@4/mac-address' = 00 04 9f 04 68 b2&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@4/local-mac-address' = 00 04 9f 04 68 b2&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@5/mac-address' = 00 04 9f 04 68 b3&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@5/local-mac-address' = 00 04 9f 04 68 b3&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@6/mac-address' = 00 04 9f 04 68 b4&lt;BR /&gt;Updating property '/soc/fsl-mc@80c000000/dpmacs/ethernet@6/local-mac-address' = 00 04 9f 04 68 b4</description>
      <pubDate>Fri, 08 Sep 2023 20:49:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1719741#M13262</guid>
      <dc:creator>csr202</dc:creator>
      <dc:date>2023-09-08T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160A-RDB - Uboot not conveying the MAC address to Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1721464#M13283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I understand, by the time you tried with FDT...CONFIG you hadn't any MAC addresses in DTS, right? I saw that you tried in DTS set them to a different value.&lt;/P&gt;
&lt;P&gt;Also, it'd worth trying to remove this &lt;A href="https://github.com/nxp-qoriq/u-boot/blob/lf_v2022.04/configs/lx2160ardb_tfa_defconfig#L56" target="_self"&gt;property&lt;/A&gt; from defconfig&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 00:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160A-RDB-Uboot-not-conveying-the-MAC-address-to-Linux/m-p/1721464#M13283</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2023-09-13T00:59:51Z</dc:date>
    </item>
  </channel>
</rss>

