sunyanwen / BPI-S905X3-Android9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BPI-S905X3-Android9


Prepare

Get the docker image from Sinovoip Docker Hub , Build the android source with this docker environment.

Other environment requirements, please refer to google Android's official build environment requirements and set up guide

Download the toolchains and extract each tarball to /opt/ and set the PATH before build

$ export PATH=$PATH:/opt/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin
$ export PATH=$PATH:/opt/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin
$ export PATH=$PATH:/opt/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin
$ export PATH=$PATH:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin

Get source code

$ git clone https://github.com/BPI-SINOVOIP/BPI-S905X3-Android9

Because github limit 100MB size for single file, please download the oversize files and merge them to correct directory before build.


Build

$ source env.sh
$ ./device/bananapi/common/quick_compile.sh

[NUM]   [       PROJECT]     [  SOC TYPE]  [      HARDWARE TYPE]
---------------------------------------------------------------
[ 1]    [       m5_mbox]     [    S905X3]  [        BANANAPI_M5]
[ 2]    [     m5_tablet]     [    S905X3]  [        BANANAPI_M5]
...
---------------------------------------------------------------
please select platform type (default 1(Ampere)):2
Select compile Android verion type lists:
[NUM]   [Android Version]
[  1]   [AOSP]
---------------------------------------------------------------
Please select Android Version (default 1 (AOSP)):1
...

Flash

The target usb download image is out/target/product/bananapi_*/aml_upgrade_package.img, flash it to your device by AML Usb_Burning_Tool or Burn_Card_Maker. Please refer to Bananapi M5 wiki for how to flash the target image.

About