12 Nov, 2018

1 commit

  • Enable HAB for imx8m Android Things platform, this will enable
    HAB verify for bootloader.img(atf+tee+u-boot) at spl stage.
    Disable the HAB verify for bootimg because we will use AVB to
    verify it.

    Test: Build and boot ok on AIY.

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

    Ji Luo
     

27 Apr, 2018

1 commit


14 Feb, 2018

1 commit


08 Feb, 2018

1 commit

  • Follow bootz's pattern by moving the booti_setup to arch/arm/lib.
    This allows to use booti_setup in other paths, e.g booting
    an Android image containing Image format.

    Note that kernel relocation is move out of booti_setup and it is the
    caller's responsibility to do it and allows them do it differently. say,
    cmd/booti.c just do a manually, while in the bootm path, we can use
    bootm_load_os(with some changes).

    Signed-off-by: Bin Chen
    Reviewed-by: Tom Rini

    Bin Chen
     

15 Mar, 2017

1 commit

  • At first, the ARM64 Linux booting requirement recommended that the
    kernel image be placed text_offset bytes from 2MB aligned base near
    the start of usable system RAM because memory below that base address
    was unusable at that time.

    This requirement was relaxed by Linux commit a7f8de168ace ("arm64:
    allow kernel Image to be loaded anywhere in physical memory").
    Since then, the bit 3 of the flags field indicates the tolerance
    of the kernel physical placement. If this bit is set, the 2MB
    aligned base may be anywhere in physical memory. For details, see
    Documentation/arm64/booting.txt of Linux.

    The booti command should be also relaxed. If the bit 3 is set,
    images->ep is respected, and the image is placed at the nearest
    bootable location. Otherwise, it is relocated to the start of the
    system RAM to keep the original behavior.

    Another wrinkle we need to take care of is the unknown endianness of
    text_offset for a kernel older than commit a2c1d73b94ed (i.e. v3.16).
    We can detect this based on the image_size field. If the field is
    zero, just use a fixed offset 0x80000.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

29 Jan, 2017

1 commit

  • Commit ec6617c39741adc6c549 ("armv8: Support loading 32-bit OS in AArch32
    execution state") broke SMP boot by assuming that an image is 32-bit if
    the arch field in the spin table != IH_ARCH_DEFAULT (i.e.
    IH_ARCH_ARM64), even if the arch field also does not match IH_ARCH_ARM,
    even though nothing actually set the arch field in the spin table.

    Commit e2c18e40b111470f ("armv8: fsl-layerscape: SMP support for loading
    32-bit OS") fixed this for bootm by setting the arch field of the spin
    table based on images.os.arch, but booti remaineed broken because it did
    not set images.os.arch.

    Fixes: ec6617c39741adc6c549 ("armv8: Support loading 32-bit OS in AArch32 execution state")
    Fixes: e2c18e40b111 ("armv8: fsl-layerscape: SMP support for loading 32-bit OS")
    Cc: Alison Wang
    Cc: Chenhui Zhao
    Cc: York Sun
    Cc: Stuart Yoder
    Signed-off-by: Scott Wood
    Reviewed-by: Tom Rini

    Scott Wood
     

24 Jan, 2017

1 commit


20 Aug, 2016

1 commit

  • The bootz and booti commands rely on common functionality that is found
    in common/bootm.c and common/bootm_os.c. They do not however rely on
    the rest of cmd/bootm.c to be implemented so split them into their own
    files. Have various Makefiles include the required infrastructure for
    CONFIG_CMD_BOOT[IZ] as well as CONFIG_CMD_BOOTM. Move the declaration
    of 'images' over to common/bootm.c.

    Cc: Masahiro Yamada
    Signed-off-by: Tom Rini

    Tom Rini