From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 4 Dec 2012 10:26:54 -0600 Subject: [U-Boot] access u-boot environment variables from kernel space In-Reply-To: (from yegorslists@googlemail.com on Tue Dec 4 07:24:51 2012) References: <1349371267.15830.4@snotra> <1354622692.2569.82.camel@Manukumar> Message-ID: <1354638414.16710.1@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/04/2012 07:24:51 AM, Yegor Yefremov wrote: > On Tue, Dec 4, 2012 at 1:04 PM, Manukumar > 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