From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe De Muyter Date: Sun, 21 Feb 2010 01:47:33 +0100 Subject: [U-Boot] what's the uboot way to pass eth*addr to linux ? In-Reply-To: References: <20100219175016.GA25288@frolo.macqel> <20100220103808.GA15249@frolo.macqel> Message-ID: <20100221004733.GA22011@frolo.macqel> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Maxim, On Sat, Feb 20, 2010 at 05:49:53PM +0300, Maxim Podbereznyi wrote: > > The code for MontaVista with kernel 2.4: > > static int nicGetMacAddress(u8* macaddr) > { [...] > endptr = fw_getenv(sf, "ethaddr"); [...] > } > > Hope you can easily adapt it to your kernel! So the library fucntion to retrieve the value of a u-boot environment variable is 'fw_getenv'. I do not have that function in my linux sources. Philippe