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-04-25 07:54:09 -0600
commitb57be9611f950e0126861ac14359149260b45f39 (patch)
tree2c6dbded601d167e1ff4ff6bf3da3475ce897f46
parent802c5eca364c833fd242ccaa42e71a2fff36d500 (diff)
downloadu-boot-linaro-stable-b57be9611f950e0126861ac14359149260b45f39.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 b3c1f67a3..534e7bc63 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);