Skip to content
Commit 081c6602 authored by David Abdurachmanov's avatar David Abdurachmanov Committed by Andes
Browse files

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: default avatarDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarLukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent ac12c619
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment