How to set MAC ID in uboot environment variable?

To change the MAC ID for ethernet in uboot, follow the below procedure:

• Stop the booting in uboot

• Give the below command:

setenv ethaddr 00:01:02:03:04:05
saveenv;boot

• In above command “ethaddr” is for “eth0” controller. Replace with “eth1addr” to set MAC ID for eth1 controller.