From: Michael Walle Date: Tue, 8 Nov 2011 18:34:17 +0100 Subject: [U-Boot] [PATCH] mvgbe: remove setting of ethaddr within the driver In-Reply-To: <20111108151736.1352C13BE0C5@gemini.denx.de> References: <1320703689-4879-1-git-send-email-michael@walle.cc> <201111080857.53255.vapier@gentoo.org> <89e599b8867346f857ae2f132e9717a3.squirrel@ssl.serverraum.org> <20111108151736.1352C13BE0C5@gemini.denx.de> Message-ID: <45fd92b472c944e2cb9ebb409488ccfc.squirrel@ssl.serverraum.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, Hi Mike, Am Di, 8.11.2011, 16:17 schrieb Wolfgang Denk: > Dear "Michael Walle", > > In message <89e599b8867346f857ae2f132e9717a3.squirrel@ssl.serverraum.org> > you wrote: >> >> >> +#define CONFIG_ETH_ADDR 02:50:43:00:00:01 >> > >> > NAK to this. board configs are not allow to hardcode MACs. >> mh, so why is there a CONFIG_ETH_ADDR macro? is it deprecated? >> README.enetaddr explicitly refers to that config option. > > There are situations where it cannot be helped, like when programming > the U-Boot image into a ROM (yes, a real ROM that cannot be changed > any more by software alone). > > But in almost all normal situations this must not be used. In any > case, we will not accept it into mainline. I have a Buffalo Linkstation Pro LS-XHL for which i plan to submit a BSP. On this board, the MAC address is saved within the environment, which is in turn stored in flash. Additionally this board does not have a serial port, thus the only available console is the network console. If someone will mess up the environment, it is possible to clear it by holding a button upon powerup. Atm i have the CONFIG_ETH_ADDR set to a default MAC address to be able to use the network console with the default environment. To restore the original MAC address, a user have to manually replace ethaddr with the one printed on the case. But now, if i can't use the CONFIG_ETH_ADDR, i think i'm stuck :) Or do i miss something? (Yeah there may be the MAC randomization, if accepted). -- Michael