This branch will be developed further and will receive some updates and improvements only in this repository.
If you use this branch, then please open bug reports only in this repository and please do not discuss it on the Armbian forum.
- Builds custom kernel, image or a distribution optimized for low resource HW such as single board computers,
- Include filesystem generation, low-level control software, kernel image and bootloader compilation,
- Provides a consistent user experience by keeping system standards across different platforms.
- x86_64 or aarch64 machine with at least 2GB of memory and ~45GB of disk space for a virtual machine, container or bare metal installation
- Ubuntu Jammy 22.04.x amd64 or aarch64 for native building or any Docker capable amd64 / aarch64 Linux for containerised
- Superuser rights (configured sudo or root access).
apt-get -y install git
git clone --depth=1 --branch=pbs-master https://github.com/The-going/armbian-build
cd build
./compile.sh
- Interactive graphical interface.
- The workspace will be prepared by installing the necessary dependencies and sources.
- It guides the entire process until a kernel package or ready-to-use image of the SD card is created.
Show work in progress areas in interactive mode:
./compile.sh EXPERT="yes"
Run build framework inside Docker container:
./compile.sh docker
Build minimal CLI Armbian Focal image for Orangepi Zero. Use modern kernel and write image to the SD card:
./compile.sh \
BOARD=orangepizero \
BRANCH=current \
RELEASE=focal \
BUILD_MINIMAL=yes \
BUILD_DESKTOP=no \
BUILD_ONLY=default \
KERNEL_CONFIGURE=no \
CARD_DEVICE="/dev/sdX"
Build or rebuild the system source package in an isolated chroot environment
Exampe for htop
:
mkdir -p userpatches/packages/deb-build/htop
./compile.sh BUILD_ONLY="chroot,htop"
There is a command line option for debugging:
./compile.sh BUILD_ONLY="chroot,htop" CMDLINE="yes"
...
cd /root
./build.sh
...
βββ cache Work / cache directory
βΒ Β βββ rootfs Compressed userspace packages cache
βΒ Β βββ sources Kernel, u-boot and various drivers sources.
βΒ Β βββ toolchains External cross compilers from Linaroβ’ or ARMβ’
βββ config Packages repository configurations
βΒ Β βββ targets.conf Board build target configuration
βΒ Β βββ boards Board configurations
βΒ Β βββ bootenv Initial boot loaders environments per family
βΒ Β βββ bootscripts Initial Boot loaders scripts per family
βΒ Β βββ cli CLI packages configurations per distribution
βΒ Β βββ desktop Desktop packages configurations per distribution
βΒ Β βββ distributions Distributions settings
βΒ Β βββ kernel Kernel build configurations per family
βΒ Β βββ sources Kernel and u-boot sources locations and scripts
βΒ Β βββ templates User configuration templates which populate userpatches
βΒ Β βββ torrents External compiler and rootfs cache torrents
βββ extensions extend build system with specific functionality
βββ lib Main build framework libraries
βββ output Build artifact
βΒ Β βββ deb Deb packages
βΒ Β βββ images Bootable images - RAW or compressed
βΒ Β βββ debug Patch and build logs
βΒ Β βββ config Kernel configuration export location
βΒ Β βββ patch Created patches location
βββ packages Support scripts, binary blobs, packages
βΒ Β βββ blobs Wallpapers, various configs, closed source bootloaders
βΒ Β βββ bsp-cli Automatically added to armbian-bsp-cli package
βΒ Β βββ bsp-desktop Automatically added to armbian-bsp-desktopo package
βΒ Β βββ bsp Scripts and configs overlay for rootfs
βΒ Β βββ deb-build Source packages in expanded form or rules
βββ patch Collection of patches
βΒ Β βββ atf ARM trusted firmware
βΒ Β βββ kernel Linux kernel patches
| |Β Β βββ family-branch Per kernel family and branch
βΒ Β βββ misc Linux kernel packaging patches
βΒ Β βββ u-boot Universal boot loader patches
| βββ u-boot-board For specific board
| Β Β βββ u-boot-family For entire kernel family
βββ tools Tools for dealing with kernel patches and configs
βββ userpatches User: configuration patching area
βββ lib.config User: framework common config/override file
βββ config-default.conf User: default user config file
βββ customize-image.sh User: script will execute just before closing the image
βββ packages
| βββ deb-build User: Source packages in expanded form or archive or rules
Β Β βββ atf User: ARM trusted firmware
Β Β βββ kernel User: Linux kernel per kernel family
Β Β βββ misc User: various
Β Β βββ u-boot User: universal boot loader patches
But you get an error when assembling or the image is not working properly. Please open a question/issues.
And you need additional functionality in the image assembly system for a small board.
Create a discussion/issues and/or add your changes and make a pull request.
This software is published under the GPL-2.0 License license.