DART-SD410 Android LL 1 1
Introduction
This WIKI describes how to build and deploy Android Lollipop Lollipop-5-1-1 on the DART-SD410. It is based on Qualcomm Android-LL-5.1.1.
Overview
The objective of this document is to guide DART-SD410 Android developers to obtain Android Lollipop sources, setting up host environment, compilation and deployment.
This document contains instructions for:
- Hardware and software requirements.
- Setup the hardware.
- Setup the toolchain.
- Download & build the sources.
- Install the binaries on the DART-SD410 SOM.
Document Reference
This release is based on Qualcomm APQ8016_410C_LA.BR.1.2.4-01810-8x16.0_5.1.1_Lollipop_P2 release. Please refer to Qualcomm Developer Network before you start building.
Supported hardware and features
Feature | Description |
---|---|
SOM support | DART-SD410 |
Carrier Board support | VAR-DT410CustomBoard |
CPU | Qualcomm - Snapdragon 410 |
Resque Image | Resque Images set can be downloaded from FTP |
eMMC | up to 16GB |
DDR size support configuration | Up to 2G LPDDR3 |
SD-Card | + |
Wired Network | 10/100 Mbps Ethernet |
Wireless Network | 802.11abg AP, & Wi-Fi |
Bluetooth | + |
SPI | + |
I2C | + |
USB OTG | Host and Device |
Uarts | x2 |
RTC | + |
Display | HDMI: 1080P (On board DSI-to-HSMI bridge, 800x480 resolution) LVDS (On board DSI-to-LVDS bridge, 800x480 resolution) |
Audio | Line In & Line out Mono Speaker Audio over HDMI |
Camera | IMX135 camera sensor. Board can be ordered separately at : sales@variscite.com |
Hardware Requirements
DART-SD410 evaluation kit.
Host (PC) setup requirements
The host development environment for Android is based on Ubuntu, please install Ubuntu version 14.04 64bit LTS http://www.ubuntu.com/download/desktop At least 60GByte free space.
IMPORTANT
Do not use other Ubuntu releases, other than recommended above.
For 64-bit Ubuntu 14.04
The complete Android host requirments: source.android.com/source/initializing.html Also you can refer to Software Build and Installation Guide, Linux Android.
The following command installs the required packages for setting up the android build host:
First: $ sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
In addition to the packages requested on the Android website, the following packages are also needed:
Installing the OpenJDK
The master branch of Android in the Android Open Source Project (AOSP) requires Java 7. On Ubuntu, use OpenJDK. Be aware that you must use OpenJDK opposed to previous versions that used SUN Java.
Java 7: For the latest version of Android
$ sudo apt-get update $ sudo apt-get install openjdk-7-jdk
Optionally, update the default Java version by running:
$ sudo update-alternatives --config java $ sudo update-alternatives --config javac
Additional packages
In addition to the packages requested on the Android website, the following packages are also needed:
$ 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
The build machine should have at least 60GB of free space to complete the build process.
Please refer to the AOSP documentation for latest information and instructions for setting up other Ubuntu versions http://source.android.com/source/initializing.html
Comment for build error: If this is the first time you build on a 64bit machine you may encounter some error releated to lzo library and other. https://community.freescale.com/thread/303536 has detail information how to fix this.
Obtain Variscite's BSP
Please download Android Board Support Package file from Variscite's FTP site.
Contact Variscite support for FTP credentials.
Unpack Variscite's Android Release Package
$ mkdir ~/dart-sd410 $ cd ~/dart-sd410 $ unzip ~/Downloads/variscite_bsp_vla.br_.1.2.4-01810-8x16.0-3.zip $ cd source/
Build Android Images
The following commands will download the full Android release from different Git repositories and build the Android images. It may take a very long time depending on Internel connection, Build machine, and remote servers. The process may fail fetching the repositories, in this case it can be started again.
Change to Android top level directory.
$ cd ~/var_ll_500_100/ll_500_100_build $ chmod +x DB410c_build.sh The file DB410c_build.sh can be adited and parameter $BUILD_MACHINE changed to follow the build machine. The best setting is number of threads of the CPU minus 2. $ ./DB410c_build.sh
Build Android Images
The following commands will download the full Android release from different Git repositories and build the Android images. It may take a very long time depending on Internel connection, Build machine, and remote servers. The process may fail fetching the repositories, in this case it can be started again.
Change to Android top level directory.
$ cd ~/var_ll_500_100/ll_500_100_build $ chmod +x DB410c_build.sh The file DB410c_build.sh can be adited and parameter $BUILD_MACHINE changed to follow the build machine. The best setting is number of threads of the CPU minus 2. $ ./DB410c_build.sh