NAND Partition Layout
▪PRELOADER_RAW
-–Handles all the download and secure boot procedures
▪PRO_INFO
_RAW
–-Storeproduct info or customization data
▪NVRAM
_RAW
–-Storesthe hardware related information, such as calibration data, MAC address, IMEI …etc.
▪PROTECT_F
_YAFFS2
–-StoreSIM Lock data
▪PROTECT_S_YAFFS2
–-StoreSIM Lock data copy
▪SECCFG and SEC_RO
_RAW
–-Reservedfor the security platform used
▪UBOOT
_RAW
–-Second loader image
–-Handles most hardware initializations and bring-upentire Linux kernel
▪BOOTIMG_RAW
–-
L
inux kernel image and it’s root file system
▪Recovery_RAW
–-Recoverykernel image and it’s root file system
–-Handlesall the system recovery and firmware update functionalities
▪Misc
_RAW
–-Usedfor the recovery procedure (power loss)
▪Logo
_RAW
–-Boot-uplogo image
▪EXPDB
_RAW
–-Usedto store the kernel panic debug messages
▪System (Android)_UBIFS
–-Androidsystem image
▪Cache_UBIFS
–-For Android internal used
–-StoreAndroid internal cache data or web cache data
▪USRDATA_UBIFS
–-Used for Android system to store user data such asuser contacts, settings, installed applications … etc.
▪BMTPOOL
_RAW
–-StorePMT(partitionmanager table)and BMT ( Bad block mapping table)
note:type: partition的file system类型。
–大小写敏感。合法的值包括:Rawdata/ EXT4 /FAT /F2FS /UBIFS / YAFFS2
eMMC Partition Management
▪
4Default Areas of Memory Device
–2 x Boot AreaPartitions for Booting
–1 x Replay ProtectedMemory Block Area Partition
–1 x User Data Area
▪Scatter File Mapping
▪emmc sheet for eMMC project
▪相比NAND 的partition layout,EMMC上多出了三个分区,介绍如下:
MBR:A master bootrecord(MBR) contains a partition table describing the location, sizes, andother attributes of linear regions referred to as partitions for EXT4 filesystem.
FAT:Internal sdcard.
OTP:One Time Progaming region, controlled by macro.
各个域的含义
1,
partition_name:
–
全为大写字母,实际partition layout中的partition数目和partition table中的有可能不一致
2,type: partition的file system类型
–
大小写敏感,合法的值包括:Rawdata/ EXT4 /FAT /F2FS /UBIFS / YAFFS2
3,size_KB:
–分为eng build和user build,相同的值可以合并。单位为KB。
–0表示自动占满剩下的空间。
–NA表示实际partition layout中没有该partition。
–支持by project修改partition的值
–支持auto alignmentfeature
•自动调整partition layout,保证ANDROID/CACHE/USRDATA/FAT的start address 8MB对齐。
如果上述partitionstart address没有对齐,则会自动将未对齐partition的前一个partition的size_KB扩大,保证对齐
▪region:
–
emmc
sheet
:表示
partition
出于哪个
eMMC
physical region
。合法值包括:
EMMC_BOOT_1 / EMMC_USER
。
nandsheet: 合法值仅为NAND_USER
5,Reserved: 表示是否reserved partition
–
合法值为
Y
和
N
。
–
reserved partition
的起始地址表示该
partition
起始地址到
physical storage device
尾部
的距离。
reserved partition只能处于partition layout的末尾,且不能通过dumcharAPI访问
6,Download:表示在flash download时是否有bin file需要download到partition中
-N表示不需要download,强制设置Download_File域的值为NONE,ignore表格中的值
7,
Download_File:表示download到partition中的binary file的名字
–NONE表示不需要download,填写。
–AUTO表示系统会根据partition name自动生成binary file的名字
•rawpartition:小写partition_name.bin
•有filesystem的partition:小写partition_name.img
▪FastBoot_Erase:表示fastboot是否有权限erase该partition
▪FastBoot_Download:表示fastboot是否有权限download该partition
▪Download_File:表示download到partition中的binary file的名字
–NONE表示不需要download,填写。
–AUTO表示系统会根据partition name自动生成binary file的名字
•rawpartition:小写partition_name.bin
•有filesystem的partition:小写partition_name.img
▪FastBoot_Erase:表示fastboot是否有权限erase该partition
▪FastBoot_Download:表示fastboot是否有权限download该partition