[U-Boot] [PATCH 2/3] cmd: booti: Store OS start and end info in images structure

Lokesh Vutla lokeshvutla at ti.com
Mon Oct 7 08:22:16 UTC 2019


Store the start and end of the OS image that is loaded in images
structure.

Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
 cmd/booti.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/booti.c b/cmd/booti.c
index c36b0235df..841eff10d1 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -48,6 +48,9 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
 	}
 
 	images->ep = relocated_addr;
+	images->os.start = relocated_addr;
+	images->os.end = relocated_addr + image_size;
+
 	lmb_reserve(&images->lmb, images->ep, le32_to_cpu(image_size));
 
 	/*
-- 
2.23.0



More information about the U-Boot mailing list