09 Mar, 2019

1 commit

  • The syntax of dumpimage was simplified in commit 12b831879a76 ("tools:
    dumpimage: Simplify arguments"), but the test
    (test/image/test-imagetools.sh) was not updated and is now failing.

    Update the test to use the new syntax.

    Reported-by: Vagrant Cascadian
    Signed-off-by: Martyn Welch
    Tested-by: Vagrant Cascadian

    Martyn Welch
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

14 Aug, 2017

4 commits


21 Mar, 2017

1 commit


26 Feb, 2016

1 commit


28 May, 2015

1 commit


30 Jan, 2015

2 commits

  • 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 = ;
    entry = ;
    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
     
  • Some image types, like "KeyStone GP", do not have magic numbers to
    distinguish them from other image types. Thus, the automatic image
    type discovery does not work correctly.

    This patch also fix some integer type mismatches.

    Signed-off-by: Guilherme Maciel Ferreira

    Guilherme Maciel Ferreira
     

15 Jan, 2015

2 commits


29 Aug, 2014

1 commit

  • The host filesystem name has changed, so update the tests. The tests now
    run again correctly:

    $ make O=b/sandbox sandbox_defconfig all
    ...
    $ test/image/test-fit.py -u b/sandbox/u-boot
    FIT Tests

    =========
    Kernel load
    Kernel + FDT load
    Kernel + FDT + Ramdisk load

    Tests passed
    Caveat: this is only a sanity check - test coverage is poor

    Signed-off-by: Simon Glass

    Simon Glass
     

13 Dec, 2013

1 commit


24 Jul, 2013

1 commit


26 Jun, 2013

1 commit


05 Jun, 2013

1 commit

  • The image code is fairly complex with various different options. It would
    be useful to have comprehensive tests for this.

    As a start, create a script which tries out loading a kernel/ramdisk/fdt
    from a FIT and checks that the images appear in the right place in memory.

    This uses sandbox which now supports bootm and related features.

    Signed-off-by: Simon Glass

    Simon Glass