[PATCH 08/11] boot: fit: keep the load message for RAM-backed images
Daniel Golle
daniel at makrotopia.org
Mon Sep 28 17:05:45 PDT 2026
The "Loading ... from ... to ..." line is suppressed whenever
CONFIG_IMAGEMAP is built in and the source happens to equal the load
address. The test is a build-time one, so a board that enables imagemap
but boots a FIT from RAM loses the line as well.
Suppress it only when an imagemap is actually in use, which is the one
case where the data was read straight to its load address and there is
no copy to report.
Fixes: 46d32e38ee4e ("boot: fit: support on-demand loading in fit_image_load()")
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
boot/image-fit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/boot/image-fit.c b/boot/image-fit.c
index 5d86342852c..aacd3fa3622 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2468,7 +2468,8 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
return -EXDEV;
}
- if (!CONFIG_IS_ENABLED(IMAGEMAP) || data != load)
+ /* A storage-backed image was read straight to its load address */
+ if (!images->imagemap || data != load)
printf(" Loading %s from 0x%08lx to 0x%08lx\n",
prop_name, data, load);
} else {
--
2.55.0
More information about the openwrt-devel
mailing list