29 Jul, 2019

1 commit

  • Upcoming patches want to add decompression to use cases that are no
    longer directly related to booting. It makes sense to retain a single
    decompression routine, but it should no longer be in bootm.c (which is
    not compiled for all configurations). This patch moves
    bootm_decomp_image() to image.c and renames it to image_decomp() in
    preparation of those upcoming patches.

    Signed-off-by: Julius Werner
    Reviewed-by: Simon Goldschmidt
    [trini: Fix warning around handle_decomp_error being unused]
    Signed-off-by: Tom Rini

    Julius Werner
     

10 May, 2019

1 commit

  • Due to some mistakes in the source code, it was not possible to really
    turn FIT support off. This commit fixes the problem by means of the
    following changes:

    - Enclose "bootm_host_load_image" and "bootm_host_load_images" between
    checks for CONFIG_FIT_SIGNATURE, in common/bootm.c.

    - Enclose the declaration of "bootm_host_load_images" between checks for
    CONFIG_FIT_SIGNATURE, in common/bootm.h.

    - Condition the compilation and linking of fit_common.o fit_image.o
    image-host.o common/image-fit.o to CONFIG_FIT=y, in tools/Makefile.

    Signed-off-by: Carlos Santos
    [fabio: adapt for 2016.07]
    Signed-off-by: Fabio Estevam
    [Ricardo: fix conditional compilation and linking of the files mentioned above
    for 2016.07]
    Signed-off-by: Ricardo Martincoski
    [Jörg: adapt for 2019.01]
    Signed-off-by: Jörg Krause
    [Retrieved from:
    https://git.buildroot.net/buildroot/tree/package/uboot-tools/0003-Make-FIT-support-really-optional.patch]
    Signed-off-by: Fabrice Fontaine

    Fabrice Fontaine
     

13 Feb, 2019

1 commit


31 Dec, 2018

1 commit


03 Jun, 2018

2 commits


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
     

28 May, 2015

1 commit

  • bootm_find_ramdisk_fdt() renamed to bootm_find_images() for readability.

    The function bootm_find_ramdisk_fdt() appears to be a simple wrapper for
    bootm_find_ramdisk(), bootm_find_fdt(), and now bootm_find_loadables().
    I didn't see any other callers entering a bootm_find, so removing
    the wrapper, and condensing these together hopefully makes the code a
    little simpler.

    Signed-off-by: Karl Apsite
    Reviewed-by: Simon Glass

    Karl Apsite
     

15 Jan, 2015

1 commit


26 Oct, 2014

1 commit


30 Aug, 2014

1 commit

  • The default format for arm64 Linux kernels is the "Image" format,
    described in Documentation/arm64/booting.txt. This, along with an
    optional gzip compression on top is all that is generated by default.
    The Image format has a magic number within the header for verification,
    a text_offset where the Image must be run from, an image_size that
    includes the BSS and reserved fields.

    This does not support automatic detection of a gzip compressed image.

    Signed-off-by: Tom Rini

    Tom Rini
     

19 Jun, 2014

2 commits

  • At present this tool only checks the configuration signing. Have it also
    look at each of the images in the configuration and confirm that they
    verify.

    Signed-off-by: Simon Glass
    Acked-by: Heiko Schocher (v1)

    Simon Glass
     
  • This file has code in three different categories:
    - Command processing
    - OS-specific boot code
    - Locating images and setting up to boot

    Only the first category really belongs in a file called cmd_bootm.c.

    Leave the command processing code where it is. Split out the OS-specific
    boot code into bootm_os.c. Split out the other code into bootm.c

    Header files and extern declarations are tidied but otherwise no code
    changes are made, to make it easier to review.

    Signed-off-by: Simon Glass

    Simon Glass