From patchwork Mon Jul 7 20:37:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 66356 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAEB4C71130 for ; Mon, 7 Jul 2025 20:38:28 +0000 (UTC) Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.web10.2909.1751920708244018340 for ; Mon, 07 Jul 2025 13:38:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=bIMJ52sG; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-1329275-20250707203825a20de82214bc17c894-auo57w@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20250707203825a20de82214bc17c894 for ; Mon, 07 Jul 2025 22:38:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=agdEDDMg7l12alde9Wx2xNk0cwz6cWkddNCcvIe/1sE=; b=bIMJ52sGvd7pyed6l0B9rVDw5LSirnI2I3fiHI+8nBVpBXyphx9kdXwa93s/jlC9IsJHWM oiQ2XgOJ8wl0jNJf2NXiXItH8ro4XUjqYzIdr335p4BaDh53KBL5B7U1VOJWlSirCthqlDjV t4+gCql5hpTnt2NM9dOOG00nreobyyoAu8U8vp7bfegiB2fpyJqZRy/R6TFobzzvArniZQH6 DtTNDv1lt5reNJIRKWAzh1UsLc3b9swPDbae8fcrWNNEx2691URuZII7UhAKFE/krwzfCfXR as3JOLH9VfTu3QTQ3TJ/m5mentaCEIG2f5je+iSqKvAhQ+Ez2xVjVx9w==; From: AdrianF To: poky@lists.yoctoproject.org Cc: Adrian Freihofer Subject: [PATCH v2 1/5] beaglebone-yocto: support initramfs in qemu Date: Mon, 7 Jul 2025 22:37:54 +0200 Message-ID: <20250707203820.2554184-2-adrian.freihofer@siemens.com> In-Reply-To: <20250707203820.2554184-1-adrian.freihofer@siemens.com> References: <20250707203820.2554184-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 20:38:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13693 From: Adrian Freihofer Support booting with initramfs also in Qemu. If INITRAMFS_IMAGE is defined, Qemu gets it via -initrd parameter. Signed-off-by: Adrian Freihofer --- meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf index db9cfec497a..d4b72361650 100644 --- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf @@ -46,7 +46,10 @@ QB_SYSTEM_NAME = "qemu-system-arm" QB_MACHINE = "-machine virt" QB_CPU = "-cpu cortex-a15" QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd" -QB_OPT_APPEND = "-device virtio-rng-device" +QB_OPT_APPEND = "\ + -device virtio-rng-device \ + ${@' -initrd %s/%s.%s' % (d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('INITRAMFS_IMAGE_NAME'), d.getVar('INITRAMFS_FSTYPES')) if d.getVar('INITRAMFS_IMAGE') else ''} \ +" QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" From patchwork Mon Jul 7 20:37:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 66357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2279C83030 for ; Mon, 7 Jul 2025 20:38:28 +0000 (UTC) Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by mx.groups.io with SMTP id smtpd.web10.2911.1751920708363289760 for ; Mon, 07 Jul 2025 13:38:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=jepQcGBw; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.228, mailfrom: fm-1329275-2025070720382649e65923286c2bb62d-o9kiwn@rts-flowmailer.siemens.com) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 2025070720382649e65923286c2bb62d for ; Mon, 07 Jul 2025 22:38:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=jbYXkq6BwdWm0WyhQ1yV35D3vZtQRmwCN8qhGg+JisI=; b=jepQcGBwzyFEwqHpwbQ0VmJF8WLvwnSRbg0ZzaaAbEhoFKbxU5Bru2IrA+CDr5PvoOD6kR omHkJ5QFPcDeag+gyrZDb2pRue/1FaSdGJqvfcymxqFSH8PcTCMETaqRK5hY8DqJrIM2Xhdc JOIcakYz7IzP3gz/zo2FUU02c2NTcUftOBvWkNl+7xumSOZMe9znYaxaNHz9LdQXkcWHE5hN 5kiJMuQ3572raY4xKRu/TprAkc6GREer0VisZqGcAL3oEhPCy/1AckfFFvbKWRrBPx2rbpBy mD6XhU9suflScyCGKMvGncj5FoHRwdYzO/ryUs6QuH3mgU855TY9lGuA==; From: AdrianF To: poky@lists.yoctoproject.org Cc: Adrian Freihofer Subject: [PATCH v2 2/5] beaglebone-yocto: support FIT images Date: Mon, 7 Jul 2025 22:37:55 +0200 Message-ID: <20250707203820.2554184-3-adrian.freihofer@siemens.com> In-Reply-To: <20250707203820.2554184-1-adrian.freihofer@siemens.com> References: <20250707203820.2554184-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 20:38:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13696 From: Adrian Freihofer Introduce the FIT_IMAGE_KERNEL variable, which allows switching from the zImage kernel to a FIT image kernel. This variable is not intended to be officially documented; the goal is for the beaglebone-yocto MACHINE to serve as an example for both use cases: zImage and FIT image. The following tests have been performed on a beaglebone-black device with poky and core-image-minimal running from SDCard: * MACHINE = "beaglebone-yocto" Still boots the zImage kernel as before this commit * MACHINE = "beaglebone-yocto" FIT_IMAGE_KERNEL = "1" Boots a FIT image kernel as expected * MACHINE = "beaglebone-yocto" INITRAMFS_IMAGE = "core-image-initramfs-boot" FIT_IMAGE_KERNEL = "1" Boots a FIT image kernel with initramfs as expected Also booting like that behaves as expected: fatload mmc 0:1 $loadaddr /kernel iminfo $loadaddr setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2 ro \ rootfstype=ext4 rootwait shell_debug=true bootm ${loadaddr}#conf-am335x-boneblack.dtb All the tested configurations just boot from the SDCard without manual tweaks. Signed-off-by: Adrian Freihofer --- .../conf/machine/beaglebone-yocto.conf | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf index d4b72361650..321d2c27c2a 100644 --- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf @@ -14,8 +14,20 @@ include conf/machine/include/arm/armv7a/tune-cortexa8.inc IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap" EXTRA_IMAGECMD:jffs2 = "-lnp " WKS_FILE ?= "beaglebone-yocto.wks" -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree" -do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy" + +# Setting this variable to "1" switches from zImage kernel to FIT image kernel +FIT_IMAGE_KERNEL ?= "0" + +# Note: This is redundant if wic creates a separate /boot partition +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${@'linux-yocto-fitimage' if d.getVar('FIT_IMAGE_KERNEL') == '1' else 'kernel-image kernel-devicetree'}" + +KERNEL_CLASSES += "${@'kernel-fit-extra-artifacts' if d.getVar('FIT_IMAGE_KERNEL') == '1' else ''}" +do_image_wic[depends] += "\ + mtools-native:do_populate_sysroot \ + dosfstools-native:do_populate_sysroot \ + virtual/bootloader:do_deploy \ + ${@'linux-yocto-fitimage:do_deploy' if d.getVar('FIT_IMAGE_KERNEL') == '1' else ''} \ +" SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0" @@ -26,15 +38,28 @@ KERNEL_IMAGETYPE = "zImage" DTB_FILES = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" KERNEL_DEVICETREE = '${@' '.join('ti/omap/%s' % d for d in '${DTB_FILES}'.split())}' +# Configure the image.bbclass to depend on the fitImage instead of only +# the kernel to ensure the fitImage is built with the image +KERNEL_DEPLOY_DEPEND = "${@'linux-yocto-fitimage:do_deploy' if d.getVar('FIT_IMAGE_KERNEL') == '1' else 'virtual/kernel:do_deploy'}" + PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot" SPL_BINARY = "MLO" UBOOT_SUFFIX = "img" UBOOT_MACHINE = "am335x_evm_defconfig" +UBOOT_ENTRYPOINT = "0x80008000" +UBOOT_LOADADDRESS = "0x80008000" +UBOOT_DTB_LOADADDRESS = "0x88000000" +UBOOT_DTBO_LOADADDRESS = "0x88080000" +UBOOT_RD_LOADADDRESS = "0x89000000" +UBOOT_RD_ENTRYPOINT = "0x89000000" MACHINE_FEATURES = "usbgadget usbhost vfat alsa" -IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${DTB_FILES}" +# Configure wic to create a /boot partition with either zImage or fitImage +IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} \ + ${@'fitImage' if d.getVar('FIT_IMAGE_KERNEL') == '1' else '${KERNEL_IMAGETYPE} ${DTB_FILES}'} \ +" # support runqemu EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" From patchwork Mon Jul 7 20:37:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 66359 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E85F9C83F0A for ; Mon, 7 Jul 2025 20:38:28 +0000 (UTC) Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by mx.groups.io with SMTP id smtpd.web10.2910.1751920708360950349 for ; Mon, 07 Jul 2025 13:38:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=fJ0lH3+m; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225, mailfrom: fm-1329275-20250707203826054e3461c7284dc966-b2z1oo@rts-flowmailer.siemens.com) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20250707203826054e3461c7284dc966 for ; Mon, 07 Jul 2025 22:38:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=XuuLCALn5cbr04sauabauKZeKAwxtOkwgfF4ympsjhM=; b=fJ0lH3+m/+6pHB0bbzRymLa57Eq6g458JqOeNfxlR+rszGrv549PEKX3NMNDkgkjrPM+bZ Y5ogOf5qeR73ghKHBeuCZy67z1sgNaE553TLx4CHwvgnrnNv0P42hOvjvgv2F5Xcj8hrA3mz /a7JQaqRm3fMS3/OZCyV0aC+ZKnQxkLPuG0zlXm38rX4B9BUStTahc3hLdX3XBIp7fMP2IQr tDPTOBc5BLztiHq+hHP5A4BOPpj5+80p3zirTTy8PAHOMtgVTpTDV2v9ZZdHPQt8wdrrjksb FZElohcwYM8HmaRwjQ6RbaaBKp0zseGhdIFYhTMlECoWFSxUocFdCtjQ==; From: AdrianF To: poky@lists.yoctoproject.org Cc: Adrian Freihofer Subject: [PATCH v2 3/5] beaglebone-yocto: default to beaglebone black Date: Mon, 7 Jul 2025 22:37:56 +0200 Message-ID: <20250707203820.2554184-4-adrian.freihofer@siemens.com> In-Reply-To: <20250707203820.2554184-1-adrian.freihofer@siemens.com> References: <20250707203820.2554184-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 20:38:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13695 From: Adrian Freihofer The Beaglebone black is the newest and still available board. It's also the recommended board on https://www.beagleboard.org/boards. Booting from SDCard is possible with all three device-trees. However, for example the internal memory of a Beaglebone black requires the right DTB. This change makes this working by default which improves the user experience for users who buy a new Yocto reference board for getting started. Signed-off-by: Adrian Freihofer --- meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf index 321d2c27c2a..f5d89f3ce5a 100644 --- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf @@ -37,6 +37,7 @@ PREFERRED_VERSION_linux-yocto ?= "6.12%" KERNEL_IMAGETYPE = "zImage" DTB_FILES = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" KERNEL_DEVICETREE = '${@' '.join('ti/omap/%s' % d for d in '${DTB_FILES}'.split())}' +FIT_CONF_DEFAULT_DTB = "am335x-boneblack.dtb" # Configure the image.bbclass to depend on the fitImage instead of only # the kernel to ensure the fitImage is built with the image From patchwork Mon Jul 7 20:37:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 66360 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBCD0C8303C for ; Mon, 7 Jul 2025 20:38:28 +0000 (UTC) Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) by mx.groups.io with SMTP id smtpd.web11.2854.1751920708385963342 for ; Mon, 07 Jul 2025 13:38:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=iErDS6Mr; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.226, mailfrom: fm-1329275-20250707203826ce6647314e72c9fcf2-rxlnuq@rts-flowmailer.siemens.com) Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 20250707203826ce6647314e72c9fcf2 for ; Mon, 07 Jul 2025 22:38:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=EqRy/RpD7Zaq2Q3B52JOrXre4FZMKAkqA/nMCPniu94=; b=iErDS6MrlbWzwGiloneOu0V8Kz7DAe40svBIPVkthpgzNrEVUgqj4DR0lDRebGe468vW0C nULGU9Xw9qNLz3qjkf8rLeOYGv56q61pTUS7Qiu7sR+zPhoM9FFtOOHWBYu4F16y3z3yz3Bp hhT5EckvoBRfXimzf/mb7pTLcdxTAgjc20yJ9aCJaxBDSOgOFiOWZ0a6Zn/0wyQLD/gHVhMJ QKFX08eKMd/BcxxaV2/EP/iL42pItYPWa5u/SfylSGlc8j+LytG54JYv9xqTeEPIXpjUUFKI NtuGHVMD5cewys4tkr0nQxXxZ9vd25rnje7lLrJMJDG2tsi7FpxJ8mwg==; From: AdrianF To: poky@lists.yoctoproject.org Cc: Adrian Freihofer Subject: [PATCH v2 4/5] oe-selftest: add a beaglebone-yocto fitimage Qemu test Date: Mon, 7 Jul 2025 22:37:57 +0200 Message-ID: <20250707203820.2554184-5-adrian.freihofer@siemens.com> In-Reply-To: <20250707203820.2554184-1-adrian.freihofer@siemens.com> References: <20250707203820.2554184-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 20:38:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13697 From: Adrian Freihofer The kernel configuration of the beaglebone-yocto MACHINE supports booting on real hardware as well as in Qemu. Add an oe-selftest which tests that booting in Qemu is possible even when the kernel is a FIT image kernel with a RAM disk. Since Qemu does not support FIT images, Qemu boots the zImage in direct kernel mode. This works with or without initramfs. Signed-off-by: Adrian Freihofer --- .../selftest/cases/beaglebone_yocto_qemu.py | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 meta-yocto-bsp/lib/oeqa/selftest/cases/beaglebone_yocto_qemu.py diff --git a/meta-yocto-bsp/lib/oeqa/selftest/cases/beaglebone_yocto_qemu.py b/meta-yocto-bsp/lib/oeqa/selftest/cases/beaglebone_yocto_qemu.py new file mode 100644 index 00000000000..de7697d6585 --- /dev/null +++ b/meta-yocto-bsp/lib/oeqa/selftest/cases/beaglebone_yocto_qemu.py @@ -0,0 +1,41 @@ + +from oeqa.selftest.case import OESelftestTestCase +from oeqa.utils.commands import runCmd, bitbake, runqemu, runqemu_check_taps +from oeqa.core.decorator import OETestTag + + +class BeagleboneYoctoQemuTests(OESelftestTestCase): + + @OETestTag("runqemu") + def test_fit_image_initramfs_qemu(self): + """ + Summary: Verify building an image including a FIT image kernel and booting in Qemu works. + Expected: 1. core-image-minimal including a FIT image in /boot gets built + 2. Qemu can boot the zImage and initramfs with direct kernel boot + since Qemu does not support FIT images + """ + + config = """ +DISTRO = "poky" +MACHINE = "beaglebone-yocto" +INITRAMFS_IMAGE = "core-image-initramfs-boot" +FIT_IMAGE_KERNEL = "1" +# Do not override kernel command line network configuration +BAD_RECOMMENDATIONS:append:pn-oe-selftest-image = " init-ifupdown" +# This is only compatible with Qemu* MACHINEs +COMPATIBLE_MACHINE:beaglebone-yocto:pn-ssh-pregen-hostkeys = "^beaglebone-yocto$" +""" + self.write_config(config) + if not runqemu_check_taps(): + self.skipTest('No tap devices found - you must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') + testimage = "oe-selftest-image" + bitbake(testimage) + # Boot the image + with runqemu(testimage) as qemu: + # Run a test command to see if it was installed properly + sshargs = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' + result = runCmd('ssh %s root@%s %s' % (sshargs, qemu.ip, "ls -1 /boot")) + self.logger.debug("ls -1 /boot: %s" % str(result.output)) + boot_files = result.output.splitlines() + self.assertIn("fitImage", boot_files) + self.assertNotIn("zImage", boot_files) From patchwork Mon Jul 7 20:37:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 66358 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 038CDC83F14 for ; Mon, 7 Jul 2025 20:38:29 +0000 (UTC) Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by mx.groups.io with SMTP id smtpd.web11.2852.1751920708278051673 for ; Mon, 07 Jul 2025 13:38:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=ZsHnuNQ4; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.228, mailfrom: fm-1329275-20250707203826025bec738156f5bc88-6tsrjo@rts-flowmailer.siemens.com) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20250707203826025bec738156f5bc88 for ; Mon, 07 Jul 2025 22:38:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=xjnqSzW/zv7jqyYUGyCO8j2WzlAE0OSmrWlqUAG57ns=; b=ZsHnuNQ4YIq+9qFE8tEwmjFPKzXcZKGWtXvNvAF9vJJJU1joUtYdQASfWR7CrXqb7Y/CCq VdGKuCCNtNrFSW1ZncipBryx4Eiumg8ZzsciU6ef2U6P2JZB19hCjU/Fvv6KxVQjNWBsokrd AGW78kq16QgV7J+sDCZGcBHqmtHt2UNZHJjrMhctSJ+wlW0B/2kS41/IaJP/4mkAtMXMDVm0 /tMPBzNoxu3H6zMr+Yizg+mGD4IKkQKEw07Gus1MLmDTwZw8vw+w/Vmsm6bjnV4Y39fl+7Ki bTZf5dyZmSME1XrKjj1tGXryS8cFf2966bHowSHdeOIXWNDP+zeLooBQ==; From: AdrianF To: poky@lists.yoctoproject.org Cc: Adrian Freihofer Subject: [PATCH v2 5/5] poky-altcfg: use FIT kernel for the beaglebone Date: Mon, 7 Jul 2025 22:37:58 +0200 Message-ID: <20250707203820.2554184-6-adrian.freihofer@siemens.com> In-Reply-To: <20250707203820.2554184-1-adrian.freihofer@siemens.com> References: <20250707203820.2554184-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 07 Jul 2025 20:38:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13694 From: Adrian Freihofer This is mainly for getting more test coverage with oe-selftest and on real hardware. Signed-off-by: Adrian Freihofer --- meta-poky/conf/distro/include/poky-distro-alt-test-config.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc b/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc index da9199dcd4d..e48a56148a8 100644 --- a/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc +++ b/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc @@ -6,3 +6,6 @@ PREFERRED_VERSION_linux-yocto = "6.12%" # Ensure the kernel nfs server is enabled KERNEL_FEATURES:append:pn-linux-yocto = " features/nfsd/nfsd-enable.scc" + +# Use the FIT image for the beaglebone reference hardware just for testing purpose +FIT_IMAGE_KERNEL = "1"