[U-Boot] [RFC 6/6] arm: exynos: add usbnet_devaddr setting to env

Krzysztof Kozlowski krzk at kernel.org
Mon Apr 1 13:04:06 UTC 2019


On Mon, 1 Apr 2019 at 13:53, Anand Moon <linux.amoon at gmail.com> wrote:
>
> 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 <linux.amoon at gmail.com>
> ---
>  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" \

No. Either the user should set it or manufacturer (e.g. in EEPROM).

Best regards,
Krzysztof


More information about the U-Boot mailing list