From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758929AbZE0Uof (ORCPT ); Wed, 27 May 2009 16:44:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757286AbZE0UoX (ORCPT ); Wed, 27 May 2009 16:44:23 -0400 Received: from bsdimp.com ([199.45.160.85]:52942 "EHLO harmony.bsdimp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756581AbZE0UoW (ORCPT ); Wed, 27 May 2009 16:44:22 -0400 X-Greylist: delayed 446 seconds by postgrey-1.27 at vger.kernel.org; Wed, 27 May 2009 16:44:22 EDT Date: Wed, 27 May 2009 14:35:16 -0600 (MDT) Message-Id: <20090527.143516.-1836205167.imp@bsdimp.com> To: davem@davemloft.net Cc: timur@freescale.com, rmk+lkml@arm.linux.org.uk, devicetree-discuss@ozlabs.org, linux-kernel@vger.kernel.org, scottwood@freescale.com, yuan-bo.ye@motorola.com, linux-arm-kernel@lists.arm.linux.org.uk Subject: Re: [RFC] [PATCH] Device Tree on ARM platform From: "M. Warner Losh" In-Reply-To: <20090527.132553.40558501.davem@davemloft.net> References: <4A1D9A1E.80603@freescale.com> <4A1D9A66.5020002@freescale.com> <20090527.132553.40558501.davem@davemloft.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In message: <20090527.132553.40558501.davem@davemloft.net> David Miller writes: : From: Timur Tabi : 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