Ethernet MAC address

There are lots of ways to achieve this. The simplest method is to set and save the environment variable in u-boot, e.g.

Warning: ethernet@4070000 (eth0) using random MAC address - 86:27:15:cb:f9:b5
eth0: ethernet@4070000
Hit any key to stop autoboot:  0 
cv180x_c906# 
cv180x_c906# setenv ethaddr aa:bb:cc:dd:11:22
cv180x_c906# saveenv
Saving Environment to NAND... Erasing NAND...
Erasing at 0x880000 -- 100% complete.
Writing to NAND... OK
OK
cv180x_c906# printenv ethaddr 
ethaddr=aa:bb:cc:dd:11:22
1 Like