Commit 62c93d92 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

bootvx: get mac address from environment

Signed-off-by: default avatarMike Frysinger <>
CC: Niklaus Giger <>
CC: Ben Warren <>
parent de2dff6f
......@@ -131,10 +131,12 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#if defined(CONFIG_WALNUT)
tmp = (char *) CONFIG_SYS_NVRAM_BASE_ADDR + 0x500;
memcpy ((char *) tmp, (char *) &gd->bd->bi_enetaddr[3], 3);
eth_getenv_enetaddr("ethaddr", build_buf);
memcpy(tmp, &build_buf[3], 3);
memcpy ((char *) tmp, (char *) &gd->bd->bi_enetaddr[0], 6);
eth_getenv_enetaddr("ethaddr", build_buf);
memcpy(tmp, build_buf, 6);
puts ("## Ethernet MAC address not copied to NV RAM\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment