-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NXP S32Z270DC2_R52 platform uses same MAC for every build #61478
Comments
hi @benmordaunt. You can change the |
@manuargue Sure, that is what I am currently doing. However neither approach is particularly robust. Most embedded systems have an EEPROM somewhere with a factory-programmed partial (24-bit) MAC address which can be read. Is that not the case here? I'm not sure it should be necessary to provide a DT overlay just to have unique MAC addresses... |
I understand the use-case. Not many Ethernet drivers in Zephyr do that out-of-the-box, only the Atmel SAM GMAC https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/ethernet/eth_sam_gmac.c#L1799-L1820 There's an on-board EEPROM that can be used for this purpose, but is not of my knowledge that it has a factory pre-programmed partial MAC address on it. I will consult with the hw design team and come back to you on this. In the meantime, I'll mark this as a feature request instead of a bug. |
Hi @benjaminmordaunt. The on-board EEPROM does not contain factory-programmed MAC addresses and is there with the intention to support RCON boot, not for parameters storage. Although, this does not prevent the user to use the EEPROM for something else if RCON boot is not used, but the user would need to program it before booting Zephyr, provided there's a mechanism implemented in the Ethernet driver to pull the MAC address from a configurable memory address (actually more than one addresses since the NETC exposes multiple SI's plus the Switch ports). An alternative storage would be the fuse space. I will keep this issue open while internally at NXP analyze if it's feasible and valuable to implement this use-case for Zephyr. |
Hello @benjaminmordaunt, sorry for a delay in response. As discussed last year, since the board does not contain unique factory-programmed MAC addresses, user would need program to store the MAC addresses into hardware before booting Zephyr. Is you still interested this approach as a solution for the feature request? Thanks. |
closing as this ad-hoc feature request have been logged almost a year ago and currently there's no response from the author. If needed, it can be re-opened. |
The NXP S32Z270DC2_R52 platform uses the same MAC address for every build (specifically for the enetc_psi0 interface:
zephyr/boards/arm/s32z270dc2_r52/s32z270dc2_r52.dtsi
Line 108 in b423314
instead of deriving it from EEPROM or similar.
As a result, attempting to network several of these boards together will fail at ARP resolution (layer 2). Is there not a unique partial MAC stored somewhere on this board/PHY?
Thanks,
Ben
The text was updated successfully, but these errors were encountered: