armbian/config/boards/README.md
SuperKali e8ece208dd extensions/grub-with-dtb: merge device tree overlays into the DTB
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>
2026-11-20 11:48:48 +01:00

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
  • BOARD_VENDOR ( manufacturer ): defines the manufacturer identifier used in board metadata and vendor assets.
    • Example: olimex
  • 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..
  • 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
  • BOOTCONFIG ( u-boot identifier ): declares the name of the u-boot configuration for the build without the '_defconifig' suffix
  • BOOTSIZE ( int ): Declares the size of the boot partitin in Mib
    • Default: 256
    • Example: 256
  • 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_DESKTOP is set to yes
    • Default: not set
  • 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
  • BOOTFS_TYPE ( filesystem ): defines the expected filesystem for the boot file system
  • 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
  • DEFAULT_CONSOLE ( string ): declares default console for the boot output
    • Values:
      • serial: Output boot messages to serial console
    • Default: not set
  • 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
  • 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)
  • 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
  • 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
  • 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
  • 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
  • DESKTOP_AUTOLOGIN ( boolean ): Toggle desktop autologin
    • Values:
      • yes: Automatically login to the desktop
      • no: disable desktop autologin
    • Default: no
  • 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
  • CPUMIN ( minimum CPU frequency in kHz ): Set minimal CPU frequency of the system
    • Default: Differs per family 480000 for sunxi8 boards
  • CPUMAX ( maximum CPU frequency in kHz ): Set maximal CPU frequency of the system
    • Default: Differs per family 1400000 for sunxi8 boards
  • GOVERNOR ( cpufreq governor ): Set the CPU frequency governor
    • Example: ondemand, schedutil, performance
  • 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=performance sets the Cortex-A72 cluster of RK3399
  • CPUBOOST ( cpufreq boost ): Set CPU boost at boot
    • Values:
      • true: Enable
      • off: Disable
      • false: Keep the kernel default (default)
  • 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: desktop for desktop images, else sbc. An image without armbian-config gets no profile. An explicit profile then stops the build
  • FORCE_BOOTSCRIPT_UPDATE ( boolean ): Force bootscript installation if they are not present
    • Values:
      • yes: Enable
      • no: Disable
  • OVERLAY_PREFIX ( space-separated list of prefixes ): Prefixes of the overlay file names. The image gets them as overlay_prefix= in armbianEnv.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 rk35xx and rockchip-rk3588 families overwrite it; replace it there only in a post_family_config hook.
    • 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> in overlays=.
  • <soc> is the SoC family name: rk3588 also for RK3588S, rk3399 also for RK3399Pro.
  • Mainline Rockchip SoC overlays: use rockchip-<soc>-<name>, for example rockchip-rk3588-uart7-m2.
    • RK3566 and RK3568 boards get both SoC prefixes. Use rockchip-rk3566- for an overlay that works on both. Use rockchip-rk3568- only for hardware that RK3566 does not have.
  • Mainline board overlays: use rockchip-<soc>-<board>-<name>, for example rockchip-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 example rk3588-rock-5b-sata.
    • Exception: the 32-bit vendor kernel names SoC overlays rockchip-<soc>-<name>. The rockchip-rv1106 and rockchip-rv1126 families use the prefixes rockchip-rv1106 and rockchip-rv1126.
  • Allwinner overlays: use sun<N>i-<soc>-<name>, for example sun50i-h616-uart5. H2+ boards use the sun8i-h3 prefix. H618 and H313 boards use sun50i-h616.
    • A527 and T527 boards get both SoC prefixes. Use sun55i-t527- for an overlay that works on both.
  • Amlogic Meson overlays: use meson-<soc>-<name>, for example meson-sm1-odroid-c4-i2c0.
    • G12A, G12B and SM1 boards also get meson-g12. Use meson-g12- for an overlay that works on all three.
    • GXBB and GXL boards also get meson, for old overlays without a SoC part, for example meson-i2cA. Do not add new overlays with the meson- prefix alone.
  • Qualcomm overlays: use <soc>-<name> and <soc>-<board>-<name>, for example qcs6490-radxa-dragon-q6a-uart6 or sc8280xp-usb0-peripheral. These boards boot with GRUB: grub-with-dtb merges the overlays into the DTB when a kernel is installed or armbianEnv.txt changes.
  • Sophgo and SpacemiT overlays: use <soc>-<name>, for example sg2000-uart1 or k1-uart5.
  • Apart from meson-g12, do not use a prefix that covers several SoCs, for example rk35xx-, rockchip- or meson- 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-5b also matches rock-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