This prevents u-boot to print out "Can't overwrite "ethaddr"" each time a powerpc board starts.
Signed-off-by: Holger Brunck <holger.bru...@keymile.com> cc: Wolfgang Denk <w...@denx.de> --- board/keymile/common/ivm.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index d0cb0d2..db07004 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -221,7 +221,12 @@ static int ivm_analyze_block2(unsigned char *buf, int len) sprintf((char *)valbuf, "%pM", buf); } #endif +#ifdef MACH_TYPE_KM_KIRKWOOD setenv((char *)"ethaddr", (char *)valbuf); +#else + if (getenv("ethaddr") == NULL) + setenv((char *)"ethaddr", (char *)valbuf); +#endif /* IVM_MacCount */ count = (buf[10] << 24) + -- 1.7.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot