03 Oct, 2018

1 commit


09 May, 2018

2 commits

  • Add support for the SoCFPGA header v1 , which is used on Arria 10.
    Thus far the mkimage-socfpga image only supported header format v0
    used on Cyclone V and Arria V, but is not supported on Arria 10.
    The layout of the v0 and v1 header is similar, yet there are a few
    differences, see the patch body for details.

    Signed-off-by: Marek Vasut
    Cc: Dinh Nguyen
    Cc: Chin Liang See

    Marek Vasut
     
  • The structure is passed around correctly, create local instances
    where necessary and zap the global struct socfpga_image instance.

    Signed-off-by: Marek Vasut
    Cc: Dinh Nguyen
    Cc: Chin Liang See

    Marek Vasut
     

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
     

30 Jan, 2015

2 commits


27 Oct, 2014

1 commit

  • socfpgaimage utilizes htole32 and friends, unfortunately these functions are
    not available on darwin. Fix it by using the cpu_to_le32 and friends defined
    in compiler.h as other parts in mkimage do.

    This patch fixes the following error:
    ---88---

    Signed-off-by: Andreas Bießmann
    Acked-by: Pavel Machek

    Andreas Bießmann
     

06 Oct, 2014

1 commit

  • Like many platforms, the Altera socfpga platform requires that the
    preloader be "signed" in a certain way or the built-in boot ROM will
    not boot the code.

    This change automatically creates an appropriately signed preloader
    from an SPL image.

    The signed image includes a CRC which must, of course, be generated
    with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
    the boot ROM will reject the image.

    Unfortunately the CRC used in this boot ROM is not the same as the
    Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
    CRC but is more correctly described as a checksum.

    Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.

    Signed-off-by: Charles Manning
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    V2: - Zap unused constant
    - Explicitly print an error message in case of error
    - Rework the hdr_checksum() function to take the *header directly
    instead of a plan buffer pointer

    Charles Manning