diff options
author | Jagannadha Sutradharudu Teki <402jagan@gmail.com> | 2012-07-27 22:02:22 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-09-02 17:39:15 +0200 |
commit | cee84e82576e00fb18b0134712ee8686bab36eaa (patch) | |
tree | 38ddd7ef16fba1d29d2f8f5bdc3ced5ee5de768d /common/image.c | |
parent | df930e9b3c6a644d1b0b50dce31fc9f4686925c2 (diff) | |
download | u-boot-cee84e82576e00fb18b0134712ee8686bab36eaa.tar.gz |
image/FIT: Add ramdisk load, entry address and OS tag inclusion
This patch adds support to include Load, Entry address and OS tag
of ramdisk on to FIT image through mkimage tool.
Signed-off-by: Jagannadha Sutradharudu Teki <402jagan@gmail.com>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/image.c b/common/image.c index 91954ac54b..70a112d36f 100644 --- a/common/image.c +++ b/common/image.c @@ -2042,13 +2042,13 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) printf("%s Architecture: %s\n", p, genimg_get_arch_name(arch)); } - if (type == IH_TYPE_KERNEL) { + if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_RAMDISK)) { fit_image_get_os(fit, image_noffset, &os); printf("%s OS: %s\n", p, genimg_get_os_name(os)); } if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE) || - (type == IH_TYPE_FIRMWARE)) { + (type == IH_TYPE_FIRMWARE) || (type == IH_TYPE_RAMDISK)) { ret = fit_image_get_load(fit, image_noffset, &load); printf("%s Load Address: ", p); if (ret) @@ -2057,7 +2057,8 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) printf("0x%08lx\n", load); } - if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE)) { + if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE) || + (type == IH_TYPE_RAMDISK)) { fit_image_get_entry(fit, image_noffset, &entry); printf("%s Entry Point: ", p); if (ret) |