Re: [RFC] [PATCH] Device Tree on ARM platform

From: M. Warner Losh
Date: Wed May 27 2009 - 16:44:39 EST


In message: <20090527.132553.40558501.davem@xxxxxxxxxxxxx>
David Miller <davem@xxxxxxxxxxxxx> writes:
: From: Timur Tabi <timur@xxxxxxxxxxxxx>
: Date: Wed, 27 May 2009 14:54:14 -0500
:
: > How does a Linux driver normally get a MAC address if it's not
: > passed via the device tree and it isn't already programmed in the
: > hardware? Is there some file in /etc that stores these things?
:
: It depends. Some devices have EEPROM's that store the permanently
: assigned MAC address, some have NVRAM for this, and yet other's put it
: into the PCI ROM.

Some also put it into their CIS for things like PC Card, CardBus and
SDIO too. It is the definition of device specific :).

: Some platforms that have real OF device trees often do not put the
: permanent MAC address into the EEPROM or NVRAM even if it is
: customary to do so on a particular device. The MAC has to be
: obtained from the OF device tree.

This is but one of many ways to get it...

Warner
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/