修改system.img的大小限制
运行make -j6,出现以下错误:
make_ext4fs -s -l 419430400 -a system out/target/product/rk2928sdk/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/rk2928sdk/system+ make_ext4fs -s -l 419430400 -a system out/target/product/rk2928sdk/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/rk2928sdk/systemCreating filesystem with parameters: Size: 419430400 Block size: 4096 Blocks per group: 32768 Inodes per group: 6400 Inode size: 256 Journal blocks: 1600 Label: Blocks: 102400 Block groups: 4 Reserved block group size: 31error: do_inode_allocate_extents: Failed to allocate 963 blocks
+ '[' 1 -ne 0 ']'+ exit 4error: failed to build out/target/product/rk2928sdk/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/rk2928sdk/systemmake: *** [out/target/product/rk2928sdk/obj/PACKAGING/systemimage_intermediates/system.img] 错误 1make: *** 正在删除文件“out/target/product/rk2928sdk/obj/PACKAGING/systemimage_intermediates/system.img”incar@incar-desktop:~/RK2926_86V/sdk-4.1.1$ error: do_inode_allocate_extents: Failed to allocate 963 blockserror::找不到命令
解决办法:这个错误是由system分配的空间太小导致的。incar@incar-desktop:~/RK2926_86V/sdk-4.1.1$ sdiff -s device/rockchip/rk2928sdk/BoardConfig.mk ../sdk-4.1.1_old/device/rockchip/rk2928sdk/BoardConfig.mk BOARD_SYSTEMIMAGE_PARTITION_SIZE := 419430400 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 524288000
①打开device/rockchip/rk2928sdk/BoardConfig.mk
扩大BOARD_*_PARTITION_SIZE的大小,如:
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 524288000 #500M
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 734003200 #700M
②如果 BOARD_SYSTEMIMAGE_PARTITION_SIZE超过512,还需要修改rockdev下的parameter,将
0x00100000@0x00282000(system),-@0x00382000(user)调大。
说明:
@前面的是大小 :0x00100000/2048=512MB
@后面的是起始地址:0x00282000
修改如下:
0x0015E000@0x00282000(system),-@0x003E0000(user) #700M