range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 142 www.xunlong.tv
test@test:~$ sudo cp jdk-6u31-linux-x64.bin /usr/lib/jvm/
test@test:~$ cd /usr/lib/jvm/
test@test:~ /usr/lib/jvm$ sudo chmod a+x ./jdk-6u31-linux-x64.bin
test@test:~ /usr/lib/jvm$ sudo ./jdk-6u31-linux-x64.bin
test@test:~ /usr/lib/jvm$ ls
jdk1.6.0_31 jdk-6u31-linux-x64.bin
3) Export java environment variables
test@test:~$ export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31
test@test:~$ export JRE_HOME=/usr/lib/jvm/jdk1.6.0_31/jre
test@test:~$ export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
test@test:~$ export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH
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 libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
5) The location where the cross-compilation tool chain used in the compilation process
is stored is
test@test:~$ cd OrangePiH3/lichee/brandy/gcc-linaro
test@test:~/OrangePiH3/lichee/brandy/gcc-linaro$ ls
arm-linux-gnueabi bin lib libexec
6.1.3. Compile android image
6.1.3.1. Compile the Linux kernel source code
1) The compilation environment needs to be configured when compiling the kernel for
the first time. After the configuration, the kernel code will be compiled automatically
test@test:~/OrangePiH3$ cd lichee
test@test:~/OrangePiH3/lichee$ ./build.sh config