2022-04-06 23:10:58 +00:00
< p align = "center" >
< a href = "#build-framework" >
< img src = ".github/armbian-logo.png" alt = "Armbian logo" width = "144" >
< / a > < br >
2022-08-15 17:44:54 +00:00
< strong > Armbian Linux Build Framework< / strong > < br >
< br >
2022-08-19 18:49:18 +00:00
< a href = https://github.com/armbian/build/actions/workflows/build-train.yml > < img alt = "GitHub Workflow Status" src = "https://img.shields.io/github/workflow/status/armbian/build/Build%20train?logo=githubactions&label=Kernel%20compile&logoColor=white&style=for-the-badge" > < / a >
< a href = https://github.com/armbian/build/actions/workflows/build-all-desktops.yml > < img alt = "GitHub Workflow Status" src = "https://img.shields.io/github/workflow/status/armbian/build/Build%20All%20Desktops?logo=githubactions&logoColor=white&label=Images%20assembly&style=for-the-badge" > < / a >
< a href = https://github.com/armbian/build/actions/workflows/smoke-tests.yml > < img alt = "GitHub Workflow Status" src = "https://img.shields.io/github/workflow/status/armbian/build/Smoke%20tests%20on%20DUTs?logo=speedtest&label=Smoke%20test&style=for-the-badge" > < / a >
2022-08-15 17:44:54 +00:00
< br >
< br >
< a href = https://twitter.com/armbian > < img alt = "Twitter Follow" src = "https://img.shields.io/twitter/follow/armbian?logo=twitter&style=flat-square" > < / a >
< a href = http://discord.armbian.com/ > < img alt = "Discord" src = "https://img.shields.io/discord/854735915313659944?label=Discord&logo=discord&style=flat-square" > < / a >
< a href = https://liberapay.com/armbian > < img alt = "Liberapay patrons" src = "https://img.shields.io/liberapay/patrons/armbian?logo=liberapay&style=flat-square" > < / a >
2022-04-06 23:10:58 +00:00
< / p >
2015-12-02 19:33:32 +00:00
2022-08-15 17:44:54 +00:00
2020-02-09 01:55:06 +00:00
2020-02-06 21:57:41 +00:00
## Table of contents
2015-12-02 19:33:32 +00:00
2020-02-06 21:57:41 +00:00
- [What this project does? ](#what-this-project-does )
2022-04-06 23:10:58 +00:00
- [Getting started ](#getting-started )
2020-02-06 21:57:41 +00:00
- [Compare with industry standards ](#compare-with-industry-standards )
2022-04-06 23:10:58 +00:00
- [Download prebuilt images ](#download-prebuilt-images )
- [Project structure ](#project-structure )
- [Contribution ](#contribution )
2020-02-06 21:57:41 +00:00
- [Support ](#support )
2022-04-06 23:10:58 +00:00
- [Contact ](#contact )
- [Contributors ](#contributors )
2020-02-06 21:57:41 +00:00
- [Sponsors ](#sponsors )
2022-04-06 23:10:58 +00:00
- [License ](#license )
2020-07-24 18:32:40 +00:00
2020-02-06 21:57:41 +00:00
## What this project does?
2015-12-02 19:33:32 +00:00
2022-08-15 17:44:54 +00:00
- 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,
2022-04-06 23:10:58 +00:00
- Provides a consistent user experience by keeping system standards across different platforms.
2017-01-04 09:57:03 +00:00
2022-04-06 23:10:58 +00:00
## Getting started
2017-01-04 09:57:03 +00:00
2022-08-15 17:44:54 +00:00
### Basic requirements
2021-06-24 12:50:00 +00:00
2022-08-15 17:44:54 +00:00
- x64 or aarch64 machine with at least 2GB of memory and ~35GB of disk space for a virtual machine, container or bare metal installation,
2022-07-15 08:44:25 +00: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-06 23:10:58 +00:00
- Superuser rights (configured sudo or root access).
2015-12-02 19:33:32 +00:00
2022-04-06 23:10:58 +00:00
### Simply start with the build script
2015-12-02 19:33:32 +00:00
2022-04-06 23:10:58 +00:00
```bash
2020-04-25 19:25:05 +00:00
apt-get -y install git
2020-02-06 21:57:41 +00:00
git clone https://github.com/armbian/build
cd build
./compile.sh
```
2022-04-06 23:10:58 +00:00
2020-02-06 21:57:41 +00:00
< a href = "#how-to-build-an-image-or-a-kernel" > < img src = ".github/README.gif" alt = "Armbian logo" width = "100%" > < / a >
2022-04-06 23:10:58 +00: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 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
### Build parameter examples
2020-02-06 21:57:41 +00:00
Show work in progress areas in interactive mode:
2022-04-06 23:10:58 +00:00
```bash
2020-02-06 21:57:41 +00:00
./compile.sh EXPERT="yes"
```
2022-01-24 16:11:38 +00:00
Run build framework inside Docker container:
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
```bash
2020-02-06 21:57:41 +00:00
./compile.sh docker
```
2021-06-26 21:36:47 +00:00
Build minimal CLI Armbian Focal image for Orangepi Zero. Use modern kernel and write image to the SD card:
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
```bash
2021-06-26 21:36:47 +00: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 21:57:41 +00:00
```
2022-07-31 14:46:17 +00: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 21:57:41 +00:00
2022-08-15 17:44:54 +00:00
## Download prebuilt images
- quarterly released **supported** builds — < https: // www . armbian . com / download >
- weekly released **unsupported** community builds — < https: // github . com / armbian / community >
- upon code change **unsupported** development builds — < https: // github . com / armbian / build / releases >
2020-02-06 21:57:41 +00:00
## Compare with industry standards
Check similarity, advantages and disadvantages compared with leading industry standard build software.
Function | Armbian | Yocto | Buildroot |
|:--|:--|:--|:--|
2021-06-24 12:50:00 +00:00
| Target | general purpose | embedded | embedded / IOT |
2020-02-06 21:57:41 +00:00
| U-boot and kernel | compiled from sources | compiled from sources | compiled from sources |
2021-06-24 12:50:00 +00:00
| Board support maintenance | complete | outside | outside |
2020-02-06 21:57:41 +00: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-14 21:48:36 +00:00
2022-04-06 23:10:58 +00:00
## Project structure
2020-02-06 21:57:41 +00:00
```text
2020-06-30 20:59:24 +00:00
├── cache Work / cache directory
2022-08-15 17:44:54 +00:00
│ ├── rootfs Compressed userspace packages cache
│ ├── sources Kernel, u-boot and various drivers sources.
2020-06-30 20:59:24 +00:00
│ ├── 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 21:36:47 +00:00
│ ├── cli CLI packages configurations per distribution
│ ├── desktop Desktop packages configurations per distribution
│ ├── distributions Distributions settings
2020-06-30 20:59:24 +00: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-08-15 17:44:54 +00:00
├── extensions extend build system with specific functionality
2022-01-24 16:11:38 +00:00
├── lib Main build framework libraries
2020-06-30 20:59:24 +00: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 14:06:00 +00:00
│ ├── bsp-cli Automatically added to armbian-bsp-cli package
│ ├── bsp-desktop Automatically added to armbian-bsp-desktopo package
2020-06-30 20:59:24 +00: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
2022-08-15 17:44:54 +00:00
├── tools Tools for dealing with kernel patches and configs
2020-06-30 20:59:24 +00:00
└── userpatches User: configuration patching area
2022-01-24 16:11:38 +00:00
├── lib.config User: framework common config/override file
2020-06-30 20:59:24 +00: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 21:57:41 +00:00
```
2022-04-06 23:10:58 +00:00
## 🙌 Contribution
2021-06-24 12:50:00 +00:00
2022-04-06 23:10:58 +00: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 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
- The easiest way to help is by "Starring" our repository - it helps more people find our code.
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00: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 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
Please make sure to read the [Contributing Guide ](.github/CONTRIBUTING.md ) before you write any code.
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
## Support
2020-02-06 21:57:41 +00:00
2022-08-15 17:44:54 +00:00
Armbian is free software and provides **best effort help** through [community forums ](https://forum.armbian.com/ ). Make sure to use help of [general project search engine ](https://www.armbian.com/search ) and [documentation ](https://docs.armbian.com ) before opening new forum topic. In case you require attention, buy appropriate [subscription level ](https://forum.armbian.com/subscriptions ) before asking for dedicated attention to the issue you have https://www.armbian.com/contact.
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
## Contact
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
- [Forums ](https://forum.armbian.com ) for Participate in Armbian
- IRC: `#armbian` on Libera.chat
2022-07-15 08:44:25 +00: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-06 23:10:58 +00:00
- Bugs: [issues ](https://github.com/armbian/build/issues ) / [JIRA ](https://armbian.atlassian.net/jira/dashboards/10000 )
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
## Contributors
2020-02-06 21:57:41 +00:00
2022-07-15 08:44:25 +00:00
Thank you to all the people who already contributed Armbian!
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
< a href = "https://github.com/armbian/build/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=armbian/build" / >
< / a >
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
### Also
2020-02-06 21:57:41 +00:00
2022-04-06 23:10:58 +00: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 21:57:41 +00:00
## Sponsors
2022-04-06 23:10:58 +00: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 21:57:41 +00:00
2022-04-06 23:10:58 +00:00
[Would you like your name to appear below? ](https://www.armbian.com/#contact )
2020-02-06 21:57:41 +00:00
2022-01-24 16:11:38 +00: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-06 23:10:58 +00:00
## License
This software is published under the GPL-2.0 License license.