public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Cant Create FIT uImage
@ 2009-02-12 13:35 hendrik
  2009-02-16 21:07 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: hendrik @ 2009-02-12 13:35 UTC (permalink / raw)
  To: u-boot

Hi all

I would like to boot using the new style FDT kernel booting. I have been 
using the guidelines in "u-boot-2009/doc/uImage.FIT/how to" and I have 
the latests dtc (v1.2) .  But I am unable to compile the FIT image. I 
get a syntax error for line 1:

    #u-boot/tools/mkimage -f  /work/kernel_fdt.its   /work/kernel_fdt.itb
      FIT format handling
      Trying to execute "dtc -I dts -O dtb -p 500 /work/kernel_fdt.its >
    /work/kernel_fdt.itb.tmp"
      DTC: dts->dtb  on file "/work/kernel_fdt.its"
      Error: /work/kernel_fdt.its 1:0 syntax error
      FATAL ERROR: Unable to parse input tree
      usr/src/u-boot/tools/mkimage: Can't read /work/kernel_fdt.itb.tmp:
    Invalid argument
    #

Can anyone pleas help me to get the FIT image to compile?
My kernel_fdt.its looks as follows: ( taken tron the example given in 
u-boot-2009/doc/uImage.FIT/kernel_fdt.its )

    / {
        #address-cells = <1>;
        description = "Simple image with single Linux kernel and FDT blob";

        images {
            kernel at 1 {
                description = "Linux kernel";
                data = /incbin/("/work/build/target/linux/vmlinux.bin.gz");
                type = "kernel";
                arch = "ppc";
                os = "linux";
                compression = "gzip";
                load = <00000000>;
                entry = <00000000>;
                hash at 1 {
                    algo = "crc32";
                };
                hash at 2 {
                    algo = "sha1";
                };
            };
            fdt at 1 {
                description = "Flattened Device Tree blob";
                data = /incbin/("/work/build/target/boot/equus.dtb");
                type = "flat_dt";
                arch = "ppc";
                compression = "none";
                hash at 1 {
                    algo = "crc32";
                };
                hash at 2 {
                    algo = "sha1";
                };
            };
        };

        configurations {
            default = "conf at 1";
            conf at 1 {
                description = "Boot Linux kernel with FDT blob";
                kernel = "kernel at 1";
                fdt = "fdt at 1";
            };
        };
    };

Thanks Hendik

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

* [U-Boot] Cant Create FIT uImage
  2009-02-12 13:35 [U-Boot] Cant Create FIT uImage hendrik
@ 2009-02-16 21:07 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-02-16 21:07 UTC (permalink / raw)
  To: u-boot

Dear hendrik,

In message <499425B0.2050200@gmail.com> you wrote:
> 
> I would like to boot using the new style FDT kernel booting. I have been 
> using the guidelines in "u-boot-2009/doc/uImage.FIT/how to" and I have 
> the latests dtc (v1.2) .  But I am unable to compile the FIT image. I 
> get a syntax error for line 1:
> 
>     #u-boot/tools/mkimage -f  /work/kernel_fdt.its   /work/kernel_fdt.itb
>       FIT format handling
>       Trying to execute "dtc -I dts -O dtb -p 500 /work/kernel_fdt.its >
>     /work/kernel_fdt.itb.tmp"
>       DTC: dts->dtb  on file "/work/kernel_fdt.its"
>       Error: /work/kernel_fdt.its 1:0 syntax error
>       FATAL ERROR: Unable to parse input tree
>       usr/src/u-boot/tools/mkimage: Can't read /work/kernel_fdt.itb.tmp:
>     Invalid argument
>     #
> 
> Can anyone pleas help me to get the FIT image to compile?

You need a dtc version that supports the binary include feature.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You could end up being oddly sad and full of a strange, diffuse  com-
passion  which would lead you to believe that it might be a good idea
to wipe out the whole human race and start again with amoebas.
                                 - Terry Pratchett, _Guards! Guards!_

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

end of thread, other threads:[~2009-02-16 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 13:35 [U-Boot] Cant Create FIT uImage hendrik
2009-02-16 21:07 ` Wolfgang Denk

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