summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Abdurachmanov <[email protected]>2019-04-09 12:42:47 +0200
committerAndes <[email protected]>2019-05-09 16:46:13 +0800
commit081c660201f7567c4fc000e4d758b5ab9f0e8db4 (patch)
treefe4d8fb16723fdb1ed0ee8a32585b55e90528bfe /include
parentac12c61909273be0806afae42963f426925ad111 (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Lukas Auer <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/qemu-riscv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index 22a5cd73651..b7110edebcb 100644
--- a/include/configs/qemu-riscv.h
+++ b/include/configs/qemu-riscv.h
@@ -48,4 +48,8 @@
"ramdisk_addr_r=0x88300000\0" \
BOOTENV
+#define CONFIG_PREBOOT \
+ "setenv fdt_addr ${fdtcontroladdr};" \
+ "fdt addr ${fdtcontroladdr};"
+
#endif /* __CONFIG_H */