[U-Boot] access u-boot environment variables from kernel space

Scott Wood scottwood at freescale.com
Tue Dec 4 17:26:54 CET 2012


On 12/04/2012 07:24:51 AM, Yegor Yefremov wrote:
> On Tue, Dec 4, 2012 at 1:04 PM, Manukumar  
> <manukumar at signal-networks.com> wrote:
> > Dear All,
> >
> > How to access u-boot environment variables from kernel space or user
> > space in P1012 processor.
> >
> > The variables required to be accessed from uboot environment section
> > are:
> >
> > eth1addr
> 
> You can get the MAC address from related registers of your Ethernet
> controller, provided they where set by u-boot. This is way the network
> driver goes.

No, you get that from the device tree.  You cannot rely on U-Boot to  
have initialized the network hardware, or on the network hardware to  
not have been reset since then.

-Scott


More information about the U-Boot mailing list