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>2011-09-23 07:10:40 -0600
commit8f2030d6be7745ddfca7605535c66ba108fda3fa (patch)
tree65ba703039b54e4aacb05ac9036a2a5501b2ebcb
parentb952b806265583edd68ba72ace537c33331811b1 (diff)
downloadu-boot-linaro-stable-8f2030d6be7745ddfca7605535c66ba108fda3fa.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 3efd7008e..56bd21a42 100644
--- a/common/cmd_pxe.c
+++ b/common/cmd_pxe.c
@@ -62,6 +62,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);