]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: bootz: fix device-tree overlap test
authorBaruch Siach <baruch@tkos.co.il>
Tue, 28 Jul 2020 14:57:48 +0000 (17:57 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 5 Aug 2020 12:18:34 +0000 (08:18 -0400)
commitf2d58f3bdad30ac088f76cce38a2e64a6c640f19
treead099e8cf26507d987dcb5d72d9ce23bfe51ddda
parentaaa91a4e4b8a5d74f1317e18aa47d2a7a72e0c43
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>
cmd/bootz.c