8,367
edits
Changes
no edit summary
=== '''Build a compilation environment''' ===
* '''Install JDK'''
Android 7.0 development can only use the version of openjdk8, higher or lower than this version and Oracle's JDK will cause the compilation to fail. Openjdk-8 installation command is as follows:
</div>
* Configure '''Configure JAVA environment variables'''
For example, the installation path is / usr / lib / jvm / java-8-openjdk-amd64. You can run the following command in the terminal to configure the environment variables:
</div>
* '''Install platform support software '''
For Ubuntu 14.04:
lichee/tools #Solution hardware configuration, packaging tools, etc.
</div>
<br>* Kernel '''Kernel compilation process'''<br>
Enter the following command in the lichee directory:
<div style="background:#f1f1f1;border:1px solid #000;">
$ cd OrangePi_3/lichee<br>
$ ./build.sh config<br>
<br>
Welcome to mkscript setup progress<br>
All available chips:<br>
<p style="padding-left:20px;">
# sun50iw1p1
# sun50iw2p1
# sun50iw6p1
# sun8iw11p1
# sun8iw12p1
# sun8iw6p1
# sun8iw7p1
# sun8iw8p1
# sun9iw1p1
</p>
Choice: 2<br>
All available platforms:
<p style="padding-left:20px;">
# android
# dragonboard
# linux
# eyeseelinux
</p>
Choice: 0<br>
All available business:
<p style="padding-left:20px;">
# 5.1
# 4.4
# 7.x
</p>
Choice: 2
</div>
<br>
The output after compilation is as follows:<br>
<br>
<div style="background:#f1f1f1;border:1px solid #000;">
regenerate rootfs cpio <br>
15757 blocks<br>
17099 blocks<br>
build_ramfs<br>
Copy boot.img to output directory ...<br>
Copy modules to target ...<br>
<br>
sun50iw6p1 compile Kernel successful<br>
INFO: build kernel OK.<br>
<br>
INFO: build rootfs ...<br>
INFO: skip make rootfs for android<br>
INFO: build rootfs OK.<br>
<span style="border-top:1px dashed #000;border-bottom:1px dashed #000;display:inline-block;">build sun50iw6p1 android 7.x lichee OK</span>
</div>