Difference between revisions of "IoTGateway/BSP/Android/Android BSP User Guide 7.1.1 1.0.0"

From ESS-WIKI
Jump to: navigation, search
Line 30: Line 30:
 
$ ../bin/repo sync
 
$ ../bin/repo sync
  
=== The release_version.xml  please refer : https://github.com/ADVANTECH-Corp/android-manifest/tree/n7.1.1_1.0.0-ga ====
+
=== The release_version.xml  please refer : https://github.com/ADVANTECH-Corp/android-manifest/tree/n7.1.1_1.0.0-ga ==== 
 
 
 
</syntaxhighlight><span style="font-size:medium">'''<span style="font-family: times new roman,times,serif"><small>Step2&nbsp;: Patch to Android N7.1.1_1.0.0</small></span>'''</span><syntaxhighlight lang="bash">$ cd myandroid/bootable/bootloader/uboot-imx/
 
</syntaxhighlight><span style="font-size:medium">'''<span style="font-family: times new roman,times,serif"><small>Step2&nbsp;: Patch to Android N7.1.1_1.0.0</small></span>'''</span><syntaxhighlight lang="bash">$ cd myandroid/bootable/bootloader/uboot-imx/
 
$ patch -p1 <../../../patches_android_7.1.1/7001-Uboot_Yocto_4.1.15_1.2.0-to-Android_N7.1.1_1.0.0.patch  
 
$ patch -p1 <../../../patches_android_7.1.1/7001-Uboot_Yocto_4.1.15_1.2.0-to-Android_N7.1.1_1.0.0.patch  
Line 40: Line 39:
  
  
=== <span style="color:#0070c0"><span style="font-family: times new roman,times,serif">Build Instructions</span></span> ===
+
=== <span style="color:#0070c0">Build Instructions</span> ===
  
<span style="font-size: small"><span style="font-family: times new roman,times,serif">Set the $JAVA_HOME environment variable</span></span>
 
  
<big><small>$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/</small></big>
+
<syntaxhighlight lang="bash">$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
 +
$ source build/envsetup.sh
 +
$ lunch $PRODUCT-user
 +
</syntaxhighlight>
  
<span style="font-size: small"><span style="font-family: times new roman,times,serif">Set up the environment for building. This only configures the current terminal.</span></span>
+
<syntaxhighlight lang="bash">$ make -j4 bootloader
 
+
$ make -j4 bootimage
<big><small>$ source build/envsetup.sh</small></big>
+
$ make -j4 systemimage
 
+
</syntaxhighlight>
<span style="font-size: small"><span style="font-family: times new roman,times,serif">Execute the Android lunch command. In this example, the setup is for the production image of Advantech RISC platfrom device with user type. &nbsp;If you devices is RSB4411, &nbsp;you will be send command "&nbsp;lunch rsb_4411_a1-user</span></span>
 
 
 
<big><small>$ lunch $PRODUCT-user</small></big>
 
 
 
'''<span style="font-size: small"><span style="font-family: times new roman,times,serif">To build boot loader</span></span>'''
 
 
 
<span style="font-size: small"><span style="font-family: times new roman,times,serif">Perform the following command in terminal console</span></span>
 
 
 
<big><small>$ make -j4 bootloader</small></big>
 

Revision as of 07:15, 26 May 2017

Android BSP Version

Android 7.1.1_1.0.0

Introduction

This document describes how to work with the RISC Android 7.1.1 Board Support Package (BSP) release. The BSP includes bootloaders; the Android Linux kernel and root file system; and tools and documentation to ease development, deployment, and execution of Android-based systems.

Build Environment on Host

Currently, we adopt Docker as build environment.

You can get the latest version of advrisc/u16.04-imx6abv5 Docker image for developing imx6 risc projects.

If you don't know much about Docker, please refer to IoTGateway/Docker for details.

Getting Android Source Code

  • Android 7.1.1_1.0.0
  • kernel Yocto-2.0
  • U-Boot Yocto-2.0

Step1 : To pull down the Android source tree to your working directory from the repositories as specified in the default manifest

$ 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://github.com/ADVANTECH-Corp/android-manifest.git -b n7.1.1_1.0.0-ga -m release_version.xml
$ ../bin/repo sync

=== The release_version.xml  please refer : https://github.com/ADVANTECH-Corp/android-manifest/tree/n7.1.1_1.0.0-ga ==== 
Step2 : Patch to Android N7.1.1_1.0.0
$ cd myandroid/bootable/bootloader/uboot-imx/
$ patch -p1 <../../../patches_android_7.1.1/7001-Uboot_Yocto_4.1.15_1.2.0-to-Android_N7.1.1_1.0.0.patch 
$ cd myandroid/kernel_imx/ 
$ patch -p1 <../patches_android_7.1.1/7001-Linux_Yocto_4.1.15_1.2.0-to-Android_N7.1.1_1.0.0.patch 
$ cd myandr oid /


Build Instructions

$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
$ source build/envsetup.sh
$ lunch $PRODUCT-user
$ make -j4 bootloader
$ make -j4 bootimage
$ make -j4 systemimage