[PATCH v3 1/2] boot: android: Always use 8-byte aligned DT with libfdt
Mattijs Korpershoek
mkorpershoek at kernel.org
Fri Dec 5 17:22:34 CET 2025
Hi,
On Wed, 19 Nov 2025 20:32:51 +0100, Marek Vasut wrote:
> Newer versions of libfdt strictly check whether the FDT blob
> passed to them is at 8-byte aligned offset, if it is not, then
> the library fails checks with -FDT_ERR_ALIGNMENT . Currently,
> android_image_print_dtb_contents() passed FDT directly mapped
> from abootimg to libfdt, and this FDT is not always aligned to
> 8-byte offset. Specifically, the FDTs are somewhat packed in
> the abootimg, therefore if the first FDT blob is e.g. 0xfd bytes
> long, then the next FDT blob ends up at 0xfd offset, which is
> not 8-byte aligned.
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu-next)
[1/2] boot: android: Always use 8-byte aligned DT with libfdt
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/2da3af2f9ee0dbacaf26e95e1ae5261445f1a43c
[2/2] test/py: android: Point fdt command to aligned addresses
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/42ee514ed049d5e689e39bb4a8b6b5fb519aa3be
--
Mattijs
More information about the U-Boot
mailing list