diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index d033c15b62..afaf854c81 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -144,7 +144,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } - if (fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) + if (!fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) && (argc < 4)) { printf("Must specify load address for %s command " "with compressed image\n", diff --git a/include/configs/ipq40xx.h b/include/configs/ipq40xx.h index d110ed4426..acf802cfbc 100644 --- a/include/configs/ipq40xx.h +++ b/include/configs/ipq40xx.h @@ -124,6 +124,7 @@ typedef struct { #define CONFIG_INITRD_TAG 1 #define CONFIG_SYS_HUSH_PARSER #define CONFIG_SYS_NULLDEV +#define CONFIG_CMD_XIMG /* * USB Support diff --git a/include/configs/ipq806x.h b/include/configs/ipq806x.h index 8d7e5996be..ef060340f1 100644 --- a/include/configs/ipq806x.h +++ b/include/configs/ipq806x.h @@ -153,6 +153,7 @@ #define CONFIG_FIT #endif #define CONFIG_SYS_NULLDEV +#define CONFIG_CMD_XIMG /*Support for Compressed DTB image*/ #ifdef CONFIG_FIT diff --git a/include/configs/ipq807x.h b/include/configs/ipq807x.h index 4e10a0f935..2a4c3ebca3 100644 --- a/include/configs/ipq807x.h +++ b/include/configs/ipq807x.h @@ -163,6 +163,7 @@ extern loff_t board_env_offset; */ #define CONFIG_OF_LIBFDT 1 #define CONFIG_SYS_HUSH_PARSER +#define CONFIG_CMD_XIMG /* NSS firmware loaded using bootm */ #define CONFIG_BOOTCOMMAND "bootipq"