Difference between revisions of "IoTGateway/BSP/Android/Android BSP User Guide 6.0.1 2.1.0"
(undo the version) |
|||
Line 59: | Line 59: | ||
$ ../bin/repo sync | $ ../bin/repo sync | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | <span style="color:#FF0000;"> | + | #<span style="color:#FF0000;">release_version.xml </span> |
<span style="font-size:smaller;">If the release versioin is v6001, please send command "<span style="color:#0000CD;">../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 -m </span><span style="color:#FF0000;">imx6ABV6001.xml</span>".</span> | <span style="font-size:smaller;">If the release versioin is v6001, please send command "<span style="color:#0000CD;">../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 -m </span><span style="color:#FF0000;">imx6ABV6001.xml</span>".</span> | ||
Line 70: | Line 70: | ||
+ | |||
+ | | ||
Revision as of 05:38, 8 March 2017
<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
Contents
This page contains the following errors:
Below is a rendering of the page up to the first error.
</parsererror>
Android BSP Version
Android 6.0.1_2.1.0
Introduction
This document describes how to work with the ELAA Android 6.0.1 Board Support Package (BSP) release for ROM-7421/3420. 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.
Setup Ubuntu Host Computer
Required equipment and software
- Ubuntu 14.04 LTS 64bit for Android build host OS
- 80G bytes free disk spaces for build image
Install Ubuntu
- IMPORTANT! You must be able to log in as root or use sudo to have root permissions during the installation.
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
Getting Android Source Code
Related version information:
- Android 6.0.1_2.1.0
- kernel Yocto-2.0
- U-Boot Yocto-2.0
To pull down the Android source tree to your working directory from the repositories as specified in the default manifest, run
$ 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 m6.0.1_2.1.0-ga -m release_version.xml <-- Check your release version
$ ../bin/repo sync
- release_version.xml
If the release versioin is v6001, please send command "../bin/repo init -u https://github.com/ADVANTECH-Corp/android-manifest.git -b m6.0.1_2.1.0-ga -m imx6ABV6001.xml".
ELLA project:
If the release version is ELAA_1_170210_0010, please send comand "../bin/repo init -u https://github.com/ADVANTECH-Corp/android-manifest.git -b m6.0.1_2.1.0-ga -m ELAA_1_170210_0010.xml".
Patch to Android M6.0.1_2.1.0
$ cd myandroid/bootable/bootloader/uboot-imx/
$ 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 /
Building Android 6.0.1_2.1.0 image for SD card
If your product is ROM-3420A1, the product name is rom_3420_a1
$PRODUCT = rom_3420_a1
If your product is ROM-7421A1, the product name is rom_7421_a1
$PRODUCT = rom_7421_a1
If your product is RSB-4411, the product name is rsb_4411_a1
$PRODUCT = rsb_4411_a1
Build Instructions
Set the $JAVA_HOME environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/