We treat now the bulding of the image Armbian for Orange PI PC. From the developer’s github
we find the steps to do the task.
From the Armbian site
the supported building envinronment is Ubuntu. In our test we use Ubuntu 16.04.1 LTS x86-64
and our Debian 8.5 envinroment used for the other tasks described on this site. With Ubuntu the compile.sh script installs all the required packages to build the image. On the Armbian web site we can find also various compilation options..
Using Debian 8.5 as host, we have to exectute some prerequisites tasks described below. In the case of issues execute the building on Ubuntu..
First we install the cross compilation envinronment in Debian
https://wiki.debian.org/CrossToolchains
We have to create the file crosstools.list in /etc/apt/sources.list.d
1 |
sudo vi /etc/apt/sources.list.d/crosstools.list |
Edit this file and add the line
1 |
deb http://emdebian.org/tools/debian/ jessie main |
Save the file and add the repository key using curl. We install the curl package
1 |
sudo apt-get install curl |
and add the key
1 |
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add - |
Now we are ready to install the packages and architecture as listed below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
sudo dpkg --add-architecture armhf sudo apt-get update sudo apt-get install autoconf sudo apt-get install ccache sudo apt-get install git sudo apt-get install qemu sudo apt-get install qemu-user-static sudo apt-get install dchroot sudo apt-get install debootstrap sudo apt-get install apt-cacher-ng sudo apt-get install pigz sudo apt-get install pv sudo apt-get install mpv sudo apt-get install u-boot-tools sudo apt-get install ntpdate sudo apt-get install device-tree-compiler sudo apt-get install pkg-config sudo apt-get install libusb-1.0-0-dev sudo apt-get install libusb-dev sudo apt-get install gcc-4.9-multilib sudo apt-get install crossbuild-essential-armhf |
At this point the procedure is the same on Ubuntu or Debian. We create a folder called armbian under orangepi folder in the home folder of the linux system; in our case the user is sviluppo
1 2 3 |
sviluppo@debian8:~/orangepi$ ls openelec sunxi sviluppo@debian8:~/orangepi$ mkdir armbian |
We clone the repository with the following command in a shell command window in the armbian folder
1 2 |
git clone https://github.com/igorpecovnik/lib --depth 1 cp lib/compile.sh . |
To build the image execute
1 |
./compile.sh |
When requested enter the root password and for our image select the options described below.
- Full OS image
- Orangepipc board
- default kernel
- Debian stable image
- Image with desktop envinronment
We find the image under the folder output/images ready to be transferred on a micro sd card as described in previous article