(08-31-2017, 09:21 PM)birender.s Wrote: error: failed to build out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/rk3328/systemYou can change the following to increase the system image size:
Running: mkuserimg.sh -s out/target/product/rk3328/system out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 1610612736 -D out/target/product/rk3328/system -L system out/target/product/rk3328/root/file_contexts.bin
make_ext4fs -s -T -1 -S out/target/product/rk3328/root/file_contexts.bin -L system -l 1610612736 -a system out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/rk3328/system out/target/product/rk3328/system
error: ext4_allocate_best_fit_partial: failed to allocate 16191 blocks, out of space?
Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label: system
Blocks: 393216
Block groups: 12
Reserved block group size: 95
Out of space? the tree size of out/target/product/rk3328/system is (MB):
1886 out/target/product/rk3328/system
The max is 1536 MB.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (03:45:39 (hh:mmConfuseds)) ####
/device/rockchip/rk3328/BoardConfig.mk
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
//This is for 2GB size, you can change it to anything that still fits on the EMMC or SDCard.
You must also increase the system.img size in the parameter file so the firmware can boot.
Start by increasing the offset before @system and then adjust all the partition offsets after that too.
This should be for 2GB system partition.
/device/rockchip/rk3328/rk3328_box/parameter.txt
CMDLINE: androidboot.baseband=N/A androidboot.selinux=disabled androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(trust),0x00002000@0x00006000(misc),0x00008000@0x00008000(resource),0x0000A000@0x00010000(kernel),0x00010000@0x0001A000(boot),0x00010000@0x0002A000(recovery),0x00038000@0x0003A000(backup),0x00040000@0x00072000(cache),0x00400000@0x000B2000(system),0x00008000@0x004B2000(metadata),0x00002000@0x004BA000(baseparamer),-@0x004BC000(userdata)
0x00400000@0x000B2000(system)
before @ is the size, after @ is the location.
0x00400000 in hex is 4194304 decimal * 512 / 1024 / 1024 = 2048MB(2GB)
0x000B2000(old location) + 0x00400000(size) = 0x004B2000 (The same as the new location of metadata)
So adjust al the locations of partitions metadata, baseparameter, userdata after system too.