From: Jon Loeliger Date: Thu, 03 May 2007 10:40:04 -0500 Subject: [U-Boot-Users] Where do you find *.dtb files? In-Reply-To: <4639B9ED.7030902@cambridgebroadband.com> References: <4639B9ED.7030902@cambridgebroadband.com> Message-ID: <1178206804.17201.27.camel@ld0161-tx32> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2007-05-03 at 05:31, Alex Zeffertt wrote: > Hi all, > > I'm trying to boot linux-2.6.21-rc5 on my mpc832xemds board which is running > u-boot 1.2.0. > > According to u-boot I need a device tree blob: > > => help bootm > bootm [addr [arg ...]] > - boot application image stored in memory > passing arguments 'arg ...'; when booting a Linux kernel, > 'arg' can be the address of an initrd image > When booting a Linux kernel which requires a flat device-tree > a third argument is required which is the address of the of the > device-tree blob. To boot that kernel without an initrd image, > use a '-' for the second argument. If you do not pass a third > a bd_info struct will be passed instead > > > Can anybody tell me where I can find one for this board? In short, you make the ".dtb" file from a .dts file. The DTS files are likely found in the Linux kernel sources in the directory arch/powerpc/boot/dts/ or else you make one up specifically for your (custom) board. You use the Device Tree Compiler, which is found on www.jdl.com/git_repos The command invocation you want will be something like: .dtc -b 0 -f -I dts -O dtb mpcXXXX.dts > mpcXXXX.dtb And you may want to add something like "-S 0x3000" too. HTH, jdl