From Estone Technology Wiki
Revision as of 22:29, 3 September 2019 by Charles (Talk | contribs) (Flashing Image)

Jump to: navigation, search

Creating Android Image for ppc-4407

Note: The Android Marshmallow 6.0 image was tested on Ubuntu-14.04LTS x64 host system.


Minimum Requirements:
CPU - 2 Core Processor
Memory Size - 4GB
Disk Space - 150GB
Operating System - Ubuntu 14.04 LTS


Install Dependencies

  • Install required packages on host system.

$ 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

Git Configuration

  • Configure git account

$ git config --global user.name "First Last"

$ git config --global user.email "first.last@company.com"

$ git config --list

Setting up Repo Utility

  • Create repo

$ cd ~

$ mkdir ppc4407-android

$ cd ppc4407-android

$ mkdir bin

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/ppc4407-android/bin/repo

$ chmod a+x ~/ppc4407-android/bin/repo

$ export PATH=${PATH}:~/ppc4407-android/bin

Download Android Source Code

  • Getting Android source code

Download Android 6.0.1 source code:
$ wget https://www.dropbox.com/s/wtb9y9c3dnxsglz/android-source-imx6-6.0.1-part1.tar.bz2?dl=0

$ wget https://www.dropbox.com/s/1lidgac6svw8qeh/android-source-imx6-6.0.1-part2.tar.bz2?dl=0

$ wget https://www.dropbox.com/s/5ukyd0s8ggrl3xu/android-source-imx6-6.0.1-part3.tar.bz2?dl=0

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

$ tar -xvf filedir.tar.gz

Important: Update all source codes from us for the unit
$ cd android/

$ repo init -u https://github.com/estonetechnology/ppc-4407-android-bsp-platform-

$ repo sync

Compiling images

Setting up build environment:
$ source build/envsetup.sh

Selecting product to build:
$ lunch sabresd_6dq-user

Compiling image:
$ make

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

Required Files:
boot.img - (android/out/target/product/sabresd_6dq)
boot-imx6dl.img - (android/out/target/product/sabresd_6dq)
boot-imx6q.img - (android/out/target/product/sabresd_6dq)
recovery.img - (android/out/target/product/sabresd_6dq)
recovery-imx6dl.img - (android/out/target/product/sabresd_6dq)
recovery-imx6q.img - (android/out/target/product/sabresd_6dq)
system.img - (android/out/target/product/sabresd_6dq)
u-boot-imx6dl.imx - (android/out/target/product/sabresd_6dq)
u-boot-imx6q.imx - (android/out/target/product/sabresd_6dq)

Building Partial Android Image

Building kernel image:
$ ./build/hb-tools/make.sh k

Building uboot image:
$ ./build/hb-tools/make.sh u

Building boot image:
$ ./build/hb-tools/make.sh b

Building system image:
$ ./build/hb-tools/make.sh a

Building recovery image:
$ ./build/hb-tools/make.sh OTA

Pre-built Android 6 MFG Image

Follow the link below to download mfgtools for the ppc-4407

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

Note: To copy the created system files to a directory and overwrite the same file copy to the folder:
mfg-ppc4407-android-20190902\android-mfg\mfgtools\Profiles\Linux\OS Firmware\files\android\sabresd

Flashing Image


  • 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 script


  • Click Start to flash the image.


  • The flashing process is done once two processing bars turned to green.


  • Once the image is finished flashing click Stop button and Exit the tool.

Starting up:

  • Set the boot switch to "1"


  • Plug in the PoE-Ethernet cable or regular Power Adapter and power on to boot

  • Android image should boot at this point