From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from AGRXSUSMAILB.smiths.aero (host241-chi.smiths-group.com [65.216.75.241]) by ozlabs.org (Postfix) with ESMTP id 504E5DDF1D for ; Thu, 22 Mar 2007 02:25:53 +1100 (EST) Message-ID: <46014E6A.90002@smiths-aerospace.com> Date: Wed, 21 Mar 2007 11:25:30 -0400 From: Jerry Van Baren MIME-Version: 1.0 To: Timur Tabi Subject: Re: [PATCH 10/17] bootwrapper: Add dt_set_mac_addresses(). References: <20070316172641.GA29709@ld0162-tx32.am.freescale.net> <20070316172853.GJ29784@ld0162-tx32.am.freescale.net> <20070317013159.GH3969@localhost.localdomain> <45FC8643.1080807@freescale.com> <20070318115656.GA12765@localhost.localdomain> <45FEA7B3.9090304@freescale.com> <20070320035957.GC21124@localhost.localdomain> <45FFE8FD.9020902@freescale.com> <20070321025447.GG27969@localhost.localdomain> <460148DC.3020600@freescale.com> In-Reply-To: <460148DC.3020600@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Timur Tabi wrote: > David Gibson wrote: > >> Ah, and it can't add the property if it's not there at all. Ok, I >> think I understand now. But.. does u-boot directly use the dts files >> from the kernel tree, or does it have its own copies? > > I'm not sure what you mean by that. You compile the DTS into a DTB, and > then make the DTB available to U-Boot. That can mean either storing it > in flash, or tftp'ing it into memory. When you boot Linux via the > U-Boot "bootm" command, you give it the address of the DTB in memory. > U-Boot than looks for various things and updates them. It also creates > a couple new things, like a 'chosen' section. > > If the DTB is in flash, it copies it to RAM. Then it updates the > in-memory copy. It's very hack-ish, though. I think it just overwrites > various nodes as it pleases, and then reconnects everything. FWIIW, I'm getting close to having a usable implementation of a new u-boot command "fdt" that is a lot cleaner than the hack-ish automagical bootm copying and updating (and uses libfdt - thanks, David!). I just sent an update this morning: [snip] Best regards, gvb