summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHridya Valsaraju2018-05-30 12:57:18 -0500
committerHridya Valsaraju2018-05-30 12:58:14 -0500
commitd0ab4e3701dcec866cb05f4d2a122fbbcabf61cc (patch)
tree62d206fd9e8104ac02c064ceb5eda10a174164a0 /mkbootimg
parent420fe5fe9010081cbe61774ac661c0d5e7f09114 (diff)
downloadplatform-system-core-d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc.tar.gz
platform-system-core-d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc.tar.xz
platform-system-core-d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc.zip
Correct comment in boot image header
Test: make Bug: 80207223 Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
Diffstat (limited to 'mkbootimg')
-rw-r--r--mkbootimg/include/bootimg/bootimg.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/mkbootimg/include/bootimg/bootimg.h b/mkbootimg/include/bootimg/bootimg.h
index 406e20832..bce308b02 100644
--- a/mkbootimg/include/bootimg/bootimg.h
+++ b/mkbootimg/include/bootimg/bootimg.h
@@ -111,7 +111,7 @@ typedef struct boot_img_hdr_v0 boot_img_hdr;
111 111
112struct boot_img_hdr_v1 : public boot_img_hdr_v0 { 112struct boot_img_hdr_v1 : public boot_img_hdr_v0 {
113 uint32_t recovery_dtbo_size; /* size in bytes for recovery DTBO image */ 113 uint32_t recovery_dtbo_size; /* size in bytes for recovery DTBO image */
114 uint64_t recovery_dtbo_offset; /* physical load addr */ 114 uint64_t recovery_dtbo_offset; /* offset to recovery dtbo in boot image */
115 uint32_t header_size; 115 uint32_t header_size;
116} __attribute__((packed)); 116} __attribute__((packed));
117 117
@@ -138,11 +138,14 @@ struct boot_img_hdr_v1 : public boot_img_hdr_v0 {
138 * 1. kernel and ramdisk are required (size != 0) 138 * 1. kernel and ramdisk are required (size != 0)
139 * 2. recovery_dtbo is required for recovery.img in non-A/B devices(recovery_dtbo_size != 0) 139 * 2. recovery_dtbo is required for recovery.img in non-A/B devices(recovery_dtbo_size != 0)
140 * 3. second is optional (second_size == 0 -> no second) 140 * 3. second is optional (second_size == 0 -> no second)
141 * 4. load each element (kernel, ramdisk, second, recovery_dtbo) at 141 * 4. load each element (kernel, ramdisk, second) at
142 * the specified physical address (kernel_addr, etc) 142 * the specified physical address (kernel_addr, etc)
143 * 5. prepare tags at tag_addr. kernel_args[] is 143 * 5. If booting to recovery mode in a non-A/B device, extract recovery dtbo and
144 * apply the correct set of overlays on the base device tree depending on the
145 * hardware/product revision.
146 * 6. prepare tags at tag_addr. kernel_args[] is
144 * appended to the kernel commandline in the tags. 147 * appended to the kernel commandline in the tags.
145 * 6. r0 = 0, r1 = MACHINE_TYPE, r2 = tags_addr 148 * 7. r0 = 0, r1 = MACHINE_TYPE, r2 = tags_addr
146 * 7. if second_size != 0: jump to second_addr 149 * 8. if second_size != 0: jump to second_addr
147 * else: jump to kernel_addr 150 * else: jump to kernel_addr
148 */ 151 */