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

Scott Wood
2012-12-04T16:26:54Z

On 12/04/2012 07:24:51 AM, Yegor Yefremov wrote:
> On Tue, Dec 4, 2012 at 1:04 PM, Manukumar
> <manukumar@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