22 Feb, 2019

1 commit

  • Grant user the permission to change the bootargs can be very
    dangerous, so add config 'CONFIG_APPEND_BOOTARGS' to guard the
    bootargs appending feature.

    Test: bootargs can't be appended if "CONFIG_APPEND_BOOTARGS" is
    not set.

    Change-Id: I6d6879415ca251c806b56490290e5032aef24277
    Signed-off-by: Ji Luo

    Ji Luo
     

12 Nov, 2018

1 commit

  • Add fastboot commands "fastboot oem at-get-vboot-unlock-challenge"
    and "fastboot oem at-unlock-vboot" to support the authenticated
    unlock feature for Android Things devices. Use software random
    numbers generator to generate the 16 bytes random challenge, it
    should be replaced with hardware encrypted random generator when
    the TEE part is ready.

    Test: Generate unlock challenge by:
    ./avbtool make_atx_unlock_credential
    --output=atx_unlock_credential.bin
    --intermediate_key_certificate=atx_pik_certificate.bin
    --unlock_key_certificate=atx_puk_certificate.bin
    --challenge=my_generated_challenge.bin
    --unlock_key=testkey_atx_puk.pem
    validated the unlock credential successfully on imx7d_pico
    and AIY.

    Change-Id: I4b8cee87c9e96924169479b65020a081136681f6
    Signed-off-by: Ji Luo

    Ji Luo
     

22 Aug, 2018

1 commit


20 Aug, 2018

2 commits

  • Move the A/B slot check to SPL, the A/B slot switch
    workflow is just like what we have in libavb_ab.

    Test: A/B select works fine on imx8m.

    Change-Id: Ie3d827a9be0298b491bf2bc8d48833597fd70e90
    Signed-off-by: Luo Ji

    Luo Ji
     
  • Android Things will load dtb from a single partition like
    "oem_bootloader" and we are going to sync normal Android
    with Android Things. But just keep loading dtb from bootimage
    before everything is ready.

    Change-Id: I205528b1485d3e8e9961f19812f380a2b11b991b
    Signed-off-by: Luo Ji

    Luo Ji
     

13 Jun, 2018

1 commit


15 Feb, 2018

1 commit


09 Feb, 2018

2 commits

  • config_fallback.h has some logic that checks a variety of options
    and selects LIB_UUID if it hasn't already been selected. This
    will all LIB_UUID in Kconfig and select this option for the list
    of options to allow us to remove the logic from fallbacks

    Signed-off-by: Adam Ford

    Adam Ford
     
  • config_fallbacks.h had some logic to automatically select
    LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't
    already selected. By migrating LIB_HW_RAND to Kconfig, we can
    remove this check from config_fallbacks.h and put it into Kconfig

    Signed-off-by: Adam Ford
    Reviewed-by: Lukasz Majewski
    [trini: Turn into a choice, add NET_RANDOM_ETHADDR]
    Signed-off-by: Tom Rini

    Adam Ford
     

26 Jan, 2018

1 commit

  • The sunXi arm64 build has overflown, leading to the main U-boot binary
    overwriting the environment when flashing the new image, or even worse,
    overwriting itself when we're calling saveenv.

    Disable this option that is not critical until we can adress the issue
    properly.

    Reviewed-by: Andre Przywara
    Signed-off-by: Maxime Ripard
    Reviewed-by: Jagan Teki

    Maxime Ripard
     

27 Dec, 2017

1 commit


20 Nov, 2017

1 commit


06 Oct, 2017

1 commit


03 Oct, 2017

1 commit


11 Sep, 2017

1 commit


02 Sep, 2017

1 commit


20 Aug, 2017

1 commit


13 Aug, 2017

1 commit

  • With the changes to split SPL/TPL for the RK3368, I apparently missed
    some needed adjustments to the RK3188 Kconfig and rock_defconfig.

    This fixes build-issues for the rock board after applying the RK3368
    enablement (and SPL/TPL) set that resulted from TPL_SERIAL_SUPPORT,
    TPL_ROCKCHIP_BACK_TO_BROM and TPL_TINY_MEMSET being separate symbols
    now.

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Simon Glass

    Philipp Tomsich
     

25 Jul, 2017

1 commit


23 May, 2017

1 commit


30 Apr, 2017

1 commit


07 Apr, 2017

2 commits


05 Apr, 2017

1 commit

  • Most of the time the optimised memset() is what we want. For extreme
    situations such as TPL it may be too large. For example on the 'rock'
    board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and
    the rodata bug, this patch is enough to reduce the TPL image below the
    limit.

    Signed-off-by: Simon Glass
    Reviewed-by: Heiko Stuebner

    Simon Glass
     

17 Mar, 2017

1 commit

  • So far CONFIG_MD5SUM would need to be set by a board's include file.
    Since the command is really generic, move it over to Kconfig to allow
    it to be defined by either a board's defconfig, menuconfig or some
    config snippet merged via mergeconfig.sh.

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

    Andre Przywara
     

19 Oct, 2016

2 commits


15 Oct, 2016

1 commit


20 Aug, 2016

1 commit

  • The device tree overlays are a good way to deal with user-modifyable
    boards or boards with some kind of an expansion mechanism where we can
    easily plug new board in (like the BBB, the Raspberry Pi or the CHIP).

    Add a new function to merge overlays with a base device tree.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

03 Jun, 2016

1 commit

  • This patch decouples U-Boot binary from the toolchain on systems where
    private libgcc is available. Instead of pulling in functions provided
    by the libgcc from the toolchain, U-Boot will use it's own set of libgcc
    functions. These functions are usually imported from Linux kernel, which
    also uses it's own libgcc functions instead of the ones provided by the
    toolchain.

    This patch solves a rather common problem. The toolchain can usually
    generate code for many variants of target architecture and often even
    different endianness. The libgcc on the other hand is usually compiled
    for one particular configuration and the functions provided by it may
    or may not be suited for use in U-Boot. This can manifest in two ways,
    either the U-Boot fails to compile altogether and linker will complain
    or, in the much worse case, the resulting U-Boot will build, but will
    misbehave in very subtle and hard to debug ways.

    Signed-off-by: Marek Vasut
    Cc: Albert Aribaud
    Cc: Masahiro Yamada
    Cc: Simon Glass
    Cc: Tom Rini
    Reviewed-by: Tom Rini

    Marek Vasut
     

31 Mar, 2016

1 commit


16 Mar, 2016

1 commit

  • Now that we have all the bits and pieces ready for EFI payload loading
    support, hook them up in Makefiles and KConfigs so that we can build.

    Signed-off-by: Alexander Graf
    Reviewed-by: Simon Glass
    Tested-by: Simon Glass
    [trini: Enable only when we of OF_LIBFDT, disable on kwb and colibri_pxa270]
    Signed-off-by: Tom Rini

    Alexander Graf
     

15 Mar, 2016

2 commits

  • Add an option to enable libfdt in SPL. This can be useful when decoding
    FIT files in SPL.

    We need to make sure this option is not enabled in SPL by this change.
    Also this option needs to be enabled in host builds. Si add a new
    IMAGE_USE_LIBFDT #define which can be used in files that are built on the
    host but must also build for U-Boot and SPL.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Move this option to Kconfig and tidy up existing boards.

    Signed-off-by: Simon Glass

    Simon Glass
     

06 Feb, 2016

1 commit

  • Correct spelling of "U-Boot" shall be used in all written text
    (documentation, comments in source files etc.).

    Signed-off-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Reviewed-by: Simon Glass
    Reviewed-by: Minkyu Kang

    Bin Meng
     

19 Jan, 2016

1 commit

  • Enabling this function always removes some class of string saftey issues.
    The size change here in general is about 400 bytes and this seems a reasonable
    trade-off.

    Cc: Peng Fan
    Cc: Peter Robinson
    Cc: Fabio Estevam
    Cc: Adrian Alonso
    Cc: Stefano Babic
    Cc: Hans de Goede
    Signed-off-by: Tom Rini

    Tom Rini
     

23 Nov, 2015

1 commit

  • This patch adds a small printf() version that supports all basic formats.
    Its intented to be used in U-Boot SPL versions on platforms with very
    limited internal RAM sizes.

    To enable it, just define CONFIG_USE_TINY_PRINTF in your defconfig. This
    will result in the SPL using this tiny function and the main U-Boot
    still using the full-blown printf() function.

    This code was copied from:
    http://www.sparetimelabs.com/printfrevisited
    With mostly only coding style related changes so that its checkpatch
    clean.

    The size reduction is about 2.5KiB. Here a comparison for the db-mv784mp-gp
    (Marvell AXP) SPL:

    Without this patch:
    58963 18536 1928 79427 13643 ./spl/u-boot-spl

    With this patch:
    56542 18536 1956 77034 12cea ./spl/u-boot-spl

    Note:
    To make it possible to compile tiny-printf.c instead of vsprintf.c when
    CONFIG_USE_TINY_PRINTF is defined, the functions printf() and vprintf() are
    moved from common/console.c into vsprintf.c in this patch.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Cc: Hans de Goede
    Cc: Tom Rini
    Cc: Albert Aribaud

    Stefan Roese
     

23 Oct, 2015

1 commit


12 Oct, 2015

1 commit

  • This patch adds support for LZ4-compressed FIT image contents. This
    algorithm has a slightly worse compression ration than LZO while being
    nearly twice as fast to decompress. When loading images from a fast
    storage medium this usually results in a boot time win.

    Sandbox-tested only since I don't have a U-Boot development system set
    up right now. The code was imported unchanged from coreboot where it's
    proven to work, though. I'm mostly interested in getting this recognized
    by mkImage for use in a downstream project.

    Signed-off-by: Julius Werner
    Acked-by: Simon Glass

    Julius Werner
     

31 Aug, 2015

1 commit