Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As standard option Zynq FSBL for TE modules does read and display on primary UART the MAC address that is stored on the module, this MAC Address is written to registers of the PS7 ETH ControllerPrimary Ethernet IP Core. If u-boot (or another second stage bootloader) does not overwrite it, then it will persist and be used in Linux (or other O/S) as well.

...

Xilinx u-boot and u-boot drivers for Zynq and MicroBlaze do not support any kind of reading of the MAC, they do not support the setting of MAC in Ethernet driver and they do not provide any means to add this functions without patching Xilinx u-boot source code.

Xilinx document UG983 explains how to set MAC address from u-boot prompt.

To disable u-boot to overwrite the MAC Address that was read and set in FSBL environment variable ethmacskip needs to be set. This prevents u-boot to write the MAC from environment into Ethernet Hardware.

As only option to use proper MAC Address (read from hardware MAC Address EEPROM in FSBL or other first stage bootloader) shared memory can be used. This method is supported by TE supplied FSBL hooks code. This MAC Address info is loaded into u-boot using a script - there is no need to patch u-boot source code.