Difference between revisions of "IoTGateway/BSP/Android/BSPsandImages/Set-up Development Environmen"

From ESS-WIKI
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== <span style="font-family:times new roman,times,serif;"><span style="font-size:larger;">Android 6.0.1_2.1.0</span></span> ==
+
== <span style="font-family:times new roman,times,serif;"><span style="font-size:larger;">Android 6.0.1_2.1.0 BSP</span></span> ==
  
 
=== <span style="font-family:times new roman,times,serif;"><span style="font-size:medium;">Setup Ubuntu host computer</span></span> ===
 
=== <span style="font-family:times new roman,times,serif;"><span style="font-size:medium;">Setup Ubuntu host computer</span></span> ===
Line 19: Line 19:
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Reference: [http://ess-wiki.advantech.com.tw/view/IoTGateway/Docker http://ess-wiki.advantech.com.tw/view/IoTGateway/Docker]</span></span>
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Reference: [http://ess-wiki.advantech.com.tw/view/IoTGateway/Docker http://ess-wiki.advantech.com.tw/view/IoTGateway/Docker]</span></span>
  
=== <span style="font-family:times new roman,times,serif;"><span style="font-size:medium;">Getting Android source code (Android 6.0.1_2.1.0/kernel Yocto-2.0 /U-Boot Yocto-2.0)</span></span> ===
 
 
 
<syntaxhighlight lang="bash">$ mkdir myandroid $ mkdir bin
 
$ cd myandroid/
 
$ curl [https://storage.googleapis.com/git-repo-downloads/repo https://storage.googleapis.com/git-repo-downloads/repo] > ../bin/repo
 
$ chmod a+x ../bin/repo
 
$ ../bin/repo init -u [https://github.com/ADVANTECH-Corp/android-manifest.git https://github.com/ADVANTECH-Corp/android-manifest.git] -b m6.0.1_2.1.0-ga
 
$ ../bin/repo sync</syntaxhighlight><span style="font-family:times new roman,times,serif;"><span style="font-size:small;">Remove the .repo and .git file</span></span>
 
 
<syntaxhighlight lang="bash">$ find . -name .repo | xargs rm -rf
 
</syntaxhighlight>
 
 
<syntaxhighlight lang="bash">$ find . -name .git | xargs rm -rf
 
</syntaxhighlight> <span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Patch to Android M6.0.1_2.1.0</span></span>
 
 
<syntaxhighlight lang="bash">$ cd myandroid/bootable/bootloader/uboot-imx/
 
</syntaxhighlight>
 
 
<syntaxhighlight lang="bash">$ patch -p1 <../../../patches_android_6.0.1/6001-Uboot_Yocto_4.1.15_1.2.0-to-Android_M6.0.1_2.1.0.patch
 
$ cd myandroid/kernel_imx/
 
$ patch -p1 <../patches_android_6.0.1/6001-Linux_Yocto_4.1.15_1.2.0-to-Android_M6.0.1_2.1.0.patch
 
$ cd myandroid/
 
</syntaxhighlight>
 
 
===  ===
 
===  ===
 
=== <span style="font-family:times new roman,times,serif;">Building Android 6.0.1_2.1.0 image for SD card</span> ===
 
 
<span style="font-family:times new roman,times,serif;">[ For reference ]</span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">If your product is RSB-4410A1, the product name is rsb_4410_a1</span></span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;"><span style="color:#FF0000;">$PRODUCT = rsb_4410_a1</span></span></span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">If your product is RSB-xxxx the product name is rsb_xxxx_a1</span></span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;"><span style="color:#FF0000;">$PRODUCT = rsb_xxxx_a1</span></span></span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">If your product is ROM-xxxx the product name is rom_xxxx_a1</span></span>
 
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;"><span style="color:#FF0000;">$PRODUCT = rom_xxxx_a1</span></span></span>
 

Latest revision as of 06:28, 3 February 2017

Android 6.0.1_2.1.0 BSP

Setup Ubuntu host computer

Install Ubuntu 14.04 LTS 64bit. You should have about 80 Gbytes of free disk space for building images.

Go to http://releases.ubuntu.com/14.04/ and download 64-bit PC (AMD64) desktop image: http://releases.ubuntu.com/14.04/ubuntu-14.04.3-desktop-amd64.iso for the installation.

Install docker and Use docker

Please use docker environment to compiler Android 6.0.1_2.1.0

Android 6.0.1_2.1.0 Docker

Image Repository : advrisc/u14.04-imx6abv4

Image Tag : 20160825

Reference: http://ess-wiki.advantech.com.tw/view/IoTGateway/Docker