[U-Boot] [PATCH 2/9] mvgbe: Support preserving the existing MAC address
Tabi Timur-B04825
B04825 at freescale.com
Sat Apr 30 16:34:16 CEST 2011
Mike Frysinger wrote:
> so implement this in your board file in misc_init_r or board_eth_init. have
> the code do something like:
> uchar enetaddr[6];
> if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
> /* ... read current MAC out of the driver's registers ... */
> eth_setenv_enetaddr("ethaddr", enetaddr);
> }
>
> then you dont need ugly config hacks in random drivers
This is a feature that could be applied to the e1000 drivers. The current situation is a mess. Some drivers ignore the environment, some of them always use it. This should probably be standardized.
--
Timur Tabi
Linux kernel developer at Freescale
More information about the U-Boot
mailing list