Skip to contentSkip to conversation

qemu-riscv64_smode: fix extlinux (define preboot)

PATCH Superseded Dimitri John Ledkov 1 participant 1 message Jul 26, 2021 RISC-V

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qemu-riscv64_smode: fix extlinux (define preboot)

Commit 37304aaf60bf ("Convert CONFIG_USE_PREBOOT and CONFIG_PREBOOT to Kconfig") removed preboot commands in RISC-V targets and broke extlinux support as reported by Fu Wei <[email protected]>.

The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT to Kconfig.

Fixes 37304aaf60bf ("Convert CONFIG_USE_PREBOOT and CONFIG_PREBOOT to Kconfig")

---

Original patch author is David Abdurachmanov

Previously this was submitted in 2019
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Since then the sifive fu540 portion of this change was merged, but not the qemu one.

Submitting the qemu portion again. Without this change, qemu smode cannot boot Ubuntu's riscv64 cloud images with extlinux.conf.

 configs/qemu-riscv64_smode_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/qemu-riscv64_smode_defconfig +2 -0
index 0000564e41..cb674c6a75 100644
@@ -14,3 +14,5 @@ CONFIG_CMD_NVEDIT_EFI=y
 CONFIG_OF_PRIOR_STAGE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"
Signature · 1 line
2.30.2