[U-Boot] what's the uboot way to pass eth*addr to linux ?

Ben Warren biggerbadderben at gmail.com
Sun Feb 21 05:07:03 CET 2010


Hi Philippe,

On Sat, Feb 20, 2010 at 4:47 PM, Philippe De Muyter <phdm at macqel.be> wrote:

> 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.
>
> It's a tool in the U-boot source tree.

> Philippe
>
regards,
Ben


More information about the U-Boot mailing list