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
–-Linux 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:
–emmcsheet:表示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
本文详细介绍了嵌入式系统的存储分区布局,包括NAND和eMMC存储介质上的分区配置。涉及预加载、安全配置、操作系统映像、用户数据存储等关键区域,并解释了各分区的功能及用途。

4755

被折叠的 条评论
为什么被折叠?



