partitions参数
[partition_start]
;------------------------------>mmcblk0p2/nanda
[partition]
name = bootloader
size = 65536
downloadfile = "boot-resource.fex"
user_type = 0x8000
;------------------------------>mmcblk0p5/nandb
[partition]
name = env
size = 32768
downloadfile = "env.fex"
user_type = 0x8000
;------------------------------>mmcblk0p6/nandc
[partition]
name = boot
size = 32768
downloadfile = "boot.fex"
user_type = 0x8000
;------------------------------>mmcblk0p7/nandd
[partition]
name = system
size = 4194304
downloadfile = "system.fex"
user_type = 0x8000
- 生成sunxi_mbr.fex 供打包烧录用。
brandy/pack_tools/create_mbr
-
- uboot 中分析sys_partition.fex 第一个partition mmcblk0p2 ,最后一个mmcblk0p1 UDISK
for(index = 0; index < part_total && index < SUNXI_MBR_MAX_PART_COUNT; index++)
{
sunxi_partition_get_name(index, &fb_part.name[0]);
fb_part.start = sunxi_partition_get_offset(index) * 512;
fb_part.length = sunxi_partition_get_size(index) * 512;
fb_part.flags = 0;
printf("%-12s: %-12x %-12x\n", fb_part.name, fb_part.start, fb_part.length);
memset(part_name, 0, 16);
if(!storage_type)
{
s