Difference between revisions of "PPC-4310 Android 8 Image"

From Estone Technology Wiki
Jump to: navigation, search
(Build PPC-4310 Android 8 Image)
(Download Android 8 Source Code)
Line 102: Line 102:
 
</code>
 
</code>
  
== Download Android 8 Source Code ==
+
== Download & Extract Android 8 Source Code ==
 
<br>
 
<br>
 
<B>Note:</B> Download the Android 8 source code for PPC-4310 <br>
 
<B>Note:</B> Download the Android 8 source code for PPC-4310 <br>

Revision as of 17:30, 10 September 2019

Requirements

  • Below are the minimum requirements for the host system to be able to compile the PPC-4310 Android 8 Image from source

Host Minimum Requirements:
Minimum RAM - 16GB RAM
Minimum Hard Disk - 300GB Hard Disk


Host Machine:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Download Dependencies


  • Download dependencies on host system before compile.

$ sudo apt-get update

$ 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 libgl1-mesa-dev libxml2-utils xsltproc unzip

$ 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

$ sudo apt-get install android-tools-fsutils

$ sudo apt-get install openjdk-8-jdk

$ sudo apt-get install device-tree-compiler

$ sudo apt-get install gdisk

$ sudo apt-get install m4

$ sudo apt-get install libz-dev

Git Setup


  • Setup your Git for Android 8 Project

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

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

$ git config --list

Download & Extract Android 8 Source Code


Note: Download the Android 8 source code for PPC-4310
$ cd ~

$ wget -c https://www.dropbox.com/s/5rlgrtjmq2akkab/part00?dl=0

$ wget -c https://www.dropbox.com/s/p7g7sqnm1kqty7p/part01?dl=0

$ wget -c https://www.dropbox.com/s/b9jsfo0kefy0d0e/part02?dl=0

$ wget -c https://www.dropbox.com/s/r1sargiv1zze3yv/part03?dl=0


  • Concatenate the downloaded Android 8 Source code

$ cat part0* > filedir.tar.gz


  • Extract the Android Source code

$ tar -xvf filedir.tar.gz

$

$

Setting up repo


$ cd ~

$ mkdir bin

$ cd bin

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

$ chmod a+x ~/bin/repo

$ export PATH=${PATH}:~/bin

$ source ~/imx-o8.1.0_1.3.0_8m/imx_android_setup.sh

$ export MY_ANDROID=~/android_build

Build PPC-4310 Android 8 Image


Note: Instructions below are to compile the PPC-4310 Android 8 Image

$ cd ${MY_ANDROID}

$ ./prebuilts/sdk/tools/jack-admin stop-server

$ ./prebuilts/sdk/tools/jack-admin start-server

$ export ARCH=arm64

$ export CROSS_COMPILE=~/android_build/prebuilts/gcc/linux-x86/aarch64/aarch64-linuxandroid-4.9/bin/aarch64-linux-android-

$ export LC_ALL=C

$ source build/envsetup.sh

$ lunch evk_8mq-userdebug

$ make 2>&1 | tee build-log.txt