1. Development Environment

1.1 Compiler Environment

It is recommended to use Ubuntu 18.04 or higher version for compilation. If you encounter an error during compilation, you can check the error message and install the corresponding software packages accordingly. Other Linux versions may need to adjust the software package accordingly. In addition to the system requirements, there are other hardware and software requirements.

Hardware requirements

Software requirements

64-bit system, hard disk space should be

greater than 200G. If you do multiple

builds, you will need more hard drive space.

Ubuntu 18.04

1.2 Install Libraries and Toolkits

1sudo apt-get install u-boot-tools
2sudo 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-dri:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 dpkg-dev
3sudo apt-get install libncurses5-dev
4sudo apt-get install libsdl1.2-dev lib32z-dev ccache libssl-dev liblz4-tool
5sudo apt-get install python-pyelftools python3-pyelftools -y
6sudo apt-get install gcc-4.8
7sudo apt-get install g++-4.8

1.3 Install JDK

1sudo apt-get update
2sudo apt-get install openjdk-8-jdk