[U-Boot] [PATCH 1/1] common: add cache flush to imxtract function

Pieter Voorthuijsen pieter.voorthuijsen at prodrive-technologies.com
Mon Jan 12 16:23:18 CET 2015


A cache flush is required when an image is extracted that is required on another core.

Signed-off-by: Pieter Voorthuijsen <pieter.voorthuijsen at prodrive-technologies.com>
---
 common/cmd_ximg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index ae2714d..64b9186 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -247,6 +247,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 		puts("OK\n");
 	}
 
+	flush_cache(dest, len);
+
 	setenv_hex("fileaddr", data);
 	setenv_hex("filesize", len);
 
-- 
1.7.10.4



More information about the U-Boot mailing list