1. Development Environment

1.1 Environmental Requirements

It is recommended to use Ubuntu 22.04 or later for compilation. If you encounter an error, check the message and install the required packages accordingly. For other Linux distributions, adjustments to the packages may be needed. Besides the system requirements, hardware and software prerequisites also apply.

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 22.04

1.2 Install Libraries and Toolkits

PC OS

Network

Permission

Ubuntu 22.04

online

root

 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 libxml2-utils xsltproc zlib1g-dev:i386 dpkg-dev
 3sudo apt-get install libncurses5-dev
 4sudo apt-get install libsdl1.2-dev
 5sudo apt-get install lib32z-dev ccache
 6sudo apt-get install python3-pyelftools
 7sudo apt-get install libssl-dev
 8sudo apt-get install liblz4-tool
 9sudo ln -s /usr/bin/python3 /usr/bin/python
10sudo apt-get install device-tree-compiler
11sudo apt install apt-file
12sudo apt-file update
13sudo apt install libncurses5
14sudo apt-file find libncurses.so.5
15sudo apt-get install binfmt-support qemu-user-static live-build