From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sat, 19 Jul 2008 09:59:34 -0400 Subject: [U-Boot-Users] question of "flattened device tree" In-Reply-To: References: Message-ID: <4881F346.4030702@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de xiangguo_li at hotmail.com wrote: > hello, > > under U-Boot, some board configuration files contain "flattened device > tree" > elements, such as "OF_CPU", "OF_STDOUT_PATH", etc. while in booting > Linux, a > separate file dtb is used. > > if both are used, what's the relationship about them? > > thanks. > > -lxg Processor and board are??? I believe your question is indicating that you are using an older version of u-boot with "CONFIG_OF_FLAT_TREE" defined. This has been deprecated and has been removed in the latest u-boot. The current code no longer defines or uses "OF_CPU", "OF_STDOUT_PATH", etc. Please update your u-boot and switch to using CONFIG_OF_LIBFDT and dts files from a recent version of the linux kernel source (or edit your dts file to pick up the improvements shown in the linux version). Don't forget to include an /aliases node pointing to the proper hardware configurations. The u-boot code now uses that to find the fdt pieces for its fixups rather than "OF_CPU", "OF_STDOUT_PATH", etc. Best regards, gvb