EasyManua.ls Logo

Orange Pi Zero 2 - Compile Android Image; Install Platform Support Software

Orange Pi Zero 2
58 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
43
THE OFFICIAL ORANGE PI USER'S GUIDE
b. Then use the following command to export java environment variables
test@test:~$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
test@test:~$ export PATH=$JAVA_HOME/bin:$PATH
test@test:~$ export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
3) Use Ubuntu 14.04 to compile the source code of android 10, you need to ensure
that Ubuntu 14.04 uses the linux 4.4 kernel, otherwise an error will be reported when
compiling, if the kernel is not linux 4.4, please upgrade the kernel
test@test:~$ uname -a
Linux ubuntu 4.4.0-142-generic #168~14.04.1-Ubuntu SMP Sat Jan 19 11:26:28
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
4) Install platform support software
test@test:~$ sudo apt-get update
test@test:~$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
test@test:~$ sudo apt-get install u-boot-tools
Compile android image
1) First configure the compilation environment
test@test:~$ cd longan
test@test:~/longan$ ./build.sh config
Welcome to mkscript setup progress
All available platform:
0. android
1. linux
Choice [android]: 0
All available ic:
0. h313
1. h616
2. h700
Choice [h616]: 1

Table of Contents