From mboxrd@z Thu Jan 1 00:00:00 1970 From: JerryVanBaren Date: Wed, 03 Sep 2008 16:20:44 -0400 Subject: [U-Boot] How to get mac address into device tree for powerpc? In-Reply-To: <20080903195641.590FA19E004E@mail34-va3.bigfish.com> References: <20080903195641.590FA19E004E@mail34-va3.bigfish.com> Message-ID: <48BEF19C.3000802@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de John Linn wrote: > I have u-boot retrieving the mac address from the i2c eeprom and using > it fine. > > But it's not clear to me how I should go about getting it into the > device tree so that the kernel can use it. > > Is there anyway to do this without doing it manually from the command > line? Call fdt_fixup_ethernet() from your board initialization (see common/fdt_support.c). You may want to look at some other utilities in there and at some example calls from board configurations, e.g. board/freescale/mpc8360emds/mpc8360emds.c to pick one pseudo randomly (I don't know if that is the best example, YMMV, etc.). > Thanks, > > John Best regards, gvb