From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 18 Jan 2007 14:32:04 -0500 Subject: [U-Boot-Users] DTB /OF_TREE Newbie and U-boot In-Reply-To: <45AFC564.6080609@freescale.com> References: <000301c73b2f$635eb000$6405a8c0@absolut> <45AFC564.6080609@freescale.com> Message-ID: <45AFCB34.4010200@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Timur Tabi wrote: > Russell McGuire wrote: [snip] >> 3) Is this built into the bd_info structure? > > I'm not sure I understand. The DTB itself is not part of U-Boot, but U-Boot can > parse the tree and modify it. The dtb obsoletes the bd_info structure (but that is directly or indirectly the source of some of the added information that bootm puts into the dtb). Instead of passing a pointer to a C struct that is defined both in u-boot and the kernel (which must be identical or literally nothing happens), the dtb is structured as a searchable key/value data structure that is well defined. If the necessary key/value is in there, it will be found an used. If not, that will be reported if possible (some errors, e.g. bad console port definitions, are obviously not recoverable). HTH, gvb