Re: [poky] [PATCH] genericarm64.conf: set runqemu memory config to 512 Mb

Khem Raj <[email protected]> Tue, 23 Dec 2025 12:28:00 -0800
Newsgroups org.yoctoproject.lists.poky
Message-ID <CAMKF1srLACe_KRciXeWxZ+PMgVmWdrH-Mp6sgcS8VtJtvgqA7w@mail.gmail.com>
On Tue, Dec 23, 2025 at 12:25 AM Mikko Rapeli via lists.yoctoproject.org
<[email protected]> 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 <[email protected]>
> ---
>  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)}'

I wonder what happens with this change, will it get reset to 256 for
qemuarm64 when not using opengl ?


>  # Boot into U-Boot and let that scan the disk for the next step, don't
> pass any kernel or filesystem hints
>  QB_DEFAULT_BIOS ?= "u-boot.bin"
>  QB_DEFAULT_KERNEL ?= "none"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#13809):
> https://lists.yoctoproject.org/g/poky/message/13809
> Mute This Topic: https://lists.yoctoproject.org/mt/116913418/1997914
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [
> [email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>