]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: qemu: clear kernel-start/-end in device tree as workaround for BBL
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Thu, 22 Nov 2018 10:26:37 +0000 (11:26 +0100)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:57:33 +0000 (13:57 +0800)
commit897206c5cc5c6ac0dc2ab851044e42baada3785b
tree168fc417db96847e1d139fc8a107a3e58a958d4c
parent66ffe5783b6340977ead5782cce9b63edfc0e348
riscv: qemu: clear kernel-start/-end in device tree as workaround for BBL

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@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
board/emulation/qemu-riscv/Kconfig
board/emulation/qemu-riscv/qemu-riscv.c