]> git.ipfire.org Git - thirdparty/u-boot.git/commit
boot: Assure FDT is always at 8-byte aligned address
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 13 Nov 2025 11:54:51 +0000 (12:54 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Nov 2025 16:20:17 +0000 (10:20 -0600)
commit8fbcc0e0e839a8e25f636c76e59311033d3817b5
tree3e854082bbeebbe188f828d6e5df66f5a2bde293
parent4a4871e3dc38f3f771d2713b805e79e6191b4297
boot: Assure FDT is always at 8-byte aligned address

The fitImage may contain FDT at 4-byte aligned address, because alignment
of DT tags is 4 bytes. However, libfdt and also Linux expects DT to be at
8-byte aligned address. Make sure that the DTs embedded in fitImages are
always used from 8-byte aligned addresses. In case the DT is decompressed,
make sure the target buffer is 8-byte aligned. In case the DT is only
loaded, make sure the target buffer is 8-byte aligned too.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
boot/image-fit.c