[U-Boot] [PATCH 2/9] mvgbe: Support preserving the existing MAC address

Michael Spang mspang at csclub.uwaterloo.ca
Tue Apr 26 06:23:47 CEST 2011


On Mon, Apr 25, 2011 at 7:37 AM, Tabi Timur-B04825 <B04825 at freescale.com> wrote:
> On Sun, Apr 24, 2011 at 6:50 PM, Wolfgang Denk <wd at denx.de> wrote:
>
>> And please add documentation for the new CONFIG_PRESERVE_LOCAL_MAC to
>> the README.
>
> We have something similar already on Freescale parts, but it does
> sometimes cause problems.  If the environment ethaddr is already set,
> it is left alone.  Otherwise, the MAC address is read from EEPROM.
>
> So we could use CONFIG_PRESERVE_LOCAL_MAC to alter this behavior (i.e.
> always use the EEPROM).  However, the current default is already
> CONFIG_PRESERVE_LOCAL_MAC, so can we change this to something like
> CONFIG_OVERRIDE_LOCAL_MAC?

I don't think the option you want is the same. If there's a MAC in the
environment, I want to use it. Otherwise, I want U-Boot to leave the
MAC alone because the manufacturer assigned MAC was written to the
interface's registers before U-Boot started.

Michael


More information about the U-Boot mailing list