qemu-riscv64_smode: fix extlinux (define preboot)
PATCH 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.
---
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
@@ -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
Hi Dimitri,
Quoted 6 lines · Dimitri John Ledkov
Commit
37304aaf60bf("ConvertCONFIG_USE_PREBOOTandCONFIG_PREBOOTtoKconfig") 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_PREBOOTandCONFIG_REBOOTtoKconfig.
Could you add a "Fixes" tag and a "Reported-by" tag as suggested by Bin?
Quoted 25 lines
Signed-off-by David Abdurachmanov <[email protected]>Signed-off-by Dimitri John Ledkov <[email protected]>---
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 +0
-0
configs/qemu-riscv64_smode_defconfig CONFIG_CMD_NVEDIT_EFI=y · line 18
Quoted 5 lines
configs/qemu-riscv64_smode_defconfig +2
-0@@ -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};"
The config option should be inserted using "make savedefconfig".
e.g.
$ make menuconfig choose the config option desired $ make savedefconfig $ cp defconfig configs/qemu-riscv64_smode_defconfig
Thanks!
Best regards,
Leo
Quoted 3 lines
Signature · 1 line
2.30.2
Quoted 4 lines · Leo Liang
Hi Dimitri,
On Sat, Jul 24, 2021 at 12:12:25AM +0800, Dimitri John Ledkov wrote:
Quoted 9 lines
Quoted 6 lines
Commit
37304aaf60bf("ConvertCONFIG_USE_PREBOOTandCONFIG_PREBOOTtoKconfig") 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_PREBOOTandCONFIG_REBOOTtoKconfig.Could you add a "Fixes" tag and a "Reported-by" tag as suggested by Bin?
done in v2
Quoted 33 lines
Quoted 25 lines
Signed-off-by David Abdurachmanov <[email protected]>Signed-off-by Dimitri John Ledkov <[email protected]>---
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 +0
-0configs/qemu-riscv64_smode_defconfig CONFIG_CMD_NVEDIT_EFI=y · line 18
Quoted 5 lines
configs/qemu-riscv64_smode_defconfig +2
-0@@ -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};"The config option should be inserted using "make savedefconfig".
Quoted 6 lines
e.g.
$ make menuconfig choose the config option desired $ make savedefconfig $ cp defconfig configs/qemu-riscv64_smode_defconfig
done in v3
Quoted 7 lines
Thanks!
Best regards,
LeoQuoted 3 lines
--
2.30.2
Signature · 3 lines
Regards, Dimitri.