/************************************************************************** * I.MX6 android mkuserimg.sh * 说明: * 修改了android源代码中的一些内容之后,如果内容过多,不能确定到底修改 * 了system目录下的哪些文件,于是可能要重新make,但这实在是让人难以接受, * 因为等待的时间会很长,于是从make命令最后看到mkuserimg.sh是用来最后对文件 * 系统进行打包的,先记录,以后再解读。 * * 2016-6-27 深圳 南山平山村 曾剑锋 *************************************************************************/ Target system fs image: out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img Running: mkuserimg.sh out/target/product/sabresd_6dq/system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 293601280 + echo 'in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/java/jdk1.6.0_45/bin:/home/myzr/myandroid/out/host/linux-x86/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6/bin:/home/myzr/myandroid/development/emulator/qtools:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:/home/myzr/myandroid/development/scripts:/home/myzr/myandroid/bootable/bootloader/uboot-imx/tools:/usr/local/netpbm/bin:/usr/java/jdk1.6.0_45/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/java/jdk1.6.0_45/jre/bin:/opt/FriendlyARM/toolschain/4.4.3/bin:/home/myzr/Downloads/node-v4.4.5-linux-x64/bin' in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/java/jdk1.6.0_45/bin:/home/myzr/myandroid/out/host/linux-x86/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6/bin:/home/myzr/myandroid/development/emulator/qtools:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin:/home/myzr/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:/home/myzr/myandroid/development/scripts:/home/myzr/myandroid/bootable/bootloader/uboot-imx/tools:/usr/local/netpbm/bin:/usr/java/jdk1.6.0_45/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/java/jdk1.6.0_45/jre/bin:/opt/FriendlyARM/toolschain/4.4.3/bin:/home/myzr/Downloads/node-v4.4.5-linux-x64/bin + ENABLE_SPARSE_IMAGE= + '[' out/target/product/sabresd_6dq/system = -s ']' + '[' 5 -ne 4 -a 5 -ne 5 -a 5 -ne 6 ']' + SRC_DIR=out/target/product/sabresd_6dq/system + '[' '!' -d out/target/product/sabresd_6dq/system ']' + OUTPUT_FILE=out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img + EXT_VARIANT=ext4 + MOUNT_POINT=system + SIZE=293601280 + FC= + case $EXT_VARIANT in + '[' -z system ']' + '[' -z 293601280 ']' + '[' -n '' ']' + MAKE_EXT4FS_CMD='make_ext4fs -l 293601280 -a system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/sabresd_6dq/system' + echo make_ext4fs -l 293601280 -a system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/sabresd_6dq/system make_ext4fs -l 293601280 -a system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/sabresd_6dq/system + make_ext4fs -l 293601280 -a system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/sabresd_6dq/system Creating filesystem with parameters: Size: 293601280 Block size: 4096 Blocks per group: 32768 Inodes per group: 5984 Inode size: 256 Journal blocks: 1120 Label: Blocks: 71680 Block groups: 3 Reserved block group size: 23 Created filesystem with 1185/17952 inodes and 49793/71680 blocks + '[' 0 -ne 0 ']' Construct recovery from boot mkdir -p out/target/product/sabresd_6dq/obj/PACKAGING/recovery_patch_intermediates/ PATH=out/host/linux-x86/bin:$PATH out/host/linux-x86/bin/imgdiff out/target/product/sabresd_6dq/boot.img out/target/product/sabresd_6dq/recovery.img out/target/product/sabresd_6dq/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p failed to reconstruct target deflate chunk 1 [(null)]; treating as normal chunk 0: type 0 start 0 len 4714506 chunk 1: type 2 start 4714506 len 324352 chunk 2: type 0 start 4901721 len 1191 Construct patches for 3 chunks... patch 0 is 211 bytes (of 4714506) patch 1 is 494183 bytes (of 187215) patch 2 is 146 bytes (of 1191) chunk 0: normal ( 0, 4714506) 211 chunk 1: deflate ( 4714506, 701933) 494183 (null) chunk 2: normal ( 5416439, 521) 146 Install system fs image: out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system.img+out/target/product/sabresd_6dq/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=299747712 blocksize=4224 total=294095952 reserve=3028608