public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: charles.embedded@gmail.com
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] runqemu: parse QB_GRAPHICS for nographic flag
Date: Mon, 02 Feb 2026 14:08:50 -0800	[thread overview]
Message-ID: <496119.1770070130858397788@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj82ZMXiNpFC4tihxgmcLJEJ143Jui+1KAaAXokrj-uYXw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]

On Mon, Feb 2, 2026 at 12:58 PM, Alexander Kanavin wrote:

> 
> I'm not sure specifying -nographic in a BSP layer via QB_GRAPHICS is
> correct. QB_GRAPHICS is intended for what emulated hardware should be
> present in the guest machine.
> 
> -nographic is a host option that tells qemu what to do with the
> graphical output (in case of -nographic, discard it). I don't think
> it's up to the BSP layer to make that decision.

Hi Alex,

Thanks for the feedback.

In meta-zephyr/meta-zephyr-bsp/conf/machine/qemu-x86.conf are defined several QEMU settings that are used to generate the.qemuboot.conf file during the image build (e.g. ${TMPDIR}/deploy/images/qemu-x86/zephyr-helloworld-qemu-x86-20260201174846.elf).

The expectation is that, based on the resulting.qemuboot.conf , running runqemu should be sufficient to boot Zephyr and see the console output in the terminal (no GUI required). However, in this case QB_GRAPHICS="-nographic" is ignored, and the generated QEMU invocation still selects a graphical display device, so the Zephyr output does not appear on the terminal as expected. Please see the QEMU command:

/<path-to>/usr/bin/qemu-system-i386 -nic none -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0    -machine type=q35 -cpu qemu32,+nx,+pae  -m 256 -serial mon:vc -serial null -device virtio-vga  -display sdl,show-cursor=on -nographic -machine acpi=off -kernel <path-to-build> /tmp/deploy/images/qemu-x86/zephyr-helloworld-qemu-x86-20260201174846.elf -append '  mem=256M swiotlb=0 '

So even though -nographic is present, QEMU is still invoked with -device virtio-vga and -display sdl , and the serial is set to mon:vc.

My intent with the patch is to ensure that when QB_GRAPHICS includes -nographic , runqemu does not select a graphical display device and routes the serial console to the terminal (so the Zephyr log is visible as expected).

Please let me know if I'm not on the right track. Thank you!

Charles Dias

[-- Attachment #2: Type: text/html, Size: 2444 bytes --]

  reply	other threads:[~2026-02-02 22:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-31 21:11 [PATCH] runqemu: parse QB_GRAPHICS for nographic flag charles.embedded
2026-02-02 15:58 ` [OE-core] " Alexander Kanavin
2026-02-02 22:08   ` charles.embedded [this message]
2026-02-03  9:59     ` Alexander Kanavin
2026-02-03 11:25       ` Charles Dias

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=496119.1770070130858397788@lists.openembedded.org \
    --to=charles.embedded@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox