[U-Boot] [PATCH 3/3] tools/mkimage: Print FIT image contents after creation

Wolfgang Denk wd at denx.de
Sat Dec 5 01:14:04 CET 2009


Dear Peter Tyser,

In message <1259102530-32071-3-git-send-email-ptyser at xes-inc.com> you wrote:
> Previously, there was no indication to the user that a FIT image was
> successfully created after executing mkimage.  For example:
> 
>   $ mkimage -f uImage.its uImage.itb
>   DTC: dts->dtb  on file "uImage.its"
> 
> Adding some additional output after creating a FIT image lets the user
> know exactly what is contained in their image, eg:
> 
>   $ mkimage -f uImage.its uImage.itb
>   DTC: dts->dtb  on file "uImage.its"
>   FIT description: Linux kernel 2.6.32-rc7-00201-g7550d6f-dirty
>   Created:         Tue Nov 24 15:43:01 2009
>    Image 0 (kernel at 1)
>     Description:  Linux Kernel 2.6.32-rc7-00201-g7550d6f-dirty
>     Type:         Kernel Image
>     Compression:  gzip compressed
>     Data Size:    2707311 Bytes = 2643.86 kB = 2.58 MB
>     Architecture: PowerPC
>     OS:           Linux
>     Load Address: 0x00000000
>     Entry Point:  0x00000000
>     Hash algo:    crc32
>     Hash value:   efe0798b
>     Hash algo:    sha1
>     Hash value:   ecafba8c95684f2c8fec67e33c41ec88df1534d7
>    Image 1 (fdt at 1)
>     Description:  Flattened Device Tree blob
>     Type:         Flat Device Tree
>     Compression:  uncompressed
>     Data Size:    12288 Bytes = 12.00 kB = 0.01 MB
>     Architecture: PowerPC
>     Hash algo:    crc32
>     Hash value:   a5cab676
>     Hash algo:    sha1
>     Hash value:   168722b13e305283cfd6603dfe8248cc329adea6
>    Default Configuration: 'config at 1'
>    Configuration 0 (config at 1)
>     Description:  Default Linux kernel
>     Kernel:       kernel at 1
>     FDT:          fdt at 1
> 
> This brings the behavior of creating a FIT image in line with creating a
> standard uImage, which also prints out the uImage contents after
> creation.
> 
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
>  tools/mkimage.c |   51 ++++++++++++++++++++++++++-------------------------
>  1 files changed, 26 insertions(+), 25 deletions(-)

Applied, thanks.

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
Some programming languages manage to  absorb  change,  but  withstand
progress.          -- Epigrams in Programming, ACM SIGPLAN Sept. 1982


More information about the U-Boot mailing list