From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tabi Timur-B04825 Date: Sat, 30 Apr 2011 14:34:16 +0000 Subject: [U-Boot] [PATCH 2/9] mvgbe: Support preserving the existing MAC address In-Reply-To: <201104300017.49151.vapier@gentoo.org> References: <1300391223-11879-1-git-send-email-mspang@csclub.uwaterloo.ca> <201104300017.49151.vapier@gentoo.org> Message-ID: <4DBC1DE7.3020904@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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