public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Problem creating new uImage
@ 2008-06-04 11:43 Markus Klotzbücher
  2008-06-04 12:39 ` Bartlomiej Sieka
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Klotzbücher @ 2008-06-04 11:43 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Problem creating new uImage
  2008-06-04 11:43 [U-Boot-Users] Problem creating new uImage Markus Klotzbücher
@ 2008-06-04 12:39 ` Bartlomiej Sieka
  2008-06-04 13:53   ` Markus Klotzbücher
  0 siblings, 1 reply; 3+ messages in thread
From: Bartlomiej Sieka @ 2008-06-04 12:39 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Problem creating new uImage
  2008-06-04 12:39 ` Bartlomiej Sieka
@ 2008-06-04 13:53   ` Markus Klotzbücher
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Klotzbücher @ 2008-06-04 13:53 UTC (permalink / raw)
  To: u-boot

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.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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-04 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 11:43 [U-Boot-Users] Problem creating new uImage Markus Klotzbücher
2008-06-04 12:39 ` Bartlomiej Sieka
2008-06-04 13:53   ` Markus Klotzbücher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox