From: "Trevor Gamblin" <tgamblin@baylibre.com>
To: <Harish.Sadineni@windriver.com>,
<openembedded-core@lists.openembedded.org>
Cc: <Randy.MacLeod@windriver.com>, <Sundeep.Kokkonda@windriver.com>,
<tgamblin@baylibre.com>
Subject: Re: [wrynose][PATCH] qemuriscv.inc: use fw_dynamic.elf as BIOS when KERNEL_DEBUG is enabled
Date: Wed, 16 Sep 2026 15:55:48 -0400 [thread overview]
Message-ID: <DLH071QT0TBB.7KZL5MFA90WQ@baylibre.com> (raw)
In-Reply-To: <20260916121517.1513695-1-Harish.Sadineni@windriver.com>
On Wed Sep 16, 2026 at 8:15 AM EDT, Harish.Sadineni wrote:
> 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.
It'd be good to understand exactly why this doesn't work and what changed
upstream. I'm looking into it in a local checkout, but I probably won't have an
answer for a day or two.
Trevor
>
> [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"
next prev parent reply other threads:[~2026-09-17 5:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-09-17 7:06 ` [OE-core] " Yoann Congal
2026-09-17 20:38 ` Trevor Gamblin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DLH071QT0TBB.7KZL5MFA90WQ@baylibre.com \
--to=tgamblin@baylibre.com \
--cc=Harish.Sadineni@windriver.com \
--cc=Randy.MacLeod@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.