[U-Boot] [RFC PATCH 06/11] riscv: add SPL support

Bin Meng bmeng.cn at gmail.com
Tue Jul 23 08:35:46 UTC 2019


On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> U-Boot SPL on the generic RISC-V CPU supports two boot flows, directly
> jumping to the image and via OpenSBI firmware. In the first case, both
> U-Boot SPL and proper must be compiled to run in the same privilege
> mode. Using OpenSBI firmware, U-Boot SPL must be compiled for machine
> mode and U-Boot proper for supervisor mode.
>
> To be able to use SPL, boards have to provide a supported SPL boot
> device.
>
> Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> ---
>
>  arch/Kconfig                   |  6 +++
>  arch/riscv/Kconfig             |  3 ++
>  arch/riscv/cpu/generic/Kconfig |  3 ++
>  arch/riscv/cpu/start.S         | 23 +++++++++-
>  arch/riscv/cpu/u-boot-spl.lds  | 82 ++++++++++++++++++++++++++++++++++
>  arch/riscv/include/asm/spl.h   | 31 +++++++++++++
>  arch/riscv/lib/Makefile        |  1 +
>  arch/riscv/lib/spl.c           | 48 ++++++++++++++++++++
>  8 files changed, 196 insertions(+), 1 deletion(-)
>  create mode 100644 arch/riscv/cpu/u-boot-spl.lds
>  create mode 100644 arch/riscv/include/asm/spl.h
>  create mode 100644 arch/riscv/lib/spl.c
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list