MTK平台修改system.img分区大小

1. 超过分区大小编译不过现象

e2fsdroid -p out/target/product/morgan3g/system -B out/target/product/morgan3g/system.map -S out/target/product/morgan3g/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -f /tmp/tmpcjP2DC -a / out/target/product/morgan3g/obj/PACKAGING/systemimage_intermediates/system.img
__populate_fs: Could not allocate block in ext2 filesystem while writing file "TctCamera.odex"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
Out of space? the tree size of out/target/product/morgan3g/system is (MB): 
2622	out/target/product/morgan3g/system
The max is 2568 MB.
ninja: build stopped: subcommand failed.
19:21:33 ninja failed with: exit status 1
#### failed to build some targets (06:18 (mm:ss)) ####

2. 增大 system.img 规定的分区大小

/device/mediatek/build/build/tools/ptgen/MT6580/partition_table_MT6580_emmc.csv

-system,EXT4,2629632.0,,EMMC_USER,N,Y,system.img,Y,N,Y,,Y,,AUTO,Y,false
+system,EXT4,3629632.0,,EMMC_USER,N,Y,system.img,Y,N,Y,,Y,,AUTO,Y,false

你可能感兴趣的:(MTK)