From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Fri, 4 Mar 2005 12:38:08 -0500 Subject: [U-Boot-Users] loading MAC address into hardware In-Reply-To: <3rr11u$5li5t0@mxip25a.cluster1.charter.net> References: <3rr11u$5li5t0@mxip25a.cluster1.charter.net> Message-ID: <42289D00.4030203@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de David Peters wrote: > I am trying to boot Linux from flash, but the problem is that the MAC > address never gets initialized before starting Linux. Is there a way to > instruct u-boot to load the MAC address into the hardware before starting > Linux? Yes. http://www.denx.de/twiki/bin/view/DULG/UBootCmdGroupEnvironment http://www.denx.de/twiki/bin/view/DULG/UBootEnvVariables * ethaddr: Ethernet MAC address for first/only ethernet interface (= eth0 in Linux). This variable can be set only once (usually during manufacturing of the board). U-Boot refuses to delete or overwrite this variable once it has been set. * eth1addr: Ethernet MAC address for second ethernet interface (= eth1 in Linux). * eth2addr: Ethernet MAC address for third ethernet interface (= eth2 in Linux). Some assembly may be required: we don't know _your_ board, _you_ may have to implement the routine that actually stores the MAC in your hardware. gvb