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
     

18 May, 2017

2 commits

  • This patch updates the mksunxiboot tool to optionally add
    the default device tree name string to the SPL header. This
    information can be used by the firmware upgrade tools to
    protect users from harming themselves by trying to upgrade
    to an incompatible bootloader.

    The primary use case here is a non-removable bootable media
    (such as NAND, eMMC or SPI flash), which already may have
    a properly working, but a little bit outdated bootloader
    installed. For example, the user may download or build a
    new U-Boot image for "Cubieboard", and then attemept to
    install it on a "Cubieboard2" hardware by mistake as a
    replacement for the already existing bootloader. If this
    happens, the flash programming tool can identify this
    problem and warn the user.

    The size of the SPL header is also increased from 64 bytes
    to 96 bytes to provide enough space for the device tree name
    string.
    [Andre: split patch to remove OF_LIST hash feature]

    Signed-off-by: Siarhei Siamashka
    Signed-off-by: Andre Przywara

    Siarhei Siamashka
     
  • mksunxiboot limits the size of the resulting SPL binaries to pretty
    conservative values to cover all SoCs and all boot media (NAND).
    It turns out that we have limit checks in place in the build process,
    so mksunxiboot can be relaxed and allow packaging binaries up to the
    actual 32KB the mask boot ROM actually imposes.
    This allows to have a bigger SPL, which is crucial for AArch64 builds.

    Signed-off-by: Andre Przywara
    Reviewed-by: Simon Glass
    Reviewed-by: Jagan Teki

    Andre Przywara
     

30 Oct, 2016

1 commit


29 Sep, 2015

2 commits

  • This patch follows up on a discussion of ways to improve support
    for the sunxi FEL ("USB boot") mechanism, especially with regard
    to boot scripts, see:
    https://groups.google.com/d/msg/linux-sunxi/wBEGUoLNRro/rHGq6nSYCQAJ

    The idea is to convert the (currently unused) "pad" bytes in the
    SPL header into an area where data can be passed to U-Boot. To
    do this safely, we have to make sure that we're actually using
    our "sunxi" flavor of the SPL, and not the Allwinner boot0.

    The modified mksunxiboot introduces a special signature to the
    SPL header in place of the "pub_head_size" field. This can be
    used to reliably distinguish between compatible versions of sunxi
    SPL and anything else (older variants or Allwinner's boot0).

    Signed-off-by: Bernhard Nortmann
    Acked-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Bernhard Nortmann
     
  • The sunxi platform currently doesn't seem to make any use of the
    asm/arch-sunxi/spl.h file. This patch moves some declarations from
    tools/mksunxiboot.c into it.

    This enables us to reuse those definitions when extending the
    sunxi board code (boards/sunxi/boards.c).

    Signed-off-by: Bernhard Nortmann
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Bernhard Nortmann
     

11 Sep, 2015

1 commit

  • Currently some uninitialized padding bytes are written to the output
    file, as can be confirmed with valgrind:

    $ valgrind tools/mksunxiboot spl/u-boot-spl.bin spl/sunxi-spl.bin

    ==5581== Syscall param write(buf) points to uninitialised byte(s)
    ==5581== at 0x4F0F940: __write_nocancel (in /lib64/libc-2.20.so)
    ==5581== by 0x400839: main (in /tmp/u-boot/tools/mksunxiboot)
    ==5581== Address 0xffeff5d3c is on thread 1's stack
    ==5581== in frame #1, created by main (???)

    This patch fixes the problem by clearing the whole structure instead
    of just a portion of it.

    Signed-off-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     

29 May, 2015

1 commit


17 Feb, 2015

1 commit


07 Jul, 2014

1 commit


25 May, 2014

1 commit