spqr Posted March 7, 2019 Posted March 7, 2019 I've installed the latest u-boot for the boards I'm working with (I have a v5 and a v7) and while I have been able to figure out how to set the MAC in linux, I would like to set the WAN MAC at the uboot level if possible. The u-boot environment variables seem to have no affect. I've flashed two boards and they both come up with the same MAC in Armbian f0:ad:4e:03:64:7f Can this somehow be altered before flashing the new u-boot?
spqr Posted March 7, 2019 Author Posted March 7, 2019 I've tried every variation of boot arguments in u-boot and no luck changing from that default MAC. Any help appreciated... This is the version of u-boot I'm using U-Boot 2018.03-devel-18.12.3-gc9aa92c-armbian (Feb 20 2019 - 09:45:04 +0100)
spqr Posted March 8, 2019 Author Posted March 8, 2019 Eureka! Just found the location of the mysterious MAC! Changed it and it worked!!! The address used was the default in /boot/boot.cmd It looks like u-boot environment is ignored... You can override the default in the armbianEnv.txt file as instructed at the top of the boot.cmd file. added and ethaddr= line and it worked! eth1addr etc. do not seem to get picked up... This all may have been obvious to people more familiar with armbian... sorry, I'm just learning my way around it.
spqr Posted March 8, 2019 Author Posted March 8, 2019 I also confirmed that settings for eth1addr eth2addr eth3addr have no effect . lan0 and lan1 must be set in interfaces.d files to give them unique MACs.
Recommended Posts