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 at denx.de
Quoted 28 lines · Markus Klotzb?cher
Dear List,
I'm facing a problem creating a new fdt image following the instructions in the
u-boot/doc/uImage.FIT/howto.txtu-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-gf2aeeccI'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
Quoted 1 line
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
Hi Bartlomiej,
Quoted 8 lines · Bartlomiej Sieka
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
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 at denx.de