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
     

07 Apr, 2018

1 commit

  • The mxsimage utility fails to compile against LibreSSL version < 2.7.0
    because LibreSSL says it is OpenSSL 2.0, but it does not support the
    complete OpenSSL 1.1 interface.

    LibreSSL defines OPENSSL_VERSION_NUMBER with 0x20000000L and therefor
    claims to have an API compatible with OpenSSL 2.0, but it implements
    EVP_MD_CTX_new(), EVP_MD_CTX_free() and EVP_CIPHER_CTX_reset() only
    starting with version 2.7.0, which is not yet released. OpenSSL
    implements this function since version 1.1.0.

    This commit will activate the compatibility code meant for
    OpenSSL < 1.1.0 also for LibreSSL version < 2.7.0.

    Signed-off-by: Hauke Mehrtens
    Reviewed-by: Jonathan Gray

    Hauke Mehrtens
     

20 Dec, 2016

1 commit

  • The EVP_MD_CTX and EVP_CIPHER_CTX are made opaque since 1.1.x , so instead
    of embedding them directly into struct sb_image_ctx and initializing them
    using EVP_*_CTX_init(), we use pointers and allocate the crypto contexts
    using EVP_*_CTX_new().

    Signed-off-by: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     

30 Jan, 2015

1 commit


20 Nov, 2014

2 commits


06 Jun, 2014

1 commit


10 Jan, 2014

1 commit


18 Dec, 2013

1 commit

  • According to NOTE in strtoul(3), the errno must be zeroed before strtoul()
    is called. Zero the errno. The NOTE reads as such:

    Since strtoul() can legitimately return 0 or ULONG_MAX (ULLONG_MAX for
    strtoull()) on both success and failure, the calling program should set
    errno to 0 before the call, and then determine if an error occurred
    by checking whether errno has a nonzero value after the call.

    This issue was detected on Fedora 19 with glibc 2.17 .

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic
    Cc: Tom Rini

    Marek Vasut
     

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

1 commit

  • 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