All of lore.kernel.org
 help / color / mirror / Atom feed
* [wrynose][PATCH] qemuriscv.inc: use fw_dynamic.elf as BIOS when KERNEL_DEBUG is enabled
@ 2026-09-16 12:15 Harish.Sadineni
  2026-09-16 19:55 ` Trevor Gamblin
  0 siblings, 1 reply; 4+ messages in thread
From: Harish.Sadineni @ 2026-09-16 12:15 UTC (permalink / raw)
  To: openembedded-core; +Cc: Randy.MacLeod, Sundeep.Kokkonda, tgamblin

From: Harish Sadineni <Harish.Sadineni@windriver.com>

QEMU RISC-V hangs (qemu hang-up) when using fw_jump.elf as the
default BIOS while kernel debugging is enabled. This has been
observed with the 6.18 kernel (exact version where it was
introduced is not known).

As a workaround, switch to fw_dynamic.elf when KERNEL_DEBUG is
enabled, which avoids the hang and works correctly with debug
builds. The default behaviour is unchanged and continues to use
fw_jump.elf when KERNEL_DEBUG is not set.

[YOCTO #16409]

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
 meta/conf/machine/include/riscv/qemuriscv.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index bac376ce5a..6e7d4a8adf 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -29,7 +29,10 @@ QB_SMP ?= "-smp 4"
 QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
 QB_CPU:riscv64 ?= "-cpu rva23s64,pmp=true"
 QB_MACHINE = "-machine virt"
-QB_DEFAULT_BIOS = "fw_jump.elf"
+# Workaround: fw_jump.elf causes QEMU RISC-V to hang when KERNEL_DEBUG
+# is enabled, use fw_dynamic.elf in that case instead.
+# See https://bugzilla.yoctoproject.org/show_bug.cgi?id=16409 for more details.
+QB_DEFAULT_BIOS = "${@bb.utils.contains('KERNEL_DEBUG', 'True', 'fw_dynamic.elf', 'fw_jump.elf', d)}"
 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
 QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
 QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-17 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 12:15 [wrynose][PATCH] qemuriscv.inc: use fw_dynamic.elf as BIOS when KERNEL_DEBUG is enabled Harish.Sadineni
2026-09-16 19:55 ` Trevor Gamblin
2026-09-17  7:06   ` [OE-core] " Yoann Congal
2026-09-17 20:38     ` Trevor Gamblin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.