THE OFFICIAL ORANGE PI USER'S GUIDE
38
Chapter 5
Building Linux from
source
Build your own Linux image with
customizations
L
inux images for Orange Pi Zero2 can be easily built by the build script
specially made for Orange Pi boards. The build script can make server and
desktop versions of Debian and Ubuntu.
Orange Pi build script based upon Armbian build script. We will make a few different
images as an example.
Get the Build script source
The compilation of the Linux is done on a PC with Ubuntu 18.04 installed. Other
versions of Ubuntu systems may have some differences
We will need Git tool for download the source repository. You can install Git using
following commands
test@test:~$ sudo apt update
test@test:~$ sudo apt install git
Download the source repository using the following command.
test@test:~$ git clone https://github.com/orangepi-xunlong/orangepi-build.git