From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Sieka Date: Wed, 04 Jun 2008 14:39:50 +0200 Subject: [U-Boot-Users] Problem creating new uImage In-Reply-To: <87mym1mnlx.fsf@denx.de> References: <87mym1mnlx.fsf@denx.de> Message-ID: <48468D16.4080605@semihalf.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Markus Klotzb?cher wrote: > Dear List, > > I'm facing a problem creating a new fdt image following the instructions > in the u-boot/doc/uImage.FIT/howto.txt > > u-boot and dtc are top of git: > > $ dtc -v > Version: DTC 1.1.0-g050e6f0c > > ~/src/git/u-boot/ $ git-describe > v1.3.3-32-gf2aeecc > > I'm in the linux-2.6-denx/ directory with kernel and target blob: > > ~/src/git/linux-2.6-denx/ $ ls target.dtb vmlinux.bin.gz > target.dtb vmlinux.bin.gz > > I try to create the new image as follows: > > $ ../u-boot/tools/mkimage -f ../u-boot/doc/uImage.FIT/kernel_fdt.its kernel_fdt.itb > FIT format handling > Trying to execute "dtc -I dts -O dtb -p 500 ../u-boot/doc/uImage.FIT/kernel_fdt.its > kernel_fdt.itb.tmp" > DTC: dts->dtb on file "../u-boot/doc/uImage.FIT/kernel_fdt.its" > ../u-boot/doc/uImage.FIT/kernel_fdt.its:11 syntax error > FATAL ERROR: Unable to parse input tree > ../u-boot/tools/mkimage: Can't read kernel_fdt.itb.tmp: Invalid argument > > Any ideas? Hi Markus, Line 11 of doc/uImage.FIT/kernel_fdt.its is: data = /incbin/("./vmlinux.bin.gz"); So most likely your problem is due to mainline dtc not supporting binary includes (yet). You need to patch it with original Scott Wood's patch, see: http://www.nabble.com/-PATCH--Add-support-for-binary-includes.-td15596760.html HTH, Bartlomiej