mirror of
https://github.com/armbian/build.git
synced 2026-11-26 23:29:56 +00:00
GRUB cannot apply overlays, so the kernel hook now merges the ones listed in armbianEnv.txt into the DTB with fdtoverlay, and a path unit reruns it when the file changes. A broken overlay falls back to the plain DTB, and boards without OVERLAY_PREFIX keep the old behaviour. Signed-off-by: SuperKali <hello@superkali.me>
13 KiB
13 KiB
Internal build options
These options are used to declare variables used by the armbian build system to build a board-specific configuration.
If you are unsure about the documentation then invoke $ grep -r -A5 -B5 "BUILD_OPTION_HERE" /path/to/local/armbian/build/repository to get context to the option from the source code.
- BOARD_NAME ( product version ): defines the board name used in welcome text and system metadata.
- Keep the product name and version. Omit the manufacturer stored in
BOARD_VENDOR. - Keep official product names when removing the manufacturer leaves a generic name.
- Check runtime scripts that match board names before changing this value.
- Example:
Teres A64
- Keep the product name and version. Omit the manufacturer stored in
- BOARD_VENDOR ( manufacturer ): defines the manufacturer identifier used in board metadata and vendor assets.
- Example:
olimex
- Example:
- BOARDFAMILY ( board-family ): defines the family of the board to apply board-specific configuration during build time such as adjustments for the temperature, LED behavior, etc..
- Refer to sources table
- Example:
sun50iw1
- BOARD_MAINTAINER ( space-separated list of Github login ): Declares the maintainer of the board
- INTRODUCED ( year ): When the board first came to market
- Example:
2022
- Example:
- BOOTCONFIG ( u-boot identifier ): declares the name of the u-boot configuration for the build without the '_defconifig' suffix
- Refer to the u-boot source tree to find configuration for the board
- Example:
teres-i
- BOOTSIZE ( int ): Declares the size of the boot partitin in Mib
- Default:
256 - Example:
256
- Default:
- BOOT_LOGO ( string ): defines whether to use a eyecandy during bootloader phase
- Values:
- yes: Show the armbian boot logo
- desktop: Show the armbian boot logo when
BUILD_DESKTOPis set toyes
- Default:
not set
- Values:
- CRUSTCONFIG ( crust identifier ): declares the name of the crust defconfig configuration for the build. Specify only if the board has Allwinner CPU with AR100 coprocessor and SOC is supported by crust firmware.
- Refer to the crust source tree to find configuration for the board
- Example:
nanopi_m1_defconfig
- IMAGE_PARTITION_TABLE ( string ): defines which disklabel type to use
- Values:
- msdos: Use dos/msdos disklabel
- gpt: Use GPT disklabel
- Default: msdos
- Values:
- BOOTFS_TYPE ( filesystem ): defines the expected filesystem for the boot file system
- Values:
- none: Uses /boot on the root filesystem
- ext4: Use the Fourth Extended Filesystem
- ext2: Use the Second Extended Filesystem
- fat: Use the File Allocation Table 32
- Default:
ext4
- Values:
- DEFAULT_OVERLAYS ( space-separated list list of dtb overlays ): defines dtb overlays that are enabled by default. Use the overlay names without the prefix, see Device tree overlay names. There is a basic dtb for each family but they have different level of used SoC features. Board X might have four USB ports but others might not. Therefore other does not need to have those enabled while board X does.
- Examples:
- usbhost0
- usbhost2
- usbhost3
- cir
- analog-codec
- gpio-regulator-1.3v
- uart1
- Examples:
- DEFAULT_CONSOLE ( string ): declares default console for the boot output
- Values:
- serial: Output boot messages to serial console
- Default:
not set
- Values:
- MODULES ( space-separated list of kernel modules ): appends modules to the kernel command line for all kernel branches
- MODULES_LEGACY ( space-separated list of kernel modules ): appends modules to the kernel command line for legacy kernel
- MODULES_CURRENT ( space-separated list of kernel modules ): appends modules to the kernel command line for current kernel
- MODULES_EDGE ( space-separated list of kernel modules ): appends modules to the kernel command line for edge kernel
- MODULES_BLACKLIST ( space-separated list of kernel modules ): appends modules to the kernel's blacklist/deny list for all kernel branches
- MODULES_BLACKLIST_LEGACY ( space-separated list of kernel modules ): appends modules to the kernel's blacklist/deny list for legacy kernel
- MODULES_BLACKLIST_CURRENT ( space-separated list of kernel modules ): appends modules to the kernel's blacklist/deny list for current kernel
- MODULES_BLACKLIST_EDGE ( space-separated list of kernel modules ): appends modules to the kernel's blacklist/deny list for edge kernel
- SERIALCON ( comma-separated list of terminal interfaces [:bandwidth] ): declares which serial console should be used on the system
- Example:
ttyS0:15000000,ttyGS1
- Example:
- SKIP_ARMBIAN_REPO ( boolean ): Whether to exclude the armbian repository from the built image
- Values:
- yes: Exclude the armbian repo (armbian.sources stays
.disabled) - no: Include the armbian repo (default)
- yes: Exclude the armbian repo (armbian.sources stays
- Values:
- POWER_MANAGEMENT_FEATURES (boolean): Controls whether system sleep functionality (suspend, hibernate, hybrid sleep) is allowed on the built image.
- Values:
- yes: Enable power-management sleep features (allow systemd sleep modes)
- no: Disable all sleep modes (default), as suspend/hibernate are unstable on most single-board computers
- Values:
- HAS_VIDEO_OUTPUT ( boolean ): defines whether the system has video output such as eye candy, bootsplash, etc..
- Values:
- yes: Enable video-related configuration
- no: Disable video-related configuration
- Values:
- KERNEL_TARGET ( comma-separated list of kernel releases or branches ): declares which kernels should be used for the build
- Values:
- legacy: Use legacy kernel
- current: Use current kernel
- edge: Use edge kernel
- [branch]: Use specified [branch] kernel
- [none]: Exits with error
- Values:
- KERNEL_TEST_TARGET ( comma-separated list of kernel releases or branches ): if test targets are different for testings. Also applies to build list generation. (internal switch)
- FULL_DESKTOP ( boolean ): defines whether to install desktop stack of applications such as office, thunderbird, etc..
- Values:
- yes: install desktop stack
- no: doesn't install desktop stack
- Values:
- DESKTOP_AUTOLOGIN ( boolean ): Toggle desktop autologin
- Values:
- yes: Automatically login to the desktop
- no: disable desktop autologin
- Default:
no
- Values:
- PACKAGE_LIST_BOARD ( space-separated list of packages ): Declares which packages should be installed on the system
- PACKAGE_LIST_BOARD_REMOVE ( space-separated list of packages ): Declares packages to be removed from the system
- BOOT_FDT_FILE ( device tree configuration ): Force to load specific device tree configuration if different from the one defined by u-boot
- Values:
- [family]/[file.dtb]: Replace device tree with the one specified
- none: Do not use device tree configuration
- Example:
rockchip/rk3568-rock-3-a.dtb
- Values:
- CPUMIN ( minimum CPU frequency in kHz ): Set minimal CPU frequency of the system
- Default: Differs per family
480000for sunxi8 boards
- Default: Differs per family
- CPUMAX ( maximum CPU frequency in kHz ): Set maximal CPU frequency of the system
- Default: Differs per family
1400000for sunxi8 boards
- Default: Differs per family
- GOVERNOR ( cpufreq governor ): Set the CPU frequency governor
- Example:
ondemand,schedutil,performance
- Example:
- CPUMIN_POLICY<n>, CPUMAX_POLICY<n>, GOVERNOR_POLICY<n>: Override CPUMIN, CPUMAX and GOVERNOR for one CPU cluster (big.LITTLE).
<n>is the first CPU of the cluster, as in/sys/devices/system/cpu/cpufreq/policy<n>- Example:
GOVERNOR_POLICY4=performancesets the Cortex-A72 cluster of RK3399
- Example:
- CPUBOOST ( cpufreq boost ): Set CPU boost at boot
- Values:
- true: Enable
- off: Disable
- false: Keep the kernel default (default)
- Values:
- TUNING_PROFILE ( armbian-config tuning profile ): Profile that armbian-config applies on first boot. It sets swappiness, writeback and the ext4 commit interval
- Values:
sbc,balanced,desktop,builder,nas,none - Default:
desktopfor desktop images, elsesbc. An image without armbian-config gets no profile. An explicit profile then stops the build
- Values:
- FORCE_BOOTSCRIPT_UPDATE ( boolean ): Force bootscript installation if they are not present
- Values:
- yes: Enable
- no: Disable
- Values:
- OVERLAY_PREFIX ( space-separated list of prefixes ): Prefixes of the overlay file names. The image gets them as
overlay_prefix=inarmbianEnv.txt. The boot script tries each prefix in order. The first match wins. Full overlay names also load.- At the moment, the Rockchip, Allwinner, 64-bit Amlogic Meson, Sophgo and SpacemiT boot scripts support lists. Other boot scripts take one prefix.
- Families set SoC prefixes. To add board prefixes, use OVERLAY_PREFIX_BOARD in the board file. A board value of OVERLAY_PREFIX replaces the SoC prefixes. The
rk35xxandrockchip-rk3588families overwrite it; replace it there only in apost_family_confighook. - Examples:
sun8i-h3,rockchip-rk3566 rockchip-rk3568
- OVERLAY_PREFIX_BOARD ( space-separated list of prefixes ): Board prefixes, put before the family prefixes. One value serves all branches: a prefix with no match in that kernel does nothing.
- extlinux images add DEFAULT_OVERLAYS with the first prefix only. On an extlinux board, each default overlay must exist with the first board prefix.
- Example:
rock-5b
Device tree overlay names
Follow these rules for new overlays. Then each OVERLAY_PREFIX list matches real files, and users see only overlays for their SoC and their board.
- Name the file
<prefix>-<name>.dtso.<prefix>is one entry of the OVERLAY_PREFIX list of the target boards. Users write<name>inoverlays=. <soc>is the SoC family name:rk3588also for RK3588S,rk3399also for RK3399Pro.- Mainline Rockchip SoC overlays: use
rockchip-<soc>-<name>, for examplerockchip-rk3588-uart7-m2.- RK3566 and RK3568 boards get both SoC prefixes. Use
rockchip-rk3566-for an overlay that works on both. Userockchip-rk3568-only for hardware that RK3566 does not have.
- RK3566 and RK3568 boards get both SoC prefixes. Use
- Mainline board overlays: use
rockchip-<soc>-<board>-<name>, for examplerockchip-rk3588-nanopi-m6-display-dsi1-yx35. The SoC prefix then covers it. The board needs no OVERLAY_PREFIX_BOARD. All boards with that SoC see the overlay; the<board>part tells users which board it is for. - Vendor kernel overlays (armbian/linux-rockchip): use
<soc>-<name>and<soc>-<board>-<name>, for examplerk3588-rock-5b-sata.- Exception: the 32-bit vendor kernel names SoC overlays
rockchip-<soc>-<name>. Therockchip-rv1106androckchip-rv1126families use the prefixesrockchip-rv1106androckchip-rv1126.
- Exception: the 32-bit vendor kernel names SoC overlays
- Allwinner overlays: use
sun<N>i-<soc>-<name>, for examplesun50i-h616-uart5. H2+ boards use thesun8i-h3prefix. H618 and H313 boards usesun50i-h616.- A527 and T527 boards get both SoC prefixes. Use
sun55i-t527-for an overlay that works on both.
- A527 and T527 boards get both SoC prefixes. Use
- Amlogic Meson overlays: use
meson-<soc>-<name>, for examplemeson-sm1-odroid-c4-i2c0.- G12A, G12B and SM1 boards also get
meson-g12. Usemeson-g12-for an overlay that works on all three. - GXBB and GXL boards also get
meson, for old overlays without a SoC part, for examplemeson-i2cA. Do not add new overlays with themeson-prefix alone.
- G12A, G12B and SM1 boards also get
- Qualcomm overlays: use
<soc>-<name>and<soc>-<board>-<name>, for exampleqcs6490-radxa-dragon-q6a-uart6orsc8280xp-usb0-peripheral. These boards boot with GRUB:grub-with-dtbmerges the overlays into the DTB when a kernel is installed orarmbianEnv.txtchanges. - Sophgo and SpacemiT overlays: use
<soc>-<name>, for examplesg2000-uart1ork1-uart5. - Apart from
meson-g12, do not use a prefix that covers several SoCs, for examplerk35xx-,rockchip-ormeson-alone. Do not add an overlay without a prefix. - Do not rename an existing overlay, even if its name does not follow these guidelines. Installed systems keep the old name in
armbianEnv.txt, so a rename breaks them after a kernel upgrade. If an old name does not fit the rules, you can add its prefix to OVERLAY_PREFIX_BOARD of the boards that use it. - Use OVERLAY_PREFIX_BOARD only for such old names. A board prefix also matches longer board names:
rock-5balso matchesrock-5b-plus-*. - A fixup script for parameters is named
<prefix>-fixup.scr. The boot script loads it for each prefix in the list. - Add each new overlay to the overlay
Makefile. Check that at least one board has its prefix in OVERLAY_PREFIX.
Deprecated
- BOOTCONFIG_LEGACY ( u-boot identifier ): use BOOTCONFIG instead
- BOOTCONFIG_CURRENT ( u-boot identifier ): use BOOTCONFIG instead
- BOOTCONFIG_EDGE ( u-boot identifier ): use BOOTCONFIG instead
- PACKAGE_LIST_BOARD_DESKTOP ( space-separated list of packages ): use PACKAGE_LIST_BOARD instead
- PACKAGE_LIST_BOARD_DESKTOP_REMOVE ( space-separated list of packages ): use PACKAGE_LIST_BOARD instead
File extensions
Statuses displayed at the login prompt:
| file type | description |
|---|---|
| .csc or .tvb | community creations or no active maintainer |
| .wip | work in progress |
| .eos | end of life |