mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
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>
This commit is contained in:
parent
ac12c61909
commit
081c660201
1 changed files with 4 additions and 0 deletions
|
@ -48,4 +48,8 @@
|
||||||
"ramdisk_addr_r=0x88300000\0" \
|
"ramdisk_addr_r=0x88300000\0" \
|
||||||
BOOTENV
|
BOOTENV
|
||||||
|
|
||||||
|
#define CONFIG_PREBOOT \
|
||||||
|
"setenv fdt_addr ${fdtcontroladdr};" \
|
||||||
|
"fdt addr ${fdtcontroladdr};"
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
Loading…
Reference in a new issue