mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
![]() A FIT image which is NOT using -E when created by mkimage - that is with image data within the FIT - will fail to apply FDTO if the base FDT image node does not specify a load property (which points to an address in DRAM). This is because we check that the FDT address we want to apply overlay to (i.e. modify and likely increase in size) is not inside the FIT and give up otherwise. This is assumed necessary because we may then overwrite other data when applying in-place. However, we can do better than giving up: relocating the FDT in another place in DRAM where it's safe to increase its size and apply FDTOs. While at it, do not discriminate anymore on whether the data is within the FIT data address space - that is FIT images created with mkimage -E - as that still may be susceptible to unintended data overwrites as mkimage -E simply concatenates all blobs after the FIT. If the FDT blob isn't the last, it'll result in overwriting later blobs when resizing. The side effect is that the load property in the FIT is only temporarily used to load the FDT but then relocated right before we start applying overlays. Suggested-by: Marek Vasut <marex@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> |
||
---|---|---|
.. | ||
android_ab.c | ||
boot_fit.c | ||
bootdev-uclass.c | ||
bootflow.c | ||
bootflow_internal.h | ||
bootflow_menu.c | ||
bootm.c | ||
bootm_os.c | ||
bootmeth-uclass.c | ||
bootmeth_android.c | ||
bootmeth_android.h | ||
bootmeth_cros.c | ||
bootmeth_cros.h | ||
bootmeth_efi.c | ||
bootmeth_efi_mgr.c | ||
bootmeth_extlinux.c | ||
bootmeth_pxe.c | ||
bootmeth_qfw.c | ||
bootmeth_sandbox.c | ||
bootmeth_script.c | ||
bootretry.c | ||
bootstd-uclass.c | ||
cedit.c | ||
common_fit.c | ||
expo.c | ||
expo_build.c | ||
expo_build_cb.c | ||
fdt_region.c | ||
fdt_simplefb.c | ||
fdt_support.c | ||
image-android-dt.c | ||
image-android.c | ||
image-board.c | ||
image-cipher.c | ||
image-fdt.c | ||
image-fit-sig.c | ||
image-fit.c | ||
image-host.c | ||
image-pre-load.c | ||
image-sig.c | ||
image.c | ||
Kconfig | ||
Makefile | ||
prog_boot.c | ||
pxe_utils.c | ||
scene.c | ||
scene_internal.h | ||
scene_menu.c | ||
scene_textline.c | ||
upl_common.c | ||
upl_common.h | ||
upl_read.c | ||
upl_write.c | ||
vbe.c | ||
vbe_abrec.c | ||
vbe_abrec.h | ||
vbe_abrec_fw.c | ||
vbe_common.c | ||
vbe_common.h | ||
vbe_request.c | ||
vbe_simple.c | ||
vbe_simple.h | ||
vbe_simple_fw.c | ||
vbe_simple_os.c |