Re: [poky] [PATCH v2] genericarm64.conf: fix qemu testing with testimage.bbclass
Richard Purdie <[email protected]> Wed, 11 Mar 2026 13:16:50 +0000
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <fdd873c3c1a95ce400b8733aad5c7ae2320f4df7.camel@linuxfoundation.org> |
On Wed, 2026-03-11 at 14:54 +0200, Mikko Rapeli via lists.yoctoproject.org = wrote: > genericarm64 machine has supported qemu for a long time but > the default build config failed with testimage.bbclass to boot > and run oeqa runtime tests. >=20 > TESTIMAGEDEPENDS needs qemu utilities so that they are correctly > installed to image sysroot. For qemu machines these are set in > testimage.bbclass but remain unset for non-qemu machines like > genericarm64. >=20 > TEST_RUNQEMUPARAMS needs snapshot since default genericarm64 image > is a compressed wic.zst and nographic to run qemu without connected > display which is better on headless build machines. >=20 > With these set, default genericarm64 core-image-sato boots correctly > with testimage.bbclass and all oeqa runtime tests pass on an x86_64 > build machine: >=20 > $ bitbake core-image-sato && bitbake -c testimage core-image-sato > ... > SUMMARY: > core-image-sato () - Ran 75 tests in 229.248s > core-image-sato - OK - All required tests passed (successes=3D24, > skipped=3D51, failures=3D0, errors=3D0) > NOTE: Tasks Summary: Attempted 1558 tasks of which 1556 didn't need to > be rerun and all succeeded. >=20 > To boot qemu manually (add "slirp" if tap networking not setup): >=20 > $ runqemu nographic snapshot core-image-sato >=20 > Signed-off-by: Mikko Rapeli <[email protected]> > --- > =C2=A0meta-yocto-bsp/conf/machine/genericarm64.conf | 4 ++++ > =C2=A01 file changed, 4 insertions(+) >=20 > v2: dropper slirp from TEST_RUNQEMUPARAMS >=20 > v1: https://lists.yoctoproject.org/g/poky/message/13854 >=20 > diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-b= sp/conf/machine/genericarm64.conf > index 2b1ce4bdd02b..d6839d16a515 100644 > --- a/meta-yocto-bsp/conf/machine/genericarm64.conf > +++ b/meta-yocto-bsp/conf/machine/genericarm64.conf > @@ -73,5 +73,9 @@ QB_TCPSERIAL_OPT ?=3D "-device virtio-serial-pci -chard= ev socket,id=3Dvirtcon,port=3D@ > =C2=A0# Virtio networking > =C2=A0QB_TAP_OPT ?=3D "-netdev tap,id=3Dnet0,ifname=3D@TAP@,script=3Dno,d= ownscript=3Dno" > =C2=A0 > +# default to nographic to work on headless build machines using testimag= e.bbclass, snapshot for wic.zst image type > +TEST_RUNQEMUPARAMS ?=3D "nographic snapshot" > +# basic qemu testimage.bbclass support > +TESTIMAGEDEPENDS:append =3D " qemu-native:do_populate_sysroot qemu-helpe= r-native:do_populate_sysroot qemu-helper-native:do_addto_recipe_sysroot" > =C2=A0# If we're running testimage then we're in a qemu, so ensure u-boot= is build > =C2=A0TESTIMAGEDEPENDS:append =3D " u-boot:do_deploy" I'll try again. nographic does not make sense here, genericarm64 supports graphics as far as I know. The limitations of the test environment should not be hardcoded into the machine definition. There are patches which I sent recently against master which fix that issue in a better way and will mean this is not needed. I am therefore not going to take that as it is confusing, incorrect and not actually needed. Cheers, Richard