From: Lubomir Rintel Date: Wed, 3 Feb 2016 15:08:09 +0000 (+0100) Subject: rpi: set ethaddr as well X-Git-Tag: KARO-TXSD-2017-03-15~1884 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=859f1437156b60dc0655917d067fec566885ac96;p=karo-tx-uboot.git rpi: set ethaddr as well Let's set "ethaddr" when we get the ethernet address too, so that fdt_fixup_ethernet() sets the address in the device tree and the Linux driver can pick it up. Signed-off-by: Lubomir Rintel Tested-by: Stephen Warren --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 89d78cc6c4..7f4fe64385 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -259,6 +259,9 @@ static void set_usbethaddr(void) eth_setenv_enetaddr("usbethaddr", msg->get_mac_address.body.resp.mac); + if (!getenv("ethaddr")) + setenv("ethaddr", getenv("usbethaddr")); + return; }