2022-04-07 07:10:58 +08:00
< p align = "center" >
< a href = " #build -framework" >
< img src = ".github/armbian-logo.png" alt = "Armbian logo" width = "144" >
< / a > < br >
< strong > armbian build framework< / strong > < br >
< / p >
2015-12-02 20:33:32 +01:00
2021-02-01 17:01:46 +01:00
[](https://github.com/armbian/build/commits)
2022-01-24 17:11:38 +01:00
[](https://github.com/armbian/build/actions/workflows/build-train.yml)
2020-04-14 22:33:10 +02:00
[](https://twitter.com/intent/follow?screen_name=armbian)
2022-04-07 07:10:58 +08:00
[](https://discord.com/invite/gNJ2fPZKvc)
2021-10-21 22:30:51 +02:00
[](https://liberapay.com/armbian)
2020-02-08 20:55:06 -05:00
2020-02-06 22:57:41 +01:00
## Table of contents
2015-12-02 20:33:32 +01:00
2020-02-06 22:57:41 +01:00
- [What this project does? ](#what-this-project-does )
2022-04-07 07:10:58 +08:00
- [Getting started ](#getting-started )
2020-02-06 22:57:41 +01:00
- [Compare with industry standards ](#compare-with-industry-standards )
2022-04-07 07:10:58 +08:00
- [Download prebuilt images ](#download-prebuilt-images )
- [Project structure ](#project-structure )
- [Contribution ](#contribution )
2020-02-06 22:57:41 +01:00
- [Support ](#support )
2022-04-07 07:10:58 +08:00
- [Contact ](#contact )
- [Contributors ](#contributors )
2020-02-06 22:57:41 +01:00
- [Sponsors ](#sponsors )
2022-04-07 07:10:58 +08:00
- [License ](#license )
2020-07-24 20:32:40 +02:00
2020-02-06 22:57:41 +01:00
## What this project does?
2015-12-02 20:33:32 +01:00
2022-04-07 07:10:58 +08:00
- Builds custom Linux optimized for [single board computers(SBCs) ](https://en.wikipedia.org/wiki/Single-board_computer ).
- Including filesystem generation, low-level control software, kernel image compilation and bootloader compilation.
- Provides a consistent user experience by keeping system standards across different platforms.
2017-01-04 02:57:03 -07:00
2022-04-07 07:10:58 +08:00
## Getting started
2017-01-04 02:57:03 -07:00
2022-04-07 07:10:58 +08:00
### Prepare your environment
2021-06-24 20:50:00 +08:00
2022-01-24 17:11:38 +01:00
- x64 / aarch64 machine with at least 2GB of memory and ~35GB of disk space for a VM, container or native OS,
2022-07-15 10:44:25 +02:00
- Ubuntu Jammy 22.04 x64 or aarch64 for native building or any [Docker ](https://docs.armbian.com/Developer-Guide_Building-with-Docker/ ) capable x64 / aarch64 Linux for containerised,
2022-04-07 07:10:58 +08:00
- Superuser rights (configured sudo or root access).
2015-12-02 20:33:32 +01:00
2022-04-07 07:10:58 +08:00
### Simply start with the build script
2015-12-02 20:33:32 +01:00
2022-04-07 07:10:58 +08:00
```bash
2020-04-25 21:25:05 +02:00
apt-get -y install git
2020-02-06 22:57:41 +01:00
git clone https://github.com/armbian/build
cd build
./compile.sh
```
2022-04-07 07:10:58 +08:00
2020-02-06 22:57:41 +01:00
< a href = " #how -to-build-an-image-or-a-kernel" >< img src = ".github/README.gif" alt = "Armbian logo" width = "100%" ></ a >
2022-04-07 07:10:58 +08:00
- 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.
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
### Build parameter examples
2020-02-06 22:57:41 +01:00
Show work in progress areas in interactive mode:
2022-04-07 07:10:58 +08:00
```bash
2020-02-06 22:57:41 +01:00
./compile.sh EXPERT="yes"
```
2022-01-24 17:11:38 +01:00
Run build framework inside Docker container:
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
```bash
2020-02-06 22:57:41 +01:00
./compile.sh docker
```
2021-06-26 23:36:47 +02:00
Build minimal CLI Armbian Focal image for Orangepi Zero. Use modern kernel and write image to the SD card:
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
```bash
2021-06-26 23:36:47 +02:00
./compile.sh \
BOARD=orangepizero \
BRANCH=current \
RELEASE=focal \
BUILD_MINIMAL=yes \
BUILD_DESKTOP=no \
KERNEL_ONLY=no \
KERNEL_CONFIGURE=no \
CARD_DEVICE="/dev/sda"
2020-02-06 22:57:41 +01:00
```
2022-07-31 17:46:17 +03:00
More information:
- [Building Armbian ](https://docs.armbian.com/Developer-Guide_Build-Preparation/ ) — how to start, how to automate;
- [Build options ](https://docs.armbian.com/Developer-Guide_Build-Options/ ) — all build options;
- [Building with Docker ](https://docs.armbian.com/Developer-Guide_Building-with-Docker/ ) — how to build inside container;
- [User configuration ](https://docs.armbian.com/Developer-Guide_User-Configurations/ ) — how to add packages, patches and override sources config;
2020-02-06 22:57:41 +01:00
## Compare with industry standards
Check similarity, advantages and disadvantages compared with leading industry standard build software.
Function | Armbian | Yocto | Buildroot |
|:--|:--|:--|:--|
2021-06-24 20:50:00 +08:00
| Target | general purpose | embedded | embedded / IOT |
2020-02-06 22:57:41 +01:00
| U-boot and kernel | compiled from sources | compiled from sources | compiled from sources |
2021-06-24 20:50:00 +08:00
| Board support maintenance | complete | outside | outside |
2020-02-06 22:57:41 +01:00
| Root file system | Debian or Ubuntu based| custom | custom |
| Package manager | APT | any | none |
| Configurability | limited | large | large |
| Initramfs support | yes | yes | yes |
| Getting started | quick | very slow | slow |
| Cross compilation | yes | yes | yes |
2017-01-15 00:48:36 +03:00
2022-04-07 07:10:58 +08:00
## Download
2017-01-15 00:48:36 +03:00
2022-04-07 07:10:58 +08:00
< https: / / www . armbian . com / download / >
2018-05-24 15:05:11 +02:00
2020-02-06 22:57:41 +01:00
Armbian [releases ](https://docs.armbian.com/Release_Changelog/ ) quarterly at the end of [February, May, August, November ](https://github.com/armbian/documentation/blob/master/docs/Process_Release-Model.md ). You are welcome to propose changes to our default [images build list ](https://github.com/armbian/build/blob/master/config/targets.conf ).
2018-05-24 15:05:11 +02:00
2022-04-07 07:10:58 +08:00
## Project structure
2020-02-06 22:57:41 +01:00
```text
2020-06-30 22:59:24 +02:00
├── cache Work / cache directory
│ ├── rootfs Compressed vanilla Debian and Ubuntu rootfilesystem cache
│ ├── sources Kernel, u-boot and various drivers sources. Mainly C code
│ ├── 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
2021-06-26 23:36:47 +02:00
│ ├── cli CLI packages configurations per distribution
│ ├── desktop Desktop packages configurations per distribution
│ ├── distributions Distributions settings
2020-06-30 22:59:24 +02:00
│ ├── 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
2022-01-24 17:11:38 +01:00
├── lib Main build framework libraries
2020-06-30 22:59:24 +02:00
├── 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
2021-07-07 16:06:00 +02:00
│ ├── bsp-cli Automatically added to armbian-bsp-cli package
│ ├── bsp-desktop Automatically added to armbian-bsp-desktopo package
2020-06-30 22:59:24 +02:00
│ ├── bsp Scripts and configs overlay for rootfs
│ └── extras-buildpkgs Optional compilation and packaging engine
├── 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
└── userpatches User: configuration patching area
2022-01-24 17:11:38 +01:00
├── lib.config User: framework common config/override file
2020-06-30 22:59:24 +02:00
├── config-default.conf User: default user config file
├── customize-image.sh User: script will execute just before closing the image
├── atf User: ARM trusted firmware
├── kernel User: Linux kernel per kernel family
├── misc User: various
└── u-boot User: universal boot loader patches
2020-02-06 22:57:41 +01:00
```
2022-04-07 07:10:58 +08:00
## 🙌 Contribution
2021-06-24 20:50:00 +08:00
2022-04-07 07:10:58 +08:00
- You don't need to be a programmer to help! [Check out our list ](https://forum.armbian.com/staffapplications/ ) choose what you wanna do ❤️
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- The easiest way to help is by "Starring" our repository - it helps more people find our code.
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- You also can maintain and develop [docs ](https://github.com/armbian/documentation ), [CI ](https://github.com/armbian/ci-testing-tools ), [autotests ](https://github.com/armbian/autotests ), [seed torrents ](https://forum.armbian.com/topic/4198-seed-our-torrents/ ), help on [forum moderating ](https://forum.armbian.com/topic/12631-help-on-forum-moderating/ ), [project administration ](https://forum.armbian.com/forum/39-armbian-project-administration/ ), [costs ](https://www.armbian.com/donate ).
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
Please make sure to read the [Contributing Guide ](.github/CONTRIBUTING.md ) before you write any code.
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
## Support
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- Community support
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
Armbian is free software and provides **best effort help** through [community forums ](https://forum.armbian.com/ ). If you can't find answer there and/or with help of [general project search engine ](https://www.armbian.com/search ) and [documentation ](https://docs.armbian.com ), consider [hiring an expert ](https://www.debian.org/consultants/ ).
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- Personal support
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
Personal support limited to active project supporters and sponsors. The shortest way to become one and receive our attention is a four figure [donation to our non-profit project ](https://www.armbian.com/donate ).
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
## Contact
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- [Forums ](https://forum.armbian.com ) for Participate in Armbian
- IRC: `#armbian` on Libera.chat
2022-07-15 10:44:25 +02:00
- Discord: [http://discord.armbian.com ](http://discord.armbian.com )
- Follow [@armbian ](https://twitter.com/armbian ) on Twitter or [LinkedIn ](https://www.linkedin.com/company/armbian ).
2022-04-07 07:10:58 +08:00
- Bugs: [issues ](https://github.com/armbian/build/issues ) / [JIRA ](https://armbian.atlassian.net/jira/dashboards/10000 )
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
## Contributors
2020-02-06 22:57:41 +01:00
2022-07-15 10:44:25 +02:00
Thank you to all the people who already contributed Armbian!
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
< a href = "https://github.com/armbian/build/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=armbian/build" / >
< / a >
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
### Also
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
- [Current and past contributors ](https://github.com/armbian/build/graphs/contributors ), our families and friends.
- [Support staff ](https://forum.armbian.com/members/2-moderators/ ) that keeps forums usable.
- [Individuals ](https://forum.armbian.com/ ) that help with their ideas, reports and [donations ](https://www.armbian.com/donate ).
2020-02-06 22:57:41 +01:00
## Sponsors
2022-04-07 07:10:58 +08:00
Most of the project is sponsored with a work done by volunteer collaborators, while some part of the project costs are being covered by the industry. We would not be able to get this far without their help.
2020-02-06 22:57:41 +01:00
2022-04-07 07:10:58 +08:00
[Would you like your name to appear below? ](https://www.armbian.com/#contact )
2020-02-06 22:57:41 +01:00
2022-01-24 17:11:38 +01:00
< a href = "https://www.armbian.com/download/?tx_maker=xunlong" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2018/03/orangepi-logo-150x150.png" width = "122" height = "122" > < / a > < a href = "https://www.armbian.com/download/?tx_maker=friendlyelec" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2018/02/friendlyelec-logo-150x150.png" width = "122" height = "122" > < / a > < a href = "https://k-space.ee" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2018/03/kspace-150x150.png" width = "122" height = "122" > < / a > < a href = "https://www.innoscale.net" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2020/07/innoscale-2-150x150.png" width = "122" height = "122" > < / a > < a href = "https://www.armbian.com/download/?tx_maker=olimex" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2018/02/olimex-logo-150x150.png" width = "122" height = "122" > < / a > < a href = "https://www.armbian.com/download/?tx_maker=kobol" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2020/06/Kobol_logo-150x150.png" width = "122" height = "122" > < / a > < a href = "https://github.com/WorksOnArm/cluster/issues/223" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2020/11/work-on-arm-150x150.png" width = "122" height = "122" > < / a > < a href = "https://fosshost.org/" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2020/11/foss-host-150x150.png" width = "122" height = "122" > < / a > < a href = "https://nlnet.nl/" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2022/01/nlnet-fundation-150x150.png" width = "122" height = "122" > < / a > < a href = "#" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2021/06/lanecloud-150x150.png" width = "122" height = "122" > < / a > < a href = "https://www.khadas.com/" target = "_blank" > < img border = 0 src = "https://www.armbian.com/wp-content/uploads/2021/05/khadas-150x150.png" width = "122" height = "122" > < / a >
2022-04-07 07:10:58 +08:00
## License
This software is published under the GPL-2.0 License license.