i.MX8 - Nitrogen8M - Android - Building Android

From RidgeRun Developer Connection
< IMX8‎ | Nitrogen8M‎ | Android
Jump to: navigation, search


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
Previous: Nitrogen8M/Android Index Next: Nitrogen8M/Android/Installing_an_image





For Android 7.x (Nougat)

Recommended OS: Ubuntu 16.04

Installing dependencies

Android dependencies

sudo apt-get install openjdk-8-jdk
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

Freescale dependencies

sudo apt-get install uuid uuid-dev lzop gperf liblz-dev liblzo2-2 \
liblzo2-dev u-boot-tools flex mtd-utils android-tools-fsutils bc

Getting the source code

Getting repo tool

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH

Register in Boundary Devices's page in order to get access to the source and send your SSH public key

Test your access with the following command:

ssh git@linode.boundarydevices.com

Download the source code with repo:

mkdir myandroid
cd myandroid
repo init -u git://github.com/boundarydevices/android-manifest.git -b boundary-imx-n7.1.1_1.0.0-ga
repo sync

The -b parameter select the Android version, other version are shown below:

  • KitKat 4.4.3: boundary-imx-kk4.4.3_2.0.1-ga
  • Lollipop 5.1.1: boundary-imx-l5.1.1_2.1.0-ga
  • Marshmallow 6.0.1: boundary-imx-m6.0.1_1.0.0-ga
  • Nougat 7.1.1: boundary-imx-n7.1.1_1.0.0-ga

Build instructions

Set the environment with the next command:

~/myandroid$ source build/envsetup.sh

Choose target board from the list

~/myandroid$ lunch

Build the image

~/myandroid$ make 2>&1 | tee build.out

In order to flash the image, go to the section flashing images.


Previous: Nitrogen8M/Android Index Next: Nitrogen8M/Android/Installing an image