Bug 16409 - AB-INT: QEMU: failed to start (riscv)
Summary: AB-INT: QEMU: failed to start (riscv)
Status: IN PROGRESS DESIGN
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: oeqa/runtime (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.1
Assignee: Trevor Gamblin
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2026-08-26 08:20 UTC by Mathieu Dubois-Briand
Modified: 2026-09-17 18:54 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2026-08-26 08:20:40 UTC
This one looks new to me. I don't see any clear error in the log, but I assume it's riscv specific.

WARNING: core-image-ptest-tar-1.0-r0 do_testimage: Target didn't reach login banner in 1500 seconds (08/22/26 23:40:02)
WARNING: core-image-ptest-tar-1.0-r0 do_testimage: Last 25 lines of login console (2983):
Domain0 Region01            : 0x0000000080000000-0x000000008003ffff M: (F,R,X) S/U: ()
Domain0 Region02            : 0x0000000000100000-0x0000000000100fff M: (I,R,W) S/U: (R,W)
Domain0 Region03            : 0x0000000010000000-0x0000000010000fff M: (I,R,W) S/U: (R,W)
Domain0 Region04            : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region05            : 0x000000000c400000-0x000000000c5fffff M: (I,R,W) S/U: (R,W)
Domain0 Region06            : 0x000000000c000000-0x000000000c3fffff M: (I,R,W) S/U: (R,W)
Domain0 Region07            : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address        : 0x0000000080200000
Domain0 Next Arg1           : 0x0000000082200000
Domain0 Next Mode           : S-mode
Domain0 SysReset            : yes
Domain0 SysSuspend          : yes

Boot HART ID                : 1
Boot HART Domain            : root
Boot HART Priv Version      : v1.12
Boot HART Base ISA          : rv64imafdcbvh
Boot HART ISA Extensions    : smstateen,sscofpmf,sstc,zicntr,zihpm,zicboz,zicbom,svpbmt,sdtrig,svade,smnpm,ssstateen,v,f,d
Boot HART PMP Count         : 16
Boot HART PMP Granularity   : 2 bits
Boot HART PMP Address Bits  : 54
Boot HART MHPM Info         : 16 (0x0007fff8)
Boot HART Debug Triggers    : 2 triggers
Boot HART MIDELEG           : 0x0000000000003666
Boot HART MEDELEG           : 0x0000000000f4b509
WARNING: core-image-ptest-tar-1.0-r0 do_testimage: Last 25 lines of all logging (2983):
Domain0 Region01            : 0x0000000080000000-0x000000008003ffff M: (F,R,X) S/U: ()
Domain0 Region02            : 0x0000000000100000-0x0000000000100fff M: (I,R,W) S/U: (R,W)
Domain0 Region03            : 0x0000000010000000-0x0000000010000fff M: (I,R,W) S/U: (R,W)
Domain0 Region04            : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region05            : 0x000000000c400000-0x000000000c5fffff M: (I,R,W) S/U: (R,W)
Domain0 Region06            : 0x000000000c000000-0x000000000c3fffff M: (I,R,W) S/U: (R,W)
Domain0 Region07            : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address        : 0x0000000080200000
Domain0 Next Arg1           : 0x0000000082200000
Domain0 Next Mode           : S-mode
Domain0 SysReset            : yes
Domain0 SysSuspend          : yes

Boot HART ID                : 1
Boot HART Domain            : root
Boot HART Priv Version      : v1.12
Boot HART Base ISA          : rv64imafdcbvh
Boot HART ISA Extensions    : smstateen,sscofpmf,sstc,zicntr,zihpm,zicboz,zicbom,svpbmt,sdtrig,svade,smnpm,ssstateen,v,f,d
Boot HART PMP Count         : 16
Boot HART PMP Granularity   : 2 bits
Boot HART PMP Address Bits  : 54
Boot HART MHPM Info         : 16 (0x0007fff8)
Boot HART Debug Triggers    : 2 triggers
Boot HART MIDELEG           : 0x0000000000003666
Boot HART MEDELEG           : 0x0000000000f4b509
Comment 1 Mathieu Dubois-Briand 2026-08-26 08:26:39 UTC
qemuriscv64-ptest alma8-vk-1 master&master-next completed at 2026-08-23 00:57:16+00:00
https://valkyrie.yocto.io/pub/non-release/20260822-117/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2231/steps/16/logs/stdio
Comment 2 Randy MacLeod 2026-08-27 14:41:03 UTC
See if it happens again.
Comment 3 Harish Sadineni 2026-09-02 09:00:57 UTC
This issue is reproducible when building an image with KERNEL_DEBUG = "True" on riscv64. 
runqemu hangs when booting with -bios fw_jump.elf, but boots successfully with fw_dynamic.elf or the default bios.

Hope this helps, Trevor.
Comment 4 Trevor Gamblin 2026-09-03 17:27:27 UTC
Note that this requires meta-oe to make pahole-native available, otherwise you get:

tgamblin@megalith ~/workspace/ypbuilds/poky-qemuriscv64/build $ bitbake core-image-minimal
Loading cache: 100% |#################################################################################################################################################################################| Time: 0:00:00
Loaded 1979 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'pahole-native'. Close matches:
  pango-native
  patch-native
  patchelf-native
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'virtual/kernel', 'pahole-native']
Comment 5 Trevor Gamblin 2026-09-15 21:03:51 UTC
I can't reproduce this anymore. Harish, can you?
Comment 6 Harish Sadineni 2026-09-16 09:31:05 UTC
We've now switched to kernel version 7.2 with the Poky distro by default (see commit: https://git.yoctoproject.org/meta-yocto/commit/?id=3bb1295755628c4facec3a0a2800a9c12345ce00).

This issue doesn't occur with the 7.2 kernel, so it looks like it may have been fixed in this version.

To reproduce it, set PREFERRED_VERSION_linux-yocto = "6.18%" in local.conf.

Note: wrynose is still affected.
Comment 7 Harish Sadineni 2026-09-16 12:18:50 UTC
I have sent a workaround patch to use fw_dynamic.elf for oe-core/wrynose branch.
https://lists.openembedded.org/g/openembedded-core/message/245965
Comment 8 Trevor Gamblin 2026-09-16 15:19:58 UTC
We should probably look at the kernel history to see what might've changed it before just going with a workaround. I'll spend some time doing that.
Comment 9 Trevor Gamblin 2026-09-17 18:54:57 UTC
It seems that when I compare local builds between 6.18 and 7.2, the kernel build for the latter is reporting CONFIG_PAHOLE_VERSION=0 in the .config file. Still digging...