diff mbox series

[3/8] oe-selftest: fitimage: avoid overlapping load regions in initramfs bundle test

Message ID 20261203143044.592073-4-adrian.freihofer@siemens.com
State Under Review
Headers show
Series uboot-sign: prepare for HSM-backed FIT signing | expand

Commit Message

AdrianF Dec. 3, 2026, 2:30 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

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 <adrian.freihofer@siemens.com>
---
 meta/lib/oeqa/selftest/cases/fitimage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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"