Fix imxtract command not being compiled-in despite CONFIG_CMD_XIMG being in
include/config_cmd_default.h. Fix few warnings and handling of new format
images.
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
* MA 02111-1307 USA
*/
-#if defined(CONFIG_CMD_XIMG)
/*
* Multi Image extract
ulong addr = load_addr;
ulong dest = 0;
ulong data, len, count;
- int i, verify;
+ int verify;
int part = 0;
char pbuf[10];
- char *s;
image_header_t *hdr;
#if defined(CONFIG_FIT)
- const char *uname;
+ const char *uname = NULL;
const void* fit_hdr;
int noffset;
const void *fit_data;
}
/* get subimage node offset */
- noffset = fit_image_get_node (fit_hdr, fit_uname);
+ noffset = fit_image_get_node (fit_hdr, uname);
if (noffset < 0) {
printf ("Can't find '%s' FIT subimage\n", uname);
return 1;
return 1;
}
- data = (ulong *)fit_data;
+ data = (ulong)fit_data;
len = (ulong)fit_len;
break;
#endif
" - extract <uname> subimage from FIT image at <addr> and copy to <dest>\n"
#endif
);
-
-#endif