1、修改common\config\partition_nand.xml
<?xml version="1.0" encoding="utf-8"?>
<nandboot>
<magic_numbers>
<usr_part_magic1>0xAA7D1B9A</usr_part_magic1>
<usr_part_magic2>0x1F7D48BC</usr_part_magic2>
</magic_numbers>
<partition_version length="4">0x4</partition_version>
<partitions>
<partition>
<name length="16" type="string">0:SBL</name>
<size_blks length="4">0x8</size_blks>
<pad_blks length="4">0x2</pad_blks>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFE</attr>
<img_name type="string">sbl1.mbn</img_name>
</partition>
<partition>
<name length="16" type="string">0:MIBIB</name>
<size_blks length="4">0x6</size_blks>
<pad_blks length="4">0x4</pad_blks>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0xFF</attr>
<attr>0xFE</attr>
<img_name type="string">partition.mbn</img_name>
</partition>
<partition>
<name length="16" type="string">0:EFS2</name>
<size_kb length="4">9216</size_kb>
<pad_kb length="4">1024</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0xFF</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:efs2_bak</name>
<size_kb length="4">9216</size_kb>
<pad_kb length="4">1024</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0xFF</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:TZ</name>
<size_kb length="4">768</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">tz.mbn</img_name>
</partition>
<partition>
<name length="16" type="string">0:RPM</name>
<size_kb length="4">256</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">rpm.mbn</img_name>
</partition>
<partition>
<name length="16" type="string">0:aboot</name>
<size_kb length="4">512</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">appsboot.mbn</img_name>
</partition>
<partition>
<name length="16" type="string">0:boot</name>
<size_kb length="4">7424</size_kb>
<pad_kb length="4">512</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">mdm9607-boot.img</img_name>
</partition>
<partition>
<name length="16" type="string">0:SCRUB</name>
<size_kb length="4">11008</size_kb>
<pad_kb length="4">1024</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:modem</name>
<size_kb length="4">60160</size_kb>
<pad_kb length="4">1024</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">NON-HLOS.ubi</img_name>
</partition>
<partition>
<name length="16" type="string">0:misc</name>
<size_kb length="4">768</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:recovery</name>
<size_kb length="4">7424</size_kb>
<pad_kb length="4">512</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:fota</name>
<size_kb length="4">1024</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:recoveryfs</name>
<size_kb length="4">23552</size_kb>
<pad_kb length="4">1024</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
</partition>
<partition>
<name length="16" type="string">0:sec</name>
<size_kb length="4">256</size_kb>
<pad_kb length="4">256</pad_kb>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">sec.dat</img_name>
</partition>
<partition>
<name length="16" type="string">0:system</name>
<flags length="4">0xFFFFFFFF</flags>
<flags length="4">0xFFFF</flags>
<which_flash>0</which_flash>
<attr>0xFF</attr>
<attr>0x01</attr>
<attr>0x00</attr>
<attr>0xFF</attr>
<img_name type="string">mdm9607-sysfs.ubi</img_name>
</partition>
</partitions>
</nandboot>
根据项目需要做分区修改
2、改为重新执行.build.py脚本生产新的分区mbn
3、烧写到板中
4、系统启动查看内核信息可以看到分区信息已修改