summaryrefslogtreecommitdiffstats
path: root/mkbootimg/bootimg.h
diff options
context:
space:
mode:
authorDavid Ng <dave@codeaurora.org>2012-07-27 17:15:03 -0700
committerBrandon McAnsh <brandon.mcansh@gmail.com>2015-10-08 11:23:31 -0400
commit396224f2caf2fadf7b35239e7daf87139824e3e7 (patch)
tree6100f9226d6b26a9d42d957c54259db53d75a286 /mkbootimg/bootimg.h
parentbb0c180e62703c2068a1b2c9f8ba6d634bf1553c (diff)
downloadsystem_core-396224f2caf2fadf7b35239e7daf87139824e3e7.zip
system_core-396224f2caf2fadf7b35239e7daf87139824e3e7.tar.gz
system_core-396224f2caf2fadf7b35239e7daf87139824e3e7.tar.bz2
mkbootimg: Add --dt parameter to specify DT image
New optional --dt parameter to specify a kernel device tree image. Change-Id: Ie29a11cbf4138426bfd19ae486d69a5fcbd8f442
Diffstat (limited to 'mkbootimg/bootimg.h')
-rw-r--r--mkbootimg/bootimg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkbootimg/bootimg.h b/mkbootimg/bootimg.h
index 5ab6195..8ece2eb 100644
--- a/mkbootimg/bootimg.h
+++ b/mkbootimg/bootimg.h
@@ -43,6 +43,7 @@ struct boot_img_hdr
uint32_t tags_addr; /* physical addr for kernel tags */
uint32_t page_size; /* flash page size we assume */
+ uint32_t dt_size; /* device tree in bytes */
uint32_t unused[2]; /* future expansion: should be 0 */
uint8_t name[BOOT_NAME_SIZE]; /* asciiz product name */
@@ -66,10 +67,13 @@ struct boot_img_hdr
** +-----------------+
** | second stage | o pages
** +-----------------+
+** | device tree | p pages
+** +-----------------+
**
** n = (kernel_size + page_size - 1) / page_size
** m = (ramdisk_size + page_size - 1) / page_size
** o = (second_size + page_size - 1) / page_size
+** p = (dt_size + page_size - 1) / page_size
**
** 0. all entities are page_size aligned in flash
** 1. kernel and ramdisk are required (size != 0)