[U-Boot] [PATCH] Allow imxtract to extract part of script image.

p.aubert at staubli.com p.aubert at staubli.com
Wed Sep 16 08:29:11 CEST 2015


From: Pierre Aubert <p.aubert at staubli.com>

Scripts are multi-file images, the imxtract command should handle them
in the same manner.

Signed-off-by: Pierre Aubert <p.aubert at staubli.com>
---
 common/cmd_ximg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index 64b9186..abd94ec 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -87,7 +87,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 		image_print_contents(hdr);
 #endif
 
-		if (!image_check_type(hdr, IH_TYPE_MULTI)) {
+		if (!image_check_type(hdr, IH_TYPE_MULTI) &&
+		    !image_check_type(hdr, IH_TYPE_SCRIPT)) {
 			printf("Wrong Image Type for %s command\n",
 					cmdtp->name);
 			return 1;
-- 
1.7.6.5



More information about the U-Boot mailing list