/***********************************************************************
* I.MX6 mkuserimg.sh 使用
* 说明:
* 每次都要对Android源码进行模块化编译的时候,经常会遇到要重新制作
* system.img的问题,而普通的方式等待时间实在让人难以接受,而通过这个
* mkuserimg.sh来直接完成对system目录的打包正符合要求。
*
* 2016-6-28 深圳 南山平山村 曾剑锋
**********************************************************************/ 一、参考文档:
make_ext4fs制作system.img
http://www.360doc.com/content/13/0419/13/12052771_279450163.shtml 二、解读shell命令:
mkuserimg.sh out/target/product/sabresd_6dq/system out/target/product/sabresd_6dq/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 三、步骤:
. / / = 280M
. mkuserimg.sh out/target/product/sabresd_6dq/system out/target/product/sabresd_6dq/system.img ext4 system 四、reimg.sh
echo "begin to make system.img"
source build/envsetup.sh
lunch sabresd_6dq-eng
mkuserimg.sh out/target/product/sabresd_6dq/system out/target/product/sabresd_6dq/system.img ext4 system 五、运行现象:
myzr@myzr:~/myandroid$ ./reimg.sh
begin to make image
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/fsl/imx5x/vendorsetup.sh
including device/fsl/imx6/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash ============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.--generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=1.1.-rc3
OUT_DIR=out
============================================ + echo 'in mkuserimg.sh PATH=/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=/usr/java/jdk1..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..0_45/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/java/jdk1..0_45/jre/bin:/opt/FriendlyARM/toolschain/4.4./bin:/home/myzr/Downloads/node-v4.4.5-linux-x64/bin
+ ENABLE_SPARSE_IMAGE=
+ '[' out/target/product/sabresd_6dq/system = -s ']'
+ '[' -ne -a -ne -a -ne ']'
+ SRC_DIR=out/target/product/sabresd_6dq/system
+ '[' '!' -d out/target/product/sabresd_6dq/system ']'
+ OUTPUT_FILE=out/target/product/sabresd_6dq/system.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=system
+ SIZE=
+ FC=
+ case $EXT_VARIANT in
+ '[' -z system ']'
+ '[' -z ']'
+ '[' -n '' ']'
+ MAKE_EXT4FS_CMD='make_ext4fs -l 293601280 -a system out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system'
+ echo make_ext4fs -l -a system out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system
make_ext4fs -l -a system out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system
+ make_ext4fs -l -a system out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system
Creating filesystem with parameters:
Size:
Block size:
Blocks per group:
Inodes per group:
Inode size:
Journal blocks:
Label:
Blocks:
Block groups:
Reserved block group size:
Created filesystem with / inodes and / blocks
+ '[' -ne ']'
myzr@myzr:~/myandroid$

I.MX6 mkuserimg.sh 使用的更多相关文章

  1. I.MX6 mkuserimg.sh hacking

    /*********************************************************************** * I.MX6 mkuserimg.sh hackin ...

  2. I.MX6 android mkuserimg.sh

    /************************************************************************** * I.MX6 android mkuserim ...

  3. I.MX6 Android 5.1 快速合成系统

    /**************************************************************************** * I.MX6 Android 5.1 快速 ...

  4. post-image.sh hacking

    #********************************************************************************* #* post-image.sh ...

  5. Android学习系列(38)--Android源码下载和编译

    前面多篇文章介绍到如何下载和编译Android或者CM源码,不过一直都是放在<拓展系列>里.随着学习的深入,android源码是非常有参考和学习价值,强烈推荐大家都去下载,编译,学习,所以 ...

  6. android system.img

    哥们要我做些模拟包,给过来的是mtk的底包,需要从system.img中提取部分文件. 网上一找资料,说是yaffs2文件系统,同时以前做linux的时候也是用yaffs2,感觉碰到老朋友了,不管三七 ...

  7. android在Data目录内置可删除的APP

    一.准备工作:make_ext4fs.mkuserimg.sh.simg2img,把它们跟要修改的 .img.ext4(或.img)文件放置到同一个目录下 二.转换源文件为img格式( .img则略过 ...

  8. Ubuntu下修改system.img 解包system.img、打包system.img

    一.准备工作:解压解打包工具,得到三个文件:make_ext4fs.mkuserimg.sh.simg2img,把它们跟要修改的 .img.ext4(或.img)文件放置到同一个目录下 二.转换源文件 ...

  9. Android源码编译过程之九鼎开发板

    build_kernel() { # 进入源码顶层目录 cd ${BS_DIR_KERNEL} || # 编译配置文件 make ${BS_CONFIG_KERNEL} ARCH=arm CROSS_ ...

随机推荐

  1. android中的OnClickListener两种实现方式

    android的activity点击事件中,通过OnClickListener来实现,要实现点击事件有两种方式 1.通过定义一个OnClickListener的内部类来实现 The example b ...

  2. 【收藏】SSH原理与运用

    http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html http://www.ruanyifeng.com/blog/2011/12/ ...

  3. OC温习四:数组

    /** arrayByAddingObject -- 往数组A添加一个数据,返回一个数组的形式,即必须有一个数组来接受 */ NSArray *array = [NSArray arrayWithOb ...

  4. ASP.NET Core小技巧

    设定开发环境为开发模式,呈现具体错误内容 dotnet run启动时,会在环境变量中查找ASPNETCORE_ENVIRONMENT变量的值,如果没有,则默认会当做Production来处理,隐藏错误 ...

  5. python之-- socket 基础篇

    socket 网络模块 注意事项:在python3中,所有数据的传输必须用bytes类型(bytes只支持ascii码)所以在发送数据的时候要么在发送的字符串前面加 'b',要么使用encode('u ...

  6. java面向对象day01

    前言: 1.首先我们要明白:万物皆对象.现实中存在的事物都是对象.而面向对象技术就是对客观事物进行抽象.2.而java语言是纯面向对象的的语言,它具有描述对象及其相互之间关系的语言成分.3.定义类和建 ...

  7. 框架-Jquerychange事件数值计算

    //优惠率计算优惠价            $("body").on("change", "#Rate", function() {     ...

  8. iterm2退出时保存会话状态,下次打开恢复

    可以保存已经打开的窗口,本机进入的目录 无法保存ssh连接状态,无法保存ipython状态等 设置方法: 1.这里设置为yes,据说,反复修改一次,重启才起作用,实在有问题就试试 2.这里设置一下 3 ...

  9. 【APUE】信号量、互斥体和自旋锁

    http://www.cnblogs.com/biyeymyhjob/archive/2012/07/21/2602015.html http://blog.chinaunix.net/uid-205 ...

  10. swift-for循环遍历,遍历字典,循环生成数组

    // Playground - noun: a place where people can play import UIKit //--------------------------------- ...