[U-Boot-Users] loading MAC address into hardware

David Peters davidp at matrixpd.com
Fri Mar 4 19:15:47 CET 2005


I understand how to set the ethaddr.  I need the ethaddr loaded into the
emac on the cpu.  I'm using an at91rm9200 if that helps at all.

-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net
[mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf Of Jerry Van
Baren
Sent: Friday, March 04, 2005 11:38 AM
To: Linux U-Boot Users List
Subject: Re: [U-Boot-Users] loading MAC address into hardware

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users








More information about the U-Boot mailing list