Browse Source

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>
Jagannadha Sutradharudu Teki 12 years ago
parent
commit
cee84e8257
1 changed files with 4 additions and 3 deletions
  1. 4 3
      common/image.c

+ 4 - 3
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));
 		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);
 		fit_image_get_os(fit, image_noffset, &os);
 		printf("%s  OS:           %s\n", p, genimg_get_os_name(os));
 		printf("%s  OS:           %s\n", p, genimg_get_os_name(os));
 	}
 	}
 
 
 	if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE) ||
 	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);
 		ret = fit_image_get_load(fit, image_noffset, &load);
 		printf("%s  Load Address: ", p);
 		printf("%s  Load Address: ", p);
 		if (ret)
 		if (ret)
@@ -2057,7 +2057,8 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
 			printf("0x%08lx\n", load);
 			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);
 		fit_image_get_entry(fit, image_noffset, &entry);
 		printf("%s  Entry Point:  ", p);
 		printf("%s  Entry Point:  ", p);
 		if (ret)
 		if (ret)