Difference between revisions of "PPC-4407"

From Estone Technology Wiki
Jump to: navigation, search
(Compiling images)
Line 89: Line 89:
$ make  
$ make  
</code> <br>

Revision as of 19:25, 29 August 2019

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


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

System Files require:

boot (android/out/target/product/sabresd_6dq)
boot-imx6dl (android/out/target/product/sabresd_6dq)
boot-imx6q (android/out/target/product/sabresd_6dq)
boot-imx6q (android/out/target/product/sabresd_6dq)
system (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)

How to build partial images:

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:Copy the created system files to a directory(EMB-2230-MNC-10.1-HABEY-20190422-AUOv1.0\mfgtools\Profiles\Linux\OS Firmware\files\android\sabresd)

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