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
     

23 Jul, 2017

1 commit

  • FreeBSD recently switch to it's BSDL dtc. While it support most of the
    features of the GPL one it still lacks the incbin directive.
    Add the possibility to specify which dtc we want to use for compiling dts
    and generating fit image.

    Signed-off-by: Emmanuel Vadot
    Acked-by: Simon Glass

    Emmanuel Vadot
     

19 Jun, 2014

1 commit

  • commit 18b06652cd "tools: include u-boot version of sha256.h"
    unconditionally forced the sha256.h from u-boot to be used
    for tools instead of the host version. This is fragile though
    as it will also include the host version. Therefore move it
    to include/u-boot to join u-boot/md5.h etc which were renamed
    for the same reason.

    cc: Simon Glass
    Signed-off-by: Jeroen Hofstee

    Jeroen Hofstee
     

13 Dec, 2013

1 commit

  • In order to avoid duplicating code and keep only one point of modification,
    the functions, structs and defines useful for "dumpimage" were moved from
    "mkimage" to a common module called "imagetool".

    This modification also weakens the coupling between image types (FIT, IMX, MXS,
    and so on) and image tools (mkimage and dumpimage). Any tool may initialize the
    "imagetool" through register_image_tool() function, while the image types
    register themselves within an image tool using the register_image_type()
    function:

    +---------------+
    +------| fit_image |
    +--------------+ +-----------+ | +---------------+
    | mkimage |--------> | | | |
    Signed-off-by: Simon Glass

    Guilherme Maciel Ferreira
     

31 Aug, 2013

2 commits

  • Add mkimage support for generating and verifying MXS bootstream.
    The implementation here is mostly a glue code between MXSSB v0.4
    and mkimage, but the long-term goal is to rectify this and merge
    MXSSB with mkimage more tightly. Once this code is properly in
    U-Boot, MXSSB shall be deprecated in favor of mkimage-mxsimage
    support.

    Note that the mxsimage generator needs libcrypto from OpenSSL, I
    therefore enabled the libcrypto/libssl unconditionally.

    MXSSB: http://git.denx.de/?p=mxssb.git;a=summary

    The code is based on research presented at:
    http://www.rockbox.org/wiki/SbFileFormat

    Signed-off-by: Marek Vasut
    Cc: Tom Rini
    Cc: Fabio Estevam
    Cc: Stefano Babic
    Cc: Otavio Salvador

    Marek Vasut
     
  • Use previously unused return value of function vrec_header
    to return a padding size to generic mkimage. This padding
    size is used in copy_files to pad with zeros after copying
    the data image.

    Signed-off-by: Stefano Babic

    Stefano Babic
     

24 Jul, 2013

1 commit


26 Jun, 2013

4 commits

  • Normally, multiple public keys can be provided and U-Boot is not
    required to use all of them for verification. This is because some
    images may not be signed, or may be optionally signed.

    But we still need a mechanism to determine when a key must be used.
    This feature cannot be implemented in the FIT itself, since anyone
    could change it to mark a key as optional. The requirement for
    key verification must go in with the public keys, in a place that
    is protected from modification.

    Add a -r option which tells mkimage to mark all keys that it uses
    for signing as 'required'.

    If some keys are optional and some are required, run mkimage several
    times (perhaps with different key directories if some keys are very
    secret) using the -F flag to update an existing FIT.

    Signed-off-by: Simon Glass
    Reviewed-by: Marek Vasut

    Simon Glass
     
  • When signing an image, it is useful to add some details about which tool
    or person is authorising the signing. Add a comment field which can take
    care of miscellaneous requirements.

    Signed-off-by: Simon Glass
    Reviewed-by: Marek Vasut

    Simon Glass
     
  • FIT image verification requires public keys. Add a convenient option to
    mkimage to write the public keys to an FDT blob when it uses then for
    signing an image. This allows us to use:

    mkimage -f test.its -K dest.dtb -k keys test.fit

    and have the signatures written to test.fit and the corresponding public
    keys written to dest.dtb. Then dest.dtb can be used as the control FDT
    for U-Boot (CONFIG_OF_CONTROL), thus providing U-Boot with access to the
    public keys it needs.

    Signed-off-by: Simon Glass
    Reviewed-by: Marek Vasut

    Simon Glass
     
  • Keys required for signing images will be in a specific directory. Add a
    -k option to specify that directory.

    Also update the mkimage man page with this information and a clearer list
    of available commands.

    Signed-off-by: Simon Glass
    Reviewed-by: Marek Vasut (v1)

    Simon Glass
     

05 Jun, 2013

1 commit

  • These are not actually used in mkimage itself, but the image code (which
    is common with mkimage) does use them. To avoid #ifdefs in the image code
    just for mkimage, define dummy version of these here. The compiler will
    eliminate the dead code anyway.

    A better way to handle this might be to split out more things from common.h
    so that mkimage can include them. At present any file that mkimage uses
    has to be very careful what headers it includes.

    Signed-off-by: Simon Glass

    Simon Glass
     

15 May, 2013

1 commit


23 Aug, 2012

1 commit

  • Provides a tool to build boot Image for PBL(Pre boot loader) which is
    used on Freescale CoreNet SoCs, PBL can be used to load some instructions
    and/or data for pre-initialization. The default output image is u-boot.pbl,
    for more details please refer to doc/README.pblimage.

    Signed-off-by: Shaohui Xie
    Signed-off-by: Andy Fleming

    Shaohui Xie
     

24 Oct, 2011

1 commit

  • Some Davinci processors supports the Application
    Image Script (AIS) boot process. The patch adds the generation
    of the AIS image inside the mkimage tool to make possible
    to generate a bootable U-boot without external tools
    (TI Davinci AIS Generator).

    Signed-off-by: Stefano Babic
    CC: Wolfgang Denk

    Stefano Babic
     

06 Oct, 2011

1 commit

  • Some images have not a header of fix lenght. The patch will be
    used for the generation of AIS images, because this header has
    a variable lenght. The patch adds also the parameter "-s" (skip)
    to not copy automatically the passed image file.

    Signed-off-by: Stefano Babic

    Stefano Babic
     

03 Aug, 2011

1 commit


28 Jul, 2011

1 commit


26 Jan, 2010

1 commit


11 Sep, 2009

3 commits

  • This patch adds support for "kwbimage" (Kirkwood Boot Image)
    image types to the mkimage code.

    For details refer to docs/README.kwbimage

    This patch is tested with Sheevaplug board

    Signed-off-by: Prafulla Wadaskar
    Acked-by: Ron Lee

    Signed-off-by: Prafulla Wadaskar

    Prafulla Wadaskar
     
  • This fixes some compiler warnings:
    tools/default_image.c:141: warning: initialization from incompatible pointer type
    tools/fit_image.c:202: warning: initialization from incompatible pointer type
    and changes to code to use "const" attributes in a few places where
    it's appropriate.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • This is a first step towards reorganizing the mkimage code to make it
    easier to add support for additional images types. Current mkimage
    code is specific to generating uImage and FIT image files, but the
    same framework can be used to generate other image types like
    Kirkwood boot images (kwbimage-TBD). For this, the mkimage code gets
    reworked:

    Here is the brief plan for the same:-
    a) Split mkimage code into core and image specific support
    b) Implement callback functions for image specific code
    c) Move image type specific code to respective C files
    Currently there are two types of file generation/list
    supported (i.e uImage, FIT), the code is abstracted from
    mkimage.c/.h and put in default_image.c and fit_image.c;
    all code in these file is static except init function call
    d) mkimage_register API is added to add new image type support
    All above is addressed in this patch
    e) Add kwbimage type support to this new framework (TBD)
    This will be implemented in a following commit.

    Signed-off-by: Prafulla Wadaskar
    Edit commit message, fix coding style and typos.
    Signed-off-by: Wolfgang Denk

    Prafulla Wadaskar
     

05 Sep, 2009

1 commit


20 Jul, 2009

1 commit

  • Shove a lot of the HOSTCC and related #ifdef checking crap into the new
    compiler.h header so that we can keep all other headers nice and clean.

    Also introduce custom uswap functions so we don't have to rely on the non
    standard implementations that a host may (or may not in the case of OS X)
    provide. This allows mkimage to finally build cleanly on an OS X system.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

04 Apr, 2009

1 commit

  • Add support for compiling the host tools in the tools directory using
    the MinGW toolchain. This produces executables which can be used on
    standard Windows computers without requiring cygwin.

    One must specify the MinGW compiler and strip utilities as if they
    were the host toolchain in order to build win32 executables, eg:

    make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools

    Signed-off-by: Peter Tyser

    Peter Tyser
     

11 Mar, 2008

2 commits

  • Support for the new uImage format (FIT) is added to mkimage tool.
    Commandline syntax is appropriately extended:

    mkimage [-D dtc_options] -f fit-image.its fit-image

    mkimage (together with dtc) takes fit-image.its and referenced therein
    binaries (like vmlinux.bin.gz) as inputs, and produces fit-image file -- the
    final image that can be transferred to the target (e.g., via tftp) and then
    booted using the bootm command in U-Boot.

    Signed-off-by: Bartlomiej Sieka

    Bartlomiej Sieka
     
  • Add FDT-based functions for handling new format component images,
    configurations, node operations, property get/set, etc.

    fit_ - routines handling global new format uImage operations
    like get/set top level property, process all nodes, etc.
    fit_image_ - routines handling component images subnodes
    fit_conf_ - routines handling configurations node

    Signed-off-by: Bartlomiej Sieka
    Signed-off-by: Marian Balakowicz

    Marian Balakowicz
     

29 Feb, 2008

2 commits


07 Feb, 2008

1 commit