summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2020-07-28 17:57:48 +0300
committerTom Rini <trini@konsulko.com>2020-08-05 08:18:34 -0400
commitf2d58f3bdad30ac088f76cce38a2e64a6c640f19 (patch)
treead099e8cf26507d987dcb5d72d9ce23bfe51ddda
parentaaa91a4e4b8a5d74f1317e18aa47d2a7a72e0c43 (diff)
cmd: bootz: fix device-tree overlap test
The address of the kernel image is stored in images->ep. zi_start is the offset of execution entry in the image, which is usually 0 for ARM zImage. Fixes boot error when ftd is stored near RAM address 0x0: ERROR: FDT image overlaps OS image (OS=0x0..0x5fd608) Fixes: fbde7589ce30 ("common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image") Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
-rw-r--r--cmd/bootz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootz.c b/cmd/bootz.c
index 1c8b0cf89f..7556cd2752 100644
--- a/cmd/bootz.c
+++ b/cmd/bootz.c
@@ -54,7 +54,7 @@ static int bootz_start(struct cmd_tbl *cmdtp, int flag, int argc,
* Handle the BOOTM_STATE_FINDOTHER state ourselves as we do not
* have a header that provide this informaiton.
*/
- if (bootm_find_images(flag, argc, argv, zi_start, zi_end - zi_start))
+ if (bootm_find_images(flag, argc, argv, images->ep, zi_end - zi_start))
return 1;
return 0;