Reflect Custom MAC address in U-Boot
For network based boot via WAN port from U-Boot is used mac address stored in u-boot env, and not the mac address stored in the uci/system (as this place is not accessible by u-boot). Please ensure that the WAN mac address settings stored in u-boot env and in uci is synchronized, so router always use same address in Turris OS and in U-Boot.
Turris 1.x and Turis Omnia uses u-boot env eth2addr
for WAN port. Turris Mox uses ethaddr
for eth port on Mox-A module.
When specified U-Boot env is unset then U-Boot use default MAC address and not Custom MAC address.
In Turris OS on Turris Omnia following command prints U-Boot MAC address for WAN port: fw_printenv eth2addr
We should implement following behavior:
- on set & update: try to save it to u-boot env and sync value in uci config with the
ethaddr/eth2addr
env - on delete: delete
ethaddr/eth2addr
env variable