@@ -244,6 +244,9 @@ static int do_iminfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
static int image_info(ulong addr)
{
+#if defined(CONFIG_FIT)
+ int cfg_noffset;
+#endif
void *hdr = (void *)addr;
printf("\n## Checking Image at %08lx ...\n", addr);
@@ -294,6 +297,20 @@ static int image_info(ulong addr)
return 1;
}
+ cfg_noffset = fit_conf_get_node(hdr, NULL);
+ if (!cfg_noffset) {
+ printf("Could not find configuration node: %s\n",
+ fdt_strerror(cfg_noffset));
+ return 1;
+ }
+
+ puts(" Hash for default configuration: ");
+ if (fit_config_verify(hdr, cfg_noffset)) {
+ puts("Unable to verify default fit config\n");
+ return 1;
+ }
+ puts("\n");
+
return 0;
#endif
default: