Add usbnet_devaddr mac address to extra env setting
to avoid failure of ethernet driver while usb start.

Odroid # usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices...
Error: sms0 address not set.
Warning: failed to set MAC address
1 Ethernet Device(s) found

Signed-off-by: Anand Moon <[email protected]>
---
 include/configs/odroid.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 64819cf81c..b0402e8d49 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -33,6 +33,7 @@
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_BASE + 0x5E00000)
 #define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
 #define CONFIG_SYS_ODROID_USB
+#define CONFIG_USBNET_DEV_ADDR          "02:DE:AD:BE:EF:FF"
 
 #include <linux/sizes.h>
 
@@ -173,6 +174,7 @@
        "kernel_addr_r=0x41000000\0" \
        "scriptaddr=0x50000000\0" \
        "pxefile_addr_r=0x51000000\0" \
+       "usbethaddr=" __stringify(CONFIG_USBNET_DEV_ADDR) "\0" \
        BOOTENV
 
 /* GPT */
-- 
2.21.0

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to