转自: http://cache.baiducontent.com/c?m=n2F9tWNTq3bABpgqBR7Rrnq7eJEBV0b-CYkrdH_ovC7GbC2ir5dWTxjAm4AY0et-bhlTXLonho7jd4FkJf_vKSDR5O3CN4gb4ortWKt2smBJDHXviGRdKNAjHyFI5BQr&p=8d79dc16d9c15fed08e2977f0b5182&newp=8b2a970f86cc42ae5ef6cf211c7a8d231610db2151d6d1126b82c825d7331b001c3bbfb422201104d3c5786103a94a59e9f03171330923a3dda5c91d9fb4c57479c2&s=c4ca4238a0b92382&user=baidu&fm=sc&query=devcfg%2Embn&qid=918dfdf200012565&p1=4

L1

abl.img

aop.img

bluetooth.img

boot.img

cmnlib.img

cmnlib64.img

devcfg.img

dsp.img

dtbo.img

fw_4j1ed.img

fw_4u1ea.img

hyp.img

keymaster.img

LOGO.img

ls.txt

modem.img

oem_stanvbk.img

qupfw.img

storsec.img

system.img

tz.img

vbmeta.img

vendor.img

xbl.img

xbl_config.img

L2

boot:boot 分区包含通过 m****ootimg 组合在一起的内核映像和 RAM 磁盘。为了直接刷写内核而不刷写新的 boot 分区,可以使用虚拟分区:

kernel:kernel 虚拟分区仅覆盖内核(zImage、zImage-dtb、Image.gz-dtb),方法是写入新的映像来覆盖旧的映像。为此,它会确定 eMMC 中现有内核映像的起始位置并将新内核映像复制到该位置。请记住,新内核映像可能会大于现有内核映像。引导加载程序可以通过移动其后的任何数据来腾出空间或放弃出错的操作。如果提供的开发内核不兼容,则可能需要使用相关的内核模块更新 dtb 分区(如果存在)、vendor 分区或 system 分区。

ramdisk:ramdisk 虚拟分区通过将新映像写入旧磁盘来仅覆盖 RAM 磁盘。为此,它会确定 eMMC 中现有 ramdisk.img 的起始位置并将新 RAM 磁盘映像复制到该位置。请记住,新 RAM 磁盘映像可能会大于现有 RAM 磁盘映像。引导加载程序可以通过移动其后的任何数据来腾出空间或放弃出错的操作。

system:system 分区主要包含 Android 框架。

recovery:recovery 分区用于存储在 OTA 过程中启动的恢复映像。如果设备支持 A/B 更新,则恢复映像可以是启动映像中包含的 RAM 磁盘,而不是单独的映像。

cache:cache 分区用于存储临时数据,如果设备使用 A/B 更新,则可以不要此分区。cache 分区不需要可从引导加载程序写入,而只需要可清空。大小取决于设备类型和 userdata 分区的可用空间。目前,50MB 至 100MB 应该没问题。

misc:misc 分区供恢复映像使用,存储空间不能小于 4****。

userdata:userdata 分区包含用户安装的应用和数据,包括自定义数据。

metadata:如果设备被加密,则需要使用 metadata 分区,该分区的存储空间不能小于 16MB。

vendor:vendor 分区包含所有不可分发给 Android 开源项目 (AOSP) 的二进制文件。如果没有专有信息,则可以省略此分区。

radio:radio 分区包含无线装置映像。只有包含无线装置且在专用分区中包含无线装置专用软件的设备才需要此分区。

tos:tos 分区用于存储 Trusty 操作系统的二进制映像文件,仅在设备包含 Trusty 时使用。

L3

sbl1.mbn

烧录命令:fastboot flash sbl1 sbl1.bin

作用:second bootloader1的缩写,是在little kernel(lk)前启动,起到引导lk的作用,如果将该分区擦除,则设备表现为进入紧急下载模式,即,擦除该分区后,插入USB显示QDload端口。

rpm.mbn

烧录命令:fastboot flash rpm rpm.mbn

作用:电源管理器,是高通MSM平台另外加的一块芯片,虽然与AP芯片打包在一起,但其是一个独立的ARM Core。之所以加这个东西,就是要控制整个电源相关的sharedresources,比如ldo,clock。负责与SMP,MPM交互进入睡眠或者唤醒整个系统。

adspso.bin

烧录命令:fastboot flash dsp adspso.bin

作用:Partition for adsp dymanic loaders image

tz.mbn

烧录命令:fastboot flash tz tz.mbn

作用:是ARM TrustZone® 技术是系统范围的安全方法,基于安全需求和引导模式配置XPU,NAND MPU

cmnlib(_30).mbn 括号中的内容可能有,可能没

烧录命令:fastboot flash cmnlib cmnlib_30.mbn

作用: Verified boot feature introduced in M needLK to load cmnlib corresponding partitions

km4.mbn

烧录命令:fastboot flash keymaster km4.mbn

作用:Verified boot feature introduced in M needs LK to load keymaster from corresponding partitions

devcfg.mbn

烧录命令:fastboot flash devcfg devcfg.mbn

作用:Partition needed by TZ for M upgrade

NON-HLOS.bin

烧录命令:fastboot flash modem NON-HLOS.bin

作用:modem image,是负责处理通讯协议相关的基带镜像

emmc_appsboot.mbn

烧录命令:fastboot flash aboot emmc_appsboot.mbn

作用:应用程序启动加载程序的分区

boot.img

烧录命令:fastboot flash boot boot.img

作用:由文件头(2k/4k)+kernel+ramdisk.img(根文件统)+dt.img(devicetree)组成,其中kernel对应于out\target\product\msm8909\obj\KERNEL_OBJ\arch\arm\boot下的zImage文件,和out\target\product\msm8909\kernel是同一个文件,只是被重新命名了,通过file zImage,可知zImage:Linux kernel ARM bootexecutable zImage(little-endian)

system.img

烧录命令:fastboot flash -S 256M system system.img(由于system.img太大,故用-S分段发送)

作用:android系统镜像文件

vendor.img

烧录命令: fastboot flash vendor vendor.img

作用:一般存放的是平台,第三方,非google的库,配置,app等文件

splash.img

烧录命令:fastboot flash splash splash.img

作用:开机动画

userdata.img

烧录命令:fastboot flash userdata userdata.img

作用:用户数据

L4

Label Purpose of this partition

Modem Partition for modem

Fsc Cookie partition to store Modem File System’s cookies.

Ssd Partition for ssd diag module. stores the encrypted RSA keys

sbl1 Partition for secondary boot loader

sbl1bak Back up Partition for secondary boot loader

Rpm Partition for rpm image

Rpmbak Back up Partition for rpm image

Tz Partition for tz image

tzbak Back up Partition for tz image

Hyp Partition for hypervisor image

hypbak Back up Partition for hypervisor image

DSP Partition for adsp dymanIC loaders image

modemst1 Copy of Modem File System (Encrypted)

modemst2 Copy of Modem File System (Encrypted)

DDR Partition for DDR.

Fsg Golden copy or backup of Modem File System (Encrypted). Also used to pre-populate the file system.

Sec Sec.dat contains fuse settings, mainly for secure boot and oem setting

splash The splash screen is displayed during the apps bootloader (also called the LK). The display driver in LK will read the splash image data from a separate eMMC partition named

            as ’splash’

aboot Partition for apps boot loader

abootbak Back up Partition for apps boot loader

boot This is the boot partition of your Android device,It includes the android kernel and the ramdisk.

recovery This is specially designed for backup. The recovery partition can be considered as an alternative boot partition

devinfo Device information including:iis_unlocked, is_tampered, is_verified, charger_screen_enabled, display_panel, bootloader_version, radio_version

           All these attirbutes are set based on some specific conditions and written on devinfo partition,.

system This partition contains the entire Android OS, other than the kernel and the ramdisk. This includes the Android GUI and all the system applications that come

           pre-installed on the device

cache This is the partition where Android stores frequently accessed data and app components

persist Partition entry for persist image. which contains data which shouldn’t be changed after the device shipped, for example: calibration data of chips(WIFI, bt, camera, etc.),

           certificates and other security related files. 

misc This partition contains miscellaneous system settings in form of on/off switches. These settings may include CID (Carrier or Region ID), USB configuration and

           certain hardware settings etc

keystore Partition for keystore service.

config Partition needed during display panel initialization. More info at Display_panel_configuration_in_Device_Tree

oem "It is meant for storing OEM specific info. Customer in this case can decide whether he wants to keep this partition or not typically reserved partitions are kept for future use

limits Partition to store LMh params on 8976 target. LMh (Limits management) driver in SBL writes the LMh HW trimmed data into separate partition

          and uses the same data for later reboots

mota Backup partition for M ota upgrade

devcfg Partition needed by TZ for M upgrades.

Dip Partition needed for SafeSwitch, feature (FR26255) designed to allow OEMs and carriers to address new smartphone theft bill issues.

mdtp Partition needed for SafeSwitch, feature (FR26255) designed to allow OEMs and carriers to address new smartphone theft bill issues.

userdata Partition for userdata image

cmnlib Verified boot feature introduced in M needLK to load cmnlib corresponding partitions

keymaster Verified boot feature introduced in M needs LK to load keymaster from corresponding partitions

syscfg Syscfg is internal testing for Vmin and CPR characterization

mcfg All MBNs place holder in flash. Specific MBN would be loaded by mcfg image based on the SIM/Carrier.

msadp used for modem debug policy

apdp used for persisting the debug policy. "Debug policy" is used to better support development and debug on secure/fuse-blown devices One instance of the debug policy

           will be signed for the AP

dpo This partition will store a policy override

标签: aosp

添加新评论