[PATCH v6 1/1] image: fit: Apply overlays using aligned writable FDT copies

Tom Rini trini at konsulko.com
Mon Feb 16 20:38:59 CET 2026


On Thu, 12 Feb 2026 14:34:09 -0700, James Hilliard wrote:

> libfdt expects FDT/DTO blobs to be 8-byte aligned. When loading the
> base FDT or overlays from a FIT, the mapped buffer may be unaligned,
> which can break fdt_open_into() on strict-alignment architectures.
> 
> boot_get_fdt_fit() relocates the base FDT with boot_relocate_fdt()
> before applying overlays. That uses the bootm memory map and can
> overlap with the FIT buffer when the FIT is loaded into RAM,
> corrupting data needed to load the kernel and ramdisk.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] image: fit: Apply overlays using aligned writable FDT copies
      commit: 5ebf0c55a23ad740da1ec191ac157c490f207e0f
-- 
Tom




More information about the U-Boot mailing list