Skip to content

Commit 05020b9

Browse files
committed
sunxi: do not set Ethernet address
Signed-off-by: Michel-FK <[email protected]>
1 parent cdc1503 commit 05020b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

board/sunxi/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ static void setup_environment(const void *fdt)
808808
if ((sid[3] & 0xffffff) == 0)
809809
sid[3] |= 0x800000;
810810

811+
#if defined(CONFIG_CMD_NET)
811812
for (i = 0; i < 4; i++) {
812813
sprintf(ethaddr, "ethernet%d", i);
813814
if (!fdt_get_alias(fdt, ethaddr))
@@ -831,6 +832,7 @@ static void setup_environment(const void *fdt)
831832

832833
eth_env_set_enetaddr(ethaddr, mac_addr);
833834
}
835+
#endif
834836

835837
if (!env_get("serial#")) {
836838
snprintf(serial_string, sizeof(serial_string),

0 commit comments

Comments
 (0)