All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmd: bootz: fix device-tree overlap test
@ 2020-07-28 14:57 Baruch Siach
  2020-08-05 20:28 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2020-07-28 14:57 UTC (permalink / raw)
  To: u-boot

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>
---
 cmd/bootz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/bootz.c b/cmd/bootz.c
index 1c8b0cf89f92..7556cd2752a8 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;
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] cmd: bootz: fix device-tree overlap test
  2020-07-28 14:57 [PATCH] cmd: bootz: fix device-tree overlap test Baruch Siach
@ 2020-08-05 20:28 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2020-08-05 20:28 UTC (permalink / raw)
  To: u-boot

On Tue, Jul 28, 2020 at 05:57:48PM +0300, Baruch Siach wrote:

> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200805/a4c6e02b/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-05 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 14:57 [PATCH] cmd: bootz: fix device-tree overlap test Baruch Siach
2020-08-05 20:28 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.