编译android 的时候出现如下错误:
Target system fs image: out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img
make_ext4fs -s -T -1 -S out/target/product/s3568/root/file_contexts -l 943718400 -a system out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/s3568/systemerror: ext4_allocate_best_fit_partial: failed to allocate 5703 blocks, out of space?
Creating filesystem with parameters:
Size: 943718400
Block size: 4096
Blocks per group: 32768
Inodes per group: 7200
Inode size: 256
Journal blocks: 3600
Label:
Blocks: 230400
Block groups: 8
Reserved block group size: 63
error: failed to build out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/s3568/system
Running: mkuserimg.sh -s out/target/product/s3568/system out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 943718400 out/target/product/s3568/root/file_contexts
Out of space? the tree size of out/target/product/s3568/system is (MB):
896 out/target/product/s3568/system
The max is 900 MB.
make: *** [out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img] Error 1
#### make failed to build some targets (01:31:15 (hh:mm:ss)) ####
是因为给system image分配的空间不够导致的
需要修改:partition_table_MT6582.xls 适当加大分区表里ANDROID 或是 system 分区的大小, 如下面所示: