Files
u-boot-tk1-som/include
Guilherme Maciel Ferreira 39931f966a dumpimage: fit: extract FIT images
The dumpimage is able to extract components contained in a FIT image:

  $ ./dumpimage -T flat_dt -i CONTAINER.ITB -p INDEX FILE

The CONTAINER.ITB is a regular FIT container file. The INDEX is the poisition
of the sub-image to be retrieved, and FILE is the file (path+name) to save the
extracted sub-image.

For example, given the following kernel.its to build a kernel.itb:

  /dts-v1/;
  / {
      ...
      images {
        kernel@1 {
          description = "Kernel 2.6.32-34";
          data = /incbin/("/boot/vmlinuz-2.6.32-34-generic");
          type = "kernel";
          arch = "ppc";
          os = "linux";
          compression = "gzip";
          load = <00000000>;
          entry = <00000000>;
          hash@1 {
            algo = "md5";
          };
        };
        ...
      };
      ...
    };

The dumpimage can extract the 'kernel@1' node through the following command:

  $ ./dumpimage -T flat_dt -i kernel.itb -p 0 kernel
  Extracted:
   Image 0 (kernel@1)
    Description:  Kernel 2.6.32-34
    Created:      Wed Oct 22 15:50:26 2014
    Type:         Kernel Image
    Compression:  gzip compressed
    Data Size:    4040128 Bytes = 3945.44 kB = 3.85 MB
    Architecture: PowerPC
    OS:           Linux
    Load Address: 0x00000000
    Entry Point:  0x00000000
    Hash algo:    md5
    Hash value:   22352ad39bdc03e2e50f9cc28c1c3652

Which results in the file 'kernel' being exactly the same as '/boot/vmlinuz-2.6.32-34-generic'.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2015-01-29 13:38:41 -05:00
..
2014-12-11 13:18:43 -07:00
2014-07-30 08:48:03 -04:00
2015-01-05 15:13:46 -05:00
2014-07-18 19:42:16 +01:00
2015-01-22 12:34:56 +01:00
2015-01-14 11:35:43 -05:00
2014-02-04 16:32:20 +01:00
2014-02-21 08:42:47 -05:00
2014-11-21 08:13:17 +01:00
2014-05-27 10:21:32 -04:00
2014-06-21 10:06:58 -06:00
2014-10-06 17:34:40 +02:00
2014-10-25 15:27:36 -04:00
2014-11-19 08:48:41 +01:00
2014-12-05 08:06:15 -08:00
2015-01-21 10:25:02 +01:00
2014-11-19 08:48:42 +01:00
2014-06-19 11:18:55 -04:00
2014-12-11 13:18:43 -07:00
2014-12-11 13:18:42 -07:00
2013-09-24 09:10:33 -04:00
2014-10-25 15:27:37 -04:00
2015-01-29 13:38:41 -05:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-10-22 16:56:41 -06:00
2015-01-29 13:38:40 -05:00
2013-09-20 10:30:54 -04:00
2014-05-30 14:03:24 -04:00
2013-11-09 17:21:01 +01:00
2015-01-06 10:10:04 +02:00
2015-01-23 17:24:15 -07:00
2015-01-23 17:24:54 -07:00
2015-01-05 12:08:55 -05:00
2015-01-16 09:32:11 -08:00
2014-11-24 12:00:00 +01:00
2014-10-22 10:36:50 -06:00
2014-12-13 15:08:04 -07:00
2013-12-04 08:11:28 -05:00
2014-12-31 19:10:13 +01:00
2015-01-18 12:31:36 +01:00
2015-01-21 10:25:53 +01:00