From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: poky@lists.yoctoproject.org
Subject: Re: [poky] [PATCH] genericarm64.conf: set runqemu memory config to 512 Mb
Date: Mon, 29 Dec 2025 09:46:23 +0200 [thread overview]
Message-ID: <aVIxz5NbLStKeYpD@nuoska> (raw)
In-Reply-To: <CAMKF1srLACe_KRciXeWxZ+PMgVmWdrH-Mp6sgcS8VtJtvgqA7w@mail.gmail.com>
Hi,
On Tue, Dec 23, 2025 at 12:28:00PM -0800, Khem Raj wrote:
> On Tue, Dec 23, 2025 at 12:25 AM Mikko Rapeli via lists.yoctoproject.org
> <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
>
> > The genericarm64 initramfs is larger than 256 Mb which is
> > the default runqemu memory config and thus boot fails when
> > extracted initramfs does not fit.
> >
> > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> > ---
> > meta-yocto-bsp/conf/machine/genericarm64.conf | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf
> > b/meta-yocto-bsp/conf/machine/genericarm64.conf
> > index 5d1010e..ce22b17 100644
> > --- a/meta-yocto-bsp/conf/machine/genericarm64.conf
> > +++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
> > @@ -57,6 +57,7 @@ QB_MACHINE ?= "-machine virt"
> > QB_CPU ?= "-cpu cortex-a76"
> > QB_CPU_KVM ?= "-cpu host -machine gic-version=3"
> > QB_SMP ?= "-smp 4"
> > +QB_MEM ?= "-m 512"
> >
>
> Some image recipes e.g. core-image-sato sets it conditionally like
> QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m
> 256", d)}'
You are right, this overrides the value:
# $QB_MEM [5 operations]
# set? /home/builder/src/gpit/build/../meta-yocto/meta-yocto-bsp/conf/machine/genericarm64.conf:60
# "-m 512"
# set /home/builder/src/gpit/build/../core/meta/recipes-sato/images/core-image-sato.bb:18
# "${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}"
# set? /home/builder/src/gpit/build/../core/meta/classes-recipe/qemuboot.bbclass:96
# "-m 256"
# override[qemuarmv5]:set /home/builder/src/gpit/build/../core/meta/recipes-sato/images/core-image-sato.bb:19
# "-m 256"
# override[qemumips]:set /home/builder/src/gpit/build/../core/meta/recipes-sato/images/core-image-sato.bb:20
# "-m 256"
# pre-expansion value:
# "${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}"
QB_MEM="-m 256"
So 256 Mb without opengl in DISTRO_FEATURES.
But the problem solved by this patch is core-image-minimal or other images
which do not set QB_MEM at all and thus rely on defaults from qemuboot.bbclass or
runqemu and they don't work on genericarm64 with a large initramfs. With this
patch they work:
# $QB_MEM [2 operations]
# set? /home/builder/src/gpit/build/../meta-yocto/meta-yocto-bsp/conf/machine/genericarm64.conf:60
# "-m 512"
# set? /home/builder/src/gpit/build/../core/meta/classes-recipe/qemuboot.bbclass:96
# "-m 256"
# pre-expansion value:
# "-m 512"
QB_MEM="-m 512"
> I wonder what happens with this change, will it get reset to 256 for
> qemuarm64 when not using opengl ?
I guess you meant genericarm64 since qemuarm64 is not affected by this.
So without "opengl" in DISTRO_FEATURES the 256 Mb is set which is not
ok but I don't know how to fix that atm. genericarm64 enables "opengl"
and I don't see a need to test genericarm64 without "opengl" support.
Cheers,
-Mikko
prev parent reply other threads:[~2025-12-29 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 8:24 [PATCH] genericarm64.conf: set runqemu memory config to 512 Mb Mikko Rapeli
2025-12-23 20:28 ` [poky] " Khem Raj
2025-12-29 7:46 ` Mikko Rapeli [this message]
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=aVIxz5NbLStKeYpD@nuoska \
--to=mikko.rapeli@linaro.org \
--cc=poky@lists.yoctoproject.org \
--cc=raj.khem@gmail.com \
/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