What are the procedure to set MAC ID for ethernet?

Ethernet MAC ID can be set in 3 ways.

  1. MAC ID can be set dynamically while booting in uboot. Use the below command:

    setenv ethaddr <MAC_ID>
    saveenv; boot

  2. The same MAC ID can be set in Uboot source code in file “include/configs/imx8qm_.h”. Set the MAC under the env variable “ethaddr” and “eth1addr”
  3. Last method is to write the MAC ID to OTP. This procedure in on-time programmable. Cannot be reverted. Set the MAC ID in uboot env to “0” or null. The OTP programmed MAC ID will be automatically read during the boot.
    Please contact iWave to get the procedure for OTP programming