20 Aug, 2019

1 commit

  • Decrypt and verify the secure credential in keymaster TA, unlock
    operation can only be allowed after secure credential verify pass.

    Since the mppubk can only be generated on hab closed imx8q, so secure
    unlock feature can only supported when hab is closed.

    Test: secure unlock credential verify on hab closed imx8mm_evk.

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

    Ji Luo
     

24 May, 2019

1 commit

  • Porting the android AVB lib from imx u-boot v2018.03. Since 2019 u-boot
    has added latest AVB library, try to reuse it.

    Signed-off-by: Ye Li
    (cherry picked from commit 2105662ada738a271e12a81d775134a5821dc38f)
    (cherry picked from commit f7291d86c4183ce2e299ad271aa5618c71507ffc)

    Ye Li
     

18 Jan, 2019

1 commit


21 Nov, 2018

1 commit


15 Nov, 2018

1 commit


09 Oct, 2018

2 commits


27 Jul, 2018

1 commit

  • fdt_fixup_mtdparts() calls mtdparts_init() and device_find(),
    which are defined in cmd/mtdparts.c

    The combination of FDT_FIXUP_PARTITIONS=y and CMD_MTDPARTS=n
    emits the following link error:

    common/fdt_support.c:903: undefined reference to `mtdparts_init'
    common/fdt_support.c:914: undefined reference to `device_find'

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

19 Jun, 2018

1 commit


13 Jun, 2018

1 commit

  • Often during debugging session it's very interesting to see
    what data we were dealing with. For example what we write or read
    to/from memory or peripherals.

    This change introduces functions that allow to dump binary
    data with one simple function invocation like:
    ------------------->8----------------
    print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len);
    ------------------->8----------------

    which gives us the following:
    ------------------->8----------------
    00000000: f2 b7 c9 88 62 61 75 64 72 61 74 65 3d 31 31 35 ....baudrate=115
    00000010: 32 30 30 00 62 6f 6f 74 61 72 67 73 3d 63 6f 6e 200.bootargs=con
    00000020: 73 6f 6c 65 3d 74 74 79 53 33 2c 31 31 35 32 30 sole=ttyS3,11520
    00000030: 30 6e 38 00 62 6f 6f 74 64 65 6c 61 79 3d 33 00 0n8.bootdelay=3.
    00000040: 62 6f 6f 74 66 69 6c 65 3d 75 49 6d 61 67 65 00 bootfile=uImage.
    00000050: 66 64 74 63 6f 6e 74 72 6f 6c 61 64 64 72 3d 39 fdtcontroladdr=9
    00000060: 66 66 62 31 62 61 30 00 6c 6f 61 64 61 64 64 72 ffb1ba0.loadaddr
    00000070: 3d 30 78 38 32 30 30 30 30 30 30 00 73 74 64 65 =0x82000000.stde
    00000080: 72 72 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 rr=serial0@e0022
    00000090: 30 30 30 00 73 74 64 69 6e 3d 73 65 72 69 61 6c 000.stdin=serial
    000000a0: 30 40 65 30 30 32 32 30 30 30 00 73 74 64 6f 75 0@e0022000.stdou
    000000b0: 74 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 30 t=serial0@e00220
    000000c0: 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00..............
    ...
    ------------------->8----------------

    Source of hexdump.c was copied from Linux kernel v4.7-rc2.

    Signed-off-by: Alexey Brodkin
    Cc: Anatolij Gustschin
    Cc: Mario Six
    Cc: Simon Glass
    Cc: Tom Rini
    Cc: Stefan Roese

    Alexey Brodkin
     

30 May, 2018

1 commit

  • Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc
    swrite" command is separated from the fastboot code.

    Move image-sparse from common to lib so it's clear it's library code.

    Rename CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE to CONFIG_IMAGE_SPARSE_FILLBUF_SIZE
    and migrate it to Kconfig.

    Signed-off-by: Alex Kiernan
    Acked-by: Jassi Brar
    Reviewed-by: Simon Glass

    Alex Kiernan
     

08 May, 2018

2 commits


29 Apr, 2018

1 commit

  • When SPL serial is disabled, callers who need sprintf or strtoul fail
    because their inclusion is guarded by CONFIG_SPL_SERIAL_SUPPORT/
    CONFIG_TPL_SERIAL_SUPPORT.

    Split printf, sprintf and strto into their own entries and then select
    all of them if SERIAL_SUPPORT is enabled to match the current behaviour.

    Include panic.o unconditionally as it can be called from anywhere which
    uses BUG_ON().

    Signed-off-by: Alex Kiernan

    Alex Kiernan
     

05 Apr, 2018

1 commit


04 Apr, 2018

1 commit

  • In January some commits were introduced to mitigate the U-Boot image
    size issues we encountered on sunxi builds.
    Now with the MMC environment removed we can bring them back, as we
    practically don't have a size limit anymore.

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

    Andre Przywara
     

20 Mar, 2018

1 commit

  • This patch adds code to lib to enable sharing of useful OPTEE code between
    board-ports and architectures. The code on lib/optee/optee.c comes from the
    TI omap2 port. Eventually the OMAP2 code will be patched to include the
    shared code. The intention here is to add more useful OPTEE specific code
    as more functionality gets added.

    Signed-off-by: Bryan O'Donoghue
    Cc: Harinarayan Bhatta
    Cc: Andrew F. Davis
    Cc: Tom Rini
    Cc: Kever Yang
    Cc: Philipp Tomsich
    Cc: Peng Fan
    Tested-by: Peng Fan

    Bryan O'Donoghue
     

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