Creating Android Image for ppc-4210

From Estone Technology Wiki
Jump to: navigation, search


Note: The Android Marshmallow 6.0 was mostly tested in the 14.04 x64 Ubuntu.


CPU - 2 Core Processors
Memory Size - 4GB
Disk Space - 150GB
Operating System - Ubuntu 14.04 LTS


Install required packages. Open Terminal and type commands below:

$ sudo apt-get update
$ sudo apt-get install uuid uuid-dev zlib1g-dev liblz-dev liblzo2-2 liblzo2-dev lzop
$ sudo apt-get install git-core curl u-boot-tools mtd-utils android-tools-fsutils
$ sudo apt-get install openjdk-7-jdk gnupg flex bison gperf libsdl1.2-dev libesd0-dev
$ sudo apt-get install libwxgtk3.0 squashfs-tools build-essential zip libncurses5-dev
$ sudo apt-get install libncurses5-dev schedtool libxml2 libxml2-utils xsltproc libc6-dev
$ sudo apt-get install schedtool g++-multilib lib32z1-dev lib32readline-gplv2-dev gcc-multilib 
$ sudo apt-get install libswitch-perl gcc-arm-linux-gnueabihf libssl1.0.0 libssl-dev

Configure git account:

$ git config --global "First Last"
$ git config --global ""

Create repo:

$ cd ~
$ mkdir ppc4210-android
$ cd ppc4210-android
$ mkdir bin
$ curl > ~/ppc4210-android/bin/repo
$ chmod a+x ~/ppc4210-android/bin/repo
$ export PATH=${PATH}:~/ppc4210-android/bin

Getting Android source code:

Download Android 6.0.1 source code:

$ wget
$ wget
$ wget
$ cat android-source-imx6-6.0.1-part* > filedir.tar.gz
$ tar -xvf filedir.tar.gz


Update all source codes from us for the unit:

$ cd android/
$ repo init -u
$ repo sync

Compiling images

Setting up build environment:

$ source build/

Selecting product to build:

$ lunch sabresd_6dq-user

Compiling image:

$ make

Note: If "Make completed successful" appears the compilation is successful

Adding images into MfgTool to flash the unit:

$ ./build/hb-tools/ MFG

After completion, the file as PPC-2230-MNC-HABEY-*.zip is used.

Unzip the *.zip file to get the mfgtools

How to build partial images:

Building kernel image:

$ ./build/hb-tools/ k

Building uboot image:

$ ./build/hb-tools/ u

Building boot image:

$ ./build/hb-tools/ b

Building system image:

$ ./build/hb-tools/ a

Building recovery image:

$ ./build/hb-tools/ OTA

Pre-built Android 6 MFG Image

Follow the link below to download an already pre-built stock android image for the ppc-4210

Note: Download image and unzip image in your host system (Windows Required), then follow the instructions in the following section to install on your target system

Flashing Image

  • Preparation:

Set the boot switch to "2"


Connect the board to a Windows OS host using OTG cable.


Using mfgtools that has been extracted above to flash. Execute the ppc-2230-android.vbs:

Click Start to flash the image.
The flashing process is done once two processing bars turned to green.
Now, click Stop and Exit the tool.

  • Starting up:

Set the boot switch to "1"


Plug in the PoE-Ethernet cable and power on


  • Now, it's running android