]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: qemu-riscv.h: define CONFIG_PREBOOT (enables extlinux)
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Tue, 9 Apr 2019 10:42:47 +0000 (12:42 +0200)
committerAndes <uboot@andestech.com>
Thu, 9 May 2019 08:46:13 +0000 (16:46 +0800)
commit90fb42786456b3cb5ef40d78411909129882e43c
treefe4d8fb16723fdb1ed0ee8a32585b55e90528bfe
parent0f8f56c94a682adb8d0e00129bfbedffe8fa22f7
riscv: qemu-riscv.h: define CONFIG_PREBOOT (enables extlinux)

- Set fdt_addr variable, which is needed for extlinux to find FDT.
  Otherwise booting kernel using extlinux results in missing FDT.

- Also run fdt addr with FDT address so that fdt commands would
  work out of the box in U-Boot prompt.

This is successfully used by Fedora/RISCV with 5.1-rc3+ kernel using
OpenSBI -> U-Boot (S-mode) [extlinux] -> Kernel setup.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/configs/qemu-riscv.h