1. 程式人生 > >ubuntu 14.04 編譯android6.01 (freescale-imx6)

ubuntu 14.04 編譯android6.01 (freescale-imx6)

公司打算將基於freescale的IMX6DL的無紙化會議終端升級--由android4.4.3升級到android6.0.1(linux核心4.1.15)


$ sudo apt-get install uuid uuid-dev
$ sudo apt-get install zlib1g-dev liblz-dev
$ sudo apt-get install liblzo2-2 liblzo2-dev
$ sudo apt-get install lzop
$ sudo apt-get install git-core curl
$ sudo apt-get install u-boot-tools
$ sudo apt-get install mtd-utils
$ sudo apt-get install android-tools-fsutils
$ sudo apt-get install openjdk-7-jdK

1. 下載升級配置管理包

     1.1  在 freescale ( http://www.nxp.com/zh-Hans/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6-series-software-and-development-tool-resources:IMX6_SW?)官網下載,先註冊後下載;

      1.2 下載android原始碼

$ cd ~
$ mkdir myandroid
$ mkdir bin
$ cd myandroid
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r22
$ ~/bin/repo sync

       1.3 Get M6.0.1_2.1.0 kernel source code from Freescale open source git:


$ cd ~/myandroid
$ git clone git://git.freescale.com/imx/linux-2.6-imx.git kernel_imx
# the kernel repo is large. Therefore, this process can take a while.
$ cd kernel_imx
$ git checkout m6.0.1_2.1.0-ga

      1.4 If you use U-Boot as your bootloader, clone the U-Boot git repository from the open source git:

cd ~/myandroid/bootable
mkdir bootloader
cd bootloader
git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx
cd uboot-imx
git checkout m6.0.1_2.1.0-ga

2. 編譯

     2.1 未安裝 lzop

      sudo apt-get install lzop

    2.2  未安裝OpenJDK 7

sudo apt-get build-dep openjdk-7
sudo apt-get install openjdk-7-jdk

更多問題參考  http://www.linuxidc.com/Linux/2016-01/127292p2.htm