<?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: Unable to set MAC address on RDB2 with BSP v33 in S32G</title>
    <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1593308#M2150</link>
    <description>I do not see where those files are located. Is it a part of the yocto BSP? Can you provide some steps on where they are lcoated?</description>
    <pubDate>Fri, 03 Feb 2023 18:10:43 GMT</pubDate>
    <dc:creator>rishabh-j-dev</dc:creator>
    <dc:date>2023-02-03T18:10:43Z</dc:date>
    <item>
      <title>Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1591796#M2132</link>
      <description>&lt;P&gt;We are using the GMAC interface on our RDB2 and require a stable MAC address. On AutoLinux BSP v30, we are able to set the MAC addr with the following command in u-boot. However, when we try the same command in BSP v33, the MAC address does not seem to change for the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are checking the MAC address with the "ifconfig" utility in Linux&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;SPAN&gt;setenv ethaddr "66:22:00:02:22:17"&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set a stable MAC address for the GMAC interface while using BSP v33?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The specific board we are using is&amp;nbsp;s32g274ardb2&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 02:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1591796#M2132</guid>
      <dc:creator>rishabh-j-dev</dc:creator>
      <dc:date>2023-02-02T02:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592623#M2144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Once you set the environment, you saved it? Also, is it needed for your application to change it on u-boot? Or can you define the MAC prior to building the image?&lt;/P&gt;
&lt;P&gt;Please, let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592623#M2144</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-02-02T20:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592632#M2145</link>
      <description>Yes, I can verify I save it using "saveenv". I can also verify that the env variable is set as if do printenv I can see the value on reboot.&lt;BR /&gt;&lt;BR /&gt;It can be defined during the image build, what is the way of doing that?</description>
      <pubDate>Thu, 02 Feb 2023 21:18:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592632#M2145</guid>
      <dc:creator>rishabh-j-dev</dc:creator>
      <dc:date>2023-02-02T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592655#M2146</link>
      <description>&lt;P&gt;The Device tree files should have this information. Help us verify if the following files do help with your request.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"arch/arm64/boot/dts/freescale/s32cc.dtsi"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"arch/arm64/boot/dts/freescale/s32g-pfe.dtsi"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In the meantime, we will continue our investigation on why the environment variable did not work.&lt;/P&gt;
&lt;P&gt;Please, let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 23:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1592655#M2146</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-02-02T23:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1593308#M2150</link>
      <description>I do not see where those files are located. Is it a part of the yocto BSP? Can you provide some steps on where they are lcoated?</description>
      <pubDate>Fri, 03 Feb 2023 18:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1593308#M2150</guid>
      <dc:creator>rishabh-j-dev</dc:creator>
      <dc:date>2023-02-03T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1593378#M2154</link>
      <description>&lt;P&gt;We have access to them once we copy the linux repository from codeaurora.&lt;/P&gt;
&lt;P&gt;It will be inside the linux folder then following the different addresses we have mentioned before.&lt;/P&gt;
&lt;P&gt;Please, let us know.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 21:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1593378#M2154</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-02-03T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1595058#M2163</link>
      <description>&lt;P&gt;We have received the following comments:&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;Please add following patch into u-boot to have a try&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;From aaec17964098c65072dff5d11246933e94b37584 Mon Sep 17 00:00:00 2001
From: Yibo Liu &amp;lt;yibo.liu@nxp.com&amp;gt;
Date: Mon, 6 Feb 2023 11:10:03 +0800
Subject: [PATCH] gmac_addr_fix

---
 arch/arm/mach-s32/s32-cc/eth.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-s32/s32-cc/eth.c b/arch/arm/mach-s32/s32-cc/eth.c
index 3270a773e0..586e33353d 100644
--- a/arch/arm/mach-s32/s32-cc/eth.c
+++ b/arch/arm/mach-s32/s32-cc/eth.c
@@ -26,7 +26,7 @@
 #include &amp;lt;dm/platform_data/pfeng_dm_eth.h&amp;gt;
 #endif
 
-#if CONFIG_IS_ENABLED(FSL_PFENG)
+#if CONFIG_IS_ENABLED(FSL_PFENG) || CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
 static void ft_update_eth_addr_by_name(const char *name, const u8 idx,
 				       void *fdt, int nodeoff)
 {
@@ -170,6 +170,9 @@ void ft_enet_fixup(void *fdt)
 {
 	int __maybe_unused nodeoff;
 	bool __maybe_unused ena;
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
+	u8 idx = 0;
+#endif /* CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC) */
 
 	/* PFE */
 #if CONFIG_IS_ENABLED(FSL_PFENG)
@@ -191,6 +194,15 @@ void ft_enet_fixup(void *fdt)
 	}
 #endif /* CONFIG_IS_ENABLED(FSL_PFENG) */
 
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
+	nodeoff = fdt_node_offset_by_compatible(fdt, -1, "nxp,s32cc-dwmac");
+	while (nodeoff != -FDT_ERR_NOTFOUND) {
+		ft_update_eth_addr_by_name("eth", idx, fdt, nodeoff);
+		nodeoff = fdt_node_offset_by_compatible(fdt, nodeoff, "nxp,s32cc-dwmac");
+		idx++;
+	}
+#endif /* CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC) */
+
 	/* GMAC */
 #if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
 	bool gmac0_ena = true;
-- 
2.17.1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;Please, let us know if this works or not.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 22:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1595058#M2163</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-02-07T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1606357#M2336</link>
      <description>This patch worked. Thanks!</description>
      <pubDate>Mon, 27 Feb 2023 20:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1606357#M2336</guid>
      <dc:creator>rishabh-j-dev</dc:creator>
      <dc:date>2023-02-27T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set MAC address on RDB2 with BSP v33</title>
      <link>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1607798#M2358</link>
      <description>&lt;P&gt;Thanks for your feedback.&lt;/P&gt;
&lt;P&gt;Have a great day.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Unable-to-set-MAC-address-on-RDB2-with-BSP-v33/m-p/1607798#M2358</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-03-01T15:26:54Z</dc:date>
    </item>
  </channel>
</rss>

