Advertisement

Android系统中boot.img的生成及其结构

阅读量:

目录

          1. 制作 boot.img
        1. boot.img 的组成结构
        • 2.1. boot.img 的组成结构
        • 2.2. 文件头部信息 boot_img_hdr
        • 2.3. mkbootimg 工具源代码简述

1. 生成 boot.img

首先,在Android源代码包中,位于./build/core/Makefile文件内,存在相关代码段。根据注释内容可知,简而言之,boot image实质上是由其他各类image组合而成的集合。

复制代码
    # the boot image, which is a collection of other images.
    INTERNAL_BOOTIMAGE_ARGS := \
    	$(addprefix --second ,$(INSTALLED_2NDBOOTLOADER_TARGET)) \
    	--kernel $(INSTALLED_KERNEL_TARGET) \
    	--ramdisk $(INSTALLED_RAMDISK_TARGET)
    
    INTERNAL_BOOTIMAGE_FILES := $(filter-out --%,$(INTERNAL_BOOTIMAG

全部评论 (0)

还没有任何评论哟~