What do I need?

  • x86/x64 machine running any OS; 4G ram, SSD, quad core (recommended),
  • VirtualBox or similar virtualization software (highly recommended with a minimum of 20GB hard disk space for the virtual disk image),
  • Setting up VirtualBox and compile environment is easy following our Vagrant tutorial,
  • when you don’t want to build whole OS images (KERNEL_ONLY=yes) then Docker, systemd-nspawn or other containerization software can be used,
  • Only supported compilation environment is Ubuntu Xenial 16.04 x64 (no other releases are supported! It has to be exactly 16.04 otherwise default compiler versions might not match so if you’re on an older Ubuntu release upgrade to 16.04 now, if you use a newer Ubuntu version start with 16.04 from scratch),
  • installed basic system, OpenSSH and Samba (optional),
  • no spaces in full path to the build script location allowed,
  • superuser rights (configured sudo or root shell).

Please note that system requirements (both hardware and OS/software) may differ depending on the build environment (Vagrant, Docker, Virtualbox, native).

How to start?

Login as root and run:

apt-get -y -qq install git
git clone --depth 1 https://github.com/armbian/build
cd build

Run the script


Make sure that full path to the build script does not contain spaces.

Providing build configuration

After the first run of compile.sh a new configuration file config-default.conf will be created. You may edit it to your needs or create different configuration files using it as a template.

Alternatively you can supply options as command line parameters to compile.sh Example:

./compile.sh BOARD=cubietruck BRANCH=next KERNEL_ONLY=yes RELEASE=xenial

Note: Option BUILD_ALL cannot be set to “yes” via command line parameter.

Using our automated build system

In case you don’t own proper gears to build on your own, you can make use of our automated build system. We recompile all packages every night (starting at 00:01 CEST) and we also produce few testing images - they are accessible on download server under board folder, subfolder “Nightly”. Packages, when they are successfully built, are published in the beta repository. You can switch to beta repository in armbian-config or by changing apt.armbian.com to beta.armbian.com in /etc/apt/sources.list.d/armbian.list.

Board beta images are defined in board configuration files which are located here. This is how typical board configuration looks like:

# A20 dual core 1Gb SoC
BOARD_NAME="Banana Pi"
MODULES="hci_uart gpio_sunxi rfcomm hidp sunxi-ir bonding spi_sun7i 8021q a20_tp #ap6211"
MODULES_NEXT="brcmfmac bonding"


If you want that our automated system start making images for this particular board, you need to alter parameters CLI_BETA_TARGET and DESKTOP_BETA_TARGET. Variants are depenendend from KERNEL_TARGET definitions and supported userlands: jessie, xenial, stretch. To edit those parameters you need to push changes to the build script. You need to fork a project and create a pull request and after it’s imported by one of the administrators, images will start to show up in appropriate folder.

If you want to enable Debian stretch desktop image with mainline kernel choose the following:




for command line interfaces Ubuntu Xenial based images with legacy kernel 3.4.113 or


for image with latest upstream development kernel.