以添加一个CUSTOM分区为例说明:
1、首先在分区配置xml文件中添加一个分区信息:
HWInfoImg
+ custom
+ custom
+ CODE
+
+ 0x90000010
+ 0x0
+
+ 1
+ 2
+ res.zip
+ Download ui res files
+
+
FLASH
EraseRuntimeNV
EraseFlash
2、在
u-boot/disk/part_uefi.c文件中,需要添加如下信息:
{PARTITION_RECOVERY, 10 * 1024, PARTITION_RAW},
{PARTITION_FASTBOOT_LOGO, 1 * 1024, PARTITION_RAW},
{PARTITION_MISC, 256, PARTITION_RAW},
{PARTITION_CUSTOM, 10, PARTITION_RAW},
{0,0,0}
};
3、在文件 u-boot/disk/part_uefi.h 中添加:
PARTITION_RECOVERY,
PARTITION_LOGO,
PARTITION_MISC,
+ PARTITION_CUSTOM,
PARTITION_SD,
PARTITION_FIRMWARE,
PARTITION_TOTAL_COUNT
3、在文件u-boot/nand_fdl/fdl-2/src/fdl_partition.c
{PARTITION_RECOVERY, 10 * 1024, PARTITION_RAW, L"recovery"},
{PARTITION_LOGO, 1 * 1024, PARTITION_RAW, L"logo"},
{PARTITION_MISC, 256, PARTITION_RAW, L"misc"},
+ {PARTITION_RES, 10, PARTITION_RAW, L"res"},
4、在文件: u-boot/nand_fdl/fdl-2/src/fdl_emmc_command.c添加如下信息:
{0x90000002, PARTITION_PROD_INFO1},
{0x9000000f, PARTITION_PROD_INFO3},
{0x90000003, PARTITION_RUNTIME_NV1},
+ {0x90000010, PARTITION_CUSTOM},
{0xffffffff, 0xffffffff}
};
阅读(2290) | 评论(0) | 转发(0) |