From: Seung-Woo Kim Date: Fri, 11 Aug 2023 07:12:25 +0000 (+0900) Subject: eeprom: starfive: set eth0 mac address properly X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~16^2~11 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e1e6dd946c9678e0d44d967c5ce613bbd882cb89;p=uboot.git eeprom: starfive: set eth0 mac address properly fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set ethaddr to environment instead of eth0addr. Signed-off-by: Seung-Woo Kim Reviewed-by: Leo Yu-Chi Liang --- diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c index befe7888c4..c334d98cf6 100644 --- a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c +++ b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c @@ -504,7 +504,7 @@ int mac_read_from_eeprom(void) } // 1, setup ethaddr env - eth_env_set_enetaddr("eth0addr", pbuf.eeprom.atom4.data.mac0_addr); + eth_env_set_enetaddr("ethaddr", pbuf.eeprom.atom4.data.mac0_addr); eth_env_set_enetaddr("eth1addr", pbuf.eeprom.atom4.data.mac1_addr); /**