[U-Boot-Users] Problem creating new uImage

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?
Thanks and regards
Markus Klotzbuecher
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@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.ht...
HTH, Bartlomiej

Hi Bartlomiej,
Bartlomiej Sieka tur@semihalf.com writes:
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.ht...
That was it (and enabling CONFIG_FIT of course).
The new Image works nicely! Thanks!
Best regards
Markus
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
participants (2)
-
Bartlomiej Sieka
-
Markus Klotzbücher