IoTGateway/BSP/Android/Android BSP User Guide 5.0
Introduction
Setup host computer
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 required packages
Java
$ sudo apt-get install openjdk-7-jdk
freescale Android_User's_Guide
$ 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
Android Open Source Project (AOSP)
http://source.android.com/source/initializing.html
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
Setup Advantech Android BSP In RISC Platform
The BSP contains cross toolchain, linux kernel source code, u-boot source code, Android root file system and some scripts. It is consist of three top folders: "android", "image", "scripts".
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Android Open Source Project (AOSP)
http://source.android.com/source/initializing.html
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
### Setup Advantech Android BSP In RISC Platform
The BSP contains cross toolchain, linux kernel source code, u-boot source code, Android root file system and some scripts. It is consist of three top folders: "android", "image", "scripts".
``` prebuilt/gcc/linux-x86/host/ : cross toolchain
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
`````` $ cd \{BSPHOME\}/scripts
$ ./mksd-android.sh $\{SD_DEVICE\}
Android Open Source Project (AOSP)
http://source.android.com/source/initializing.html
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
### Setup Advantech Android BSP In RISC Platform
The BSP contains cross toolchain, linux kernel source code, u-boot source code, Android root file system and some scripts. It is consist of three top folders: "android", "image", "scripts".
``` prebuilt/gcc/linux-x86/host/ : cross toolchain
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Android Open Source Project (AOSP)
http://source.android.com/source/initializing.html
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
``````sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
``````sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
Setup Advantech Android BSP In RISC Platform
The BSP contains cross toolchain, linux kernel source code, u-boot source code, Android root file system and some scripts. It is consist of three top folders: "android", "image", "scripts".
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
bootable/bootloader/uboot-imx/ : u-boot source code
kernel_imx/ : linux kernel source code
device
fsl/ : Android device related settings
fsl-proprietary/ : modules & firmware(e.g. WiFi, GPU)
processors/imx/ : HAL (Hardware Abstraction Layer)
image/ : all built images located in
scripts/ : to simplify building process
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
`````` $ cd \{BSPHOME\}/scripts
$ ./mksd-android.sh $\{SD_DEVICE\}
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Naming Rule
It is consist of the model name followed by "AB" plus version number, for example, 4410ABV2080 which "4410" stands for RSB-4410, "AB" is acronym of Android BSP, "V2080" stands for Version 2.080; other model names list below:
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
"5420" stands for ROM-5420
"7420" stands for ROM-7420
"DS31" stands for UBC-DS31
"U220" stands for UBC-220
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
`````` $ cd \{BSPHOME\}/scripts
$ ./mksd-android.sh $\{SD_DEVICE\}
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
Build Instructions
Set "JAVA_HOME" environment variable
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Set up the environment for building
$ source build/envsetup.sh
Execute the Android lunch command
$ lunch $PRODUCT-user <-- User mode``$ lunch $PRODUCT-eng <-- Eng mode
To build boot loader
Perform the following command in terminal console
$ make -j4 bootloaderThe two files, u-boot_crc.bin & u-boot_crc.bin.crc, will be located in directory, ./out/target/product/product_name
To build boot image
Perform the following command in terminal consoleto do build bootimage
$ make -j4 bootimage
To build boot image
Perform the following command in terminal consoleto do build systemimage
$ make -j4 systemimage
To build recovery image
Perform the following command in terminal consoleto do build recoveryimage
$ make -j4 recoveryimage
To build OTA package
Perform the following command in terminal consoleto do build otapackage
$ make -j4 otapackage
Boot up from SD card or eMMC
To create a bootable SD card
Perform the following command in terminal console
$ ./mksd-android.sh $\{SD_DEVICE\}
`````` $ cd \{BSPHOME\}/scripts
$ ./mksd-android.sh $\{SD_DEVICE\}
``` $ cd \{BSPHOME\}/scripts
$ ./mksd-android.sh $\{SD_DEVICE\}
$ ./mksd-android.sh $\{SD_DEVICE\}
### Flash to eMMC
Perform the following command in terminal console
``` $ cd /data/mkimage/scripts
$ sh ./mksd-android.sh $\{MMC_DEVICE\}
`````` $ cd /data/mkimage/scripts
$ sh ./mksd-android.sh $\{MMC_DEVICE\}
``` $ cd /data/mkimage/scripts
$ sh ./mksd-android.sh $\{MMC_DEVICE\}
$ sh ./mksd-android.sh $\{MMC_DEVICE\}