Difference between revisions of "IoTGateway/BSP/Android/Android BSP User Guide 6.0.1 for rk"

From ESS-WIKI
Jump to: navigation, search
(Created page with "== <span style="color:#0070c0">Android BSP Version</span> == Android 6.0.1 == <span style="color:#0070c0">Introduction</span> == This document describes how to work with th...")
 
Line 85: Line 85:
 
  <big><small>$ make -j4</small></big>
 
  <big><small>$ make -j4</small></big>
  
<span style="font-size: small"># Porting your device &nbsp;reference:&nbsp;[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Android/How_to_do_about_first_porting_for_rk <span style="color: rgb(0, 0, 255)">http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Android/How_to_do_about_first_porting for rk</span>]</span>
+
== <span style="color:#0070c0">Flash SD Card /EMMC</span> ==
 +
 
 +
reference:  
 +
<syntaxhighlight lang="bash"></syntaxhighlight>
 +
== <span style="color:#0070c0">Bootimg from MMC/SD on the Advantech RISC board</span> ==
 +
 
 +
reference:
 +
 
 +
<span style="font-size: small"></span>

Revision as of 02:40, 6 November 2017

Android BSP Version

Android 6.0.1

Introduction

This document describes how to work with the RISC and ELAA Android 6.0.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.

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.

Getting Android Source Code

Related version information:

  • Android 6.0.1
  • kernel 3.10.0
  • U-Boot 2014-10

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-Rockchip/android-rk-manifest.git -b android-6.0.1 release_version.xml
$ ../bin/repo sync

=== The release_version.xml  please refer :  https://github.com/ADVANTECH-Rockchip/android-rk-manifest/tree/android-6.0.1 ====
_

Building Android 6.0.1 image

If your product is RSB-4680, the product name is rsb4680

$PRODUCT = rsb4680

Build Instructions

Set the $JAVA_HOME environment variable

$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/

Set up the environment for building. This only configures the current terminal.

$ source build/envsetup.sh

Execute the Android lunch command. In this example, the setup is for the production image of Advantech RISC platfrom device with user type.  If you devices is RSB4680,  you will be send command " lunch rsb4680-user

$ lunch $PRODUCT-user

To build boot loader

Perform the following command in terminal console

$ cd u-boot/
$ make rk3288_rsb4680a1_2G_defconfig
$ make -j4

The one file, RK3288UbootLoader_V2.30.10.bin, will be located in directory

To build kernel image

Perform the following command in terminal console

$ cd kernel/ 
$ make rk3288_adv_defconfig
$ make -j4 rk3288-rsb4680-a1.img

To build system image

Perform the following command in terminal console

$ make -j4

Flash SD Card /EMMC

reference:

Bootimg from MMC/SD on the Advantech RISC board

reference: