From patchwork Thu Dec 3 14:30:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 107207 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.msgproc02-g2.15324.1796308258583697197 for ; Thu, 03 Dec 2026 06:30:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=jPRAECrN; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.228, mailfrom: fm-1329275-2026120314305591bf53ff3e00020705-mvooaz@rts-flowmailer.siemens.com) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 2026120314305591bf53ff3e00020705 for ; Thu, 03 Dec 2026 15:30:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=1ocV8yaq0j63SrP+1O2XP19KeuRtcXek8PUC4VFFVhw=; b=jPRAECrNzE9fl6WlTglSx34uI9NlzZmpH9O2+/sM+pScl4ZQo6T07Yd+SKYhDO6JcT5zPD kCUrd233P6YreeEwCP97fKCpPE01YsQ2MjjLGXlVs3+UDkekNywT0oz5LWudEyRKp5PcsHqN /0aTXSt7yp64tivcVJy9qYhUYCjhPDG3jm+0eio5cG/7g0fYteVyg3WfB/3YCR2ix0LtYKoo CbvC292jlO/4/9LB/FlW92UsafuCwra1ZgWVmi9fT8R0urTg1wn9q3XK/AzXNSQOUkeoi4vw BbzZTuuIVVqAp9zz2FLGQUTv5YIcYML3AUo8m+PSU7yOZGXMAetMA0KA==; From: AdrianF To: openembedded-core@lists.openembedded.org Cc: marex@nabladev.com, Adrian Freihofer Subject: [PATCH 3/8] oe-selftest: fitimage: avoid overlapping load regions in initramfs bundle test Date: Thu, 3 Dec 2026 15:30:06 +0100 Message-ID: <20261203143044.592073-4-adrian.freihofer@siemens.com> In-Reply-To: <20261203143044.592073-1-adrian.freihofer@siemens.com> References: <20261203143044.592073-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 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 14:31:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251905 From: Adrian Freihofer test_fit_image_sign_initramfs_bundle loads the kernel at 0x80000000 and the DTB at 0x82000000. With the bundled initramfs the qemuarm64 kernel is about 40 MiB and overlaps the DTB: kernel-1: [0x80000000 - 0x82773200] fdt-foundation-v8.dtb: [0x82000000 - 0x820014a7] Such a FIT image would corrupt the DTB when booted. Newer mkimage detects this since U-Boot commit 21bb6417641c ("tools: mkimage: detect overlapping load regions in FIT configurations") and fails. Load the DTB at 0x88000000 to leave 128 MiB for the kernel. Signed-off-by: Adrian Freihofer --- meta/lib/oeqa/selftest/cases/fitimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/fitimage.py b/meta/lib/oeqa/selftest/cases/fitimage.py index 5db1f0940a..7e39d60929 100644 --- a/meta/lib/oeqa/selftest/cases/fitimage.py +++ b/meta/lib/oeqa/selftest/cases/fitimage.py @@ -1440,7 +1440,7 @@ UBOOT_SIGN_KEYNAME = "qemuarmkey" UBOOT_SIGN_KEYDIR ?= "${DEPLOY_DIR_IMAGE}" UBOOT_ENTRYPOINT = "0x80000000" UBOOT_LOADADDRESS = "0x80000000" -UBOOT_DTB_LOADADDRESS = "0x82000000" +UBOOT_DTB_LOADADDRESS = "0x88000000" UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000" UBOOT_MKIMAGE_KERNEL_TYPE = "kernel" UBOOT_EXTLINUX = "0"