summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsanshan zhang <sanshan.zhang@nxp.com>2017-06-08 10:41:38 +0800
committerChen Guoyin <guoyin.chen@nxp.com>2017-07-10 15:07:56 +0800
commit893ec7807779aa34ce49866f03e49c592fff9543 (patch)
treefa657c380ae0d34b1b186dbc38ef1d4cf84ba819 /include
parente095bd4e264aa171bb7e91196ac82a989e7b9649 (diff)
downloadu-boot-imx-893ec7807779aa34ce49866f03e49c592fff9543.zip
u-boot-imx-893ec7807779aa34ce49866f03e49c592fff9543.tar.gz
u-boot-imx-893ec7807779aa34ce49866f03e49c592fff9543.tar.bz2
MA-9702-2 [Android] Enable booti for android arm64.
boot_addr_start for booti should be the addr of Image rather than boot.img, so need read Image into hdr->kernel_addr. change the offset for bootloader. booti do not call android_image_get_kernel to init android env. booti can't load boot.img, so it can't init android env. init android env through android_image_get_kernel. Change-Id: Ifb990ee9c5710ce7bd5fa9a0d4221dcb0e52d341 Signed-off-by: sanshan zhang <sanshan.zhang@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/android_image.h12
-rw-r--r--include/image.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/include/android_image.h b/include/android_image.h
index 094d60a..1c70bf8 100644
--- a/include/android_image.h
+++ b/include/android_image.h
@@ -66,4 +66,16 @@ struct andr_img_hdr {
* 6. if second_size != 0: jump to second_addr
* else: jump to kernel_addr
*/
+struct header_image {
+ uint32_t code0; /* Executable code */
+ uint32_t code1; /* Executable code */
+ uint64_t text_offset; /* Image load offset, LE */
+ uint64_t image_size; /* Effective Image size, LE */
+ uint64_t res1; /* reserved */
+ uint64_t res2; /* reserved */
+ uint64_t res3; /* reserved */
+ uint64_t res4; /* reserved */
+ uint32_t magic; /* Magic number */
+ uint32_t res5;
+};
#endif
diff --git a/include/image.h b/include/image.h
index dd4c8e3..54a5d8e 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1245,6 +1245,7 @@ int android_image_get_fdt(const struct andr_img_hdr *hdr,
ulong android_image_get_end(const struct andr_img_hdr *hdr);
ulong android_image_get_kload(const struct andr_img_hdr *hdr);
void android_print_contents(const struct andr_img_hdr *hdr);
+bool image_arm64(void *images);
#endif /* CONFIG_ANDROID_BOOT_IMAGE */