aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-07-13 23:05:19 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 12:16:42 -0700
commit5943fe4db34d5a5b2f8b265c8346a579512287d4 (patch)
tree9ccc5f69818a9b3449aff0a16233b0d2f9d9ad16
parent9d4e941e86bcf70e176b1abdf8f918822570f531 (diff)
downloadu-boot-linaro-stable-5943fe4db34d5a5b2f8b265c8346a579512287d4.tar.gz
PXE: look for usbethaddr if no ethaddr
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--common/cmd_pxe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c
index ee75db968..ed09d2193 100644
--- a/common/cmd_pxe.c
+++ b/common/cmd_pxe.c
@@ -61,6 +61,9 @@ static int format_mac_pxe(char *outbuf, size_t outbuf_len)
ethaddr = from_env("ethaddr");
if (!ethaddr)
+ ethaddr = from_env("usbethaddr");
+
+ if (!ethaddr)
return -ENOENT;
ethaddr_len = strlen(ethaddr);