summaryrefslogtreecommitdiff
path: root/cmd/bootm.c
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@amarulasolutions.com>2016-06-10 19:54:37 +0200
committerTom Rini <trini@konsulko.com>2016-06-24 17:23:07 -0400
commit4f1318b29c7a20a694d02247917a6000f08dec9a (patch)
tree5078531cd70d3f752d58447299f105af0b9b50c3 /cmd/bootm.c
parentf8f9107d97b849afe69ca86e7abd8d1748ea7acd (diff)
downloadu-boot-imx-4f1318b29c7a20a694d02247917a6000f08dec9a.zip
u-boot-imx-4f1318b29c7a20a694d02247917a6000f08dec9a.tar.gz
u-boot-imx-4f1318b29c7a20a694d02247917a6000f08dec9a.tar.bz2
common: image: minimal android image iminfo support
We already support iminfo for other images. The idea of this patch is start to have a minimal support for android image format. We still need to print id[] array Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/bootm.c')
-rw-r--r--cmd/bootm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/bootm.c b/cmd/bootm.c
index f5e91f4..16fdea5 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -275,6 +275,12 @@ static int image_info(ulong addr)
puts("OK\n");
return 0;
#endif
+#if defined(CONFIG_ANDROID_BOOT_IMAGE)
+ case IMAGE_FORMAT_ANDROID:
+ puts(" Android image found\n");
+ android_print_contents(hdr);
+ return 0;
+#endif
#if defined(CONFIG_FIT)
case IMAGE_FORMAT_FIT:
puts(" FIT image found\n");