[U-Boot] [PATCH v2 29/29] riscv: qemu: clear kernel-start/-end in device tree as workaround for BBL

Bin Meng bmeng.cn at gmail.com
Wed Oct 31 02:14:09 UTC 2018


On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> QEMU specifies the location of Linux (supplied with the -kernel
> argument) in the device tree using the riscv,kernel-start and
> riscv,kernel-end properties. We currently rely on the SBI implementation
> of BBL to run Linux and therefore embed Linux as payload in BBL. This
> causes an issue, because BBL detects the kernel properties in the device
> tree and ignores the Linux payload as a result.
> Work around this issue by clearing the kernel properties in the device
> tree before booting Linux.
>
> Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> ---
>
> Changes in v2:
> - New patch
>
>  board/emulation/qemu-riscv/Kconfig      |  1 +
>  board/emulation/qemu-riscv/qemu-riscv.c | 39 +++++++++++++++++++++++++
>  2 files changed, 40 insertions(+)
>

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


More information about the U-Boot mailing list