Armbian Quick Start Guide¶
Mentioned links:
- https://gitlab.com/bztsrc/usbimager/
- https://forum.armbian.com/topic/4767-powering-through-micro-usb/
- https://docs.armbian.com/
- https://forum.armbian.com/profile/9032-werner/
- https://forum.armbian.com/topic/12803-armbian-irc-chat/
Prerequisites for new users¶
Please, make sure you have:
- a proper power supply according to the board manufacturer requirements (basic usage example: 5V/2A with DC Jack barrel or thick USB cable)
- a reliable SD card (see below “How to prepare a SD card?”)
What to download?¶
The download for each image consists of three separate files:
- .xz-compressed image file
- .sha file for download verification
- .asc file for image authentication
For each board we usually provide various image types:
- CLI - server variant without desktop environment
- minimal - very lightweight server variant with just the bare minimum, not even includes
armbian-config
. Everything can be installed viaapt
. - Desktop full featured desktop image with either Ubuntu Jammy userspace or Debian Bookworm userspace
Other (unsupported) builds may also be available (like Debian Bullseye/Sid or Ubuntu Lunar/Mantic). Some boards have different options due to their hardware specialities - router or IoT boards.
Legacy, current or edge?¶
- legacy is either a vendor provided kernel or an old LTS mainline kernel. Use if either current is not available or something does not work well.
- current is usually following current mainline LTS kernel and considered fully supported and can bring up features video acceleration for example
- edge is as the name implies cutting-edge and usually following the latest mainline kernel or 3rd party development branch. Untested, unstable, can break at any time, for experienced users only.
The level of kernel support however always depends on the board family. If in your specific case something does not work well, you are always free to try an image with an other kernel included.
What are testing images (WIP)?¶
- made from stable branches
- not very well tested
- for end users
Do not use testing or edge images in a productive environment. We do appreciate your constructive feedback to developers.
How to check download authenticity?¶
All our images are digitally signed and therefore it is possible to check their authenticity. You need to issue these commands (Linux/macOS, you might need to install dependencies first, eg. apt-get install gnupg
on Debian/Ubuntu or brew install gnupg
on macOS. on windows install the current simple gnupg Gnupg:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
It is safe to ignore the message WARNING: This key is not certified with a trusted signature!
.
How to check download integrity?¶
Since it might happen that your download got somehow corrupted we integrate a checksum/hash for the image. You can compare the image’s SHA-256 hash with the one contained in the sha256sum.sha
file.
On Windows, you can download and use the QuickHash GUI and follow the instructions in the gui.
while on Linux/macOS, in the directory in which you have downloaded the files ,you would do this
Text Only | |
---|---|
1 2 3 |
|
How to prepare a SD card?¶
Important note: Make sure you use a good, reliable and fast SD card. If you encounter boot or stability troubles in over 95 percent of the time it is either insufficient power supply or related to SD card (bad card, bad card reader, something went wrong when burning the image, card too slow to boot – ‘Class 10’ highly recommended!). Armbian can simply not run on unreliable hardware so checking your SD card with either F3 or H2testw is mandatory if you run in problems. Since counterfeit SD cards are still an issue checking with F3/H2testw directly after purchase is highly recommended.
Write the .xz compressed image with a tool USBImager or balenaEtcher on all platforms since, unlike other tools, either can validate written data saving you from corrupted SD card contents.
Also important: Most SD cards are only optimised for sequential reads/writes as it is common with digital cameras. This is what the speed class is about. The SD Association defined Application Performance Class as a standard for random IO performance.
Application Performance Class | Pictograph | Miniumum Random Read | Minimum Random Write | Minimum Sustained (Seq. Write) |
---|---|---|---|---|
Class 1 (A1) | 1500 4k IOPS | 500 4k IOPS | 10MBytes/sec | |
Class 2 (A2) | 4000 4k IOPS | 2000 4k IOPS | 10MBytes/sec |
At the time of this writing A1 and A2 cards are only widely available from SanDisk. Armbian recommends A1 rated SD-Cards only now (A2 rated cards need yet lacking driver support and therefore show lower overall and especially random IO performance). For example:
In case you chose an SD card that was already in use before please consider resetting it back to ‘factory default’ performance with SD Formatter before burning Armbian to it (explanation in the forum). Detailed information regarding ‘factory default’ SD card performance.
How to boot?¶
Insert SD card into a slot and power the board. (First) boot (with DHCP) takes up to two minutes with a class 10 SD card and cheapest board.
How to login?¶
First boot will log you automatically on HDMI or serial console while for SSH login you need to login as root and use password 1234. You will be prompted to change this password. You will then be asked to create a normal user account that is sudo enabled (beware of default QWERTY keyboard settings at this stage). Please use this tool, to find your board IP address.
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
How to update firmware and packages?¶
Text Only | |
---|---|
1 2 |
|
Update process can take hours in case of using cheap SD card and/or under heavy load.
If the kernel was upgraded during this process you will be prompted to reboot at next login.
How to update u-boot?¶
First you need to update packages described in a previous “How to update” step. Then run armbian-config utility, go to system settings and proceed to:
“Install” “Install to/update boot loader” -> Install/Update the bootloader on SD/eMMC
How to upgrade distribution (like Focal to Jammy or Bullseye to Bookworm)?¶
Fire up armbian-config
to freeze your firmware packages (if not frozen already, select System
and Freeze
).
Then follow generic upgrade instructions specific to your userspace:
- Like for Debian: https://www.debian.org/releases/bookworm/arm64/release-notes/ch-upgrading.en.html
- Or Ubuntu: launch
do-release-upgrade
Attention: Userspaces distribution upgrades are neither tested nor supported. Therefore Armbian cannot provide support if something goes wrong.
How to adjust hardware features?¶
Use the Armbian configuration utility armbian-config
How to install to eMMC, SATA, NVME & USB?¶
Required condition for eMMC/SATA/USB/NVME:
- onboard eMMC storage
- attached SATA, NVME or USB storage
Start the install script:
Text Only | |
---|---|
1 |
|
and follow the guide. Theose are all possible scenarios:
- boot from SD, system on SATA / USB
- boot from eMMC / NAND, system on eMMC/NAND
- boot from eMMC / NAND, system on SATA / USB / NVME
- Boot from SPI - system on SATA, USB or NVMe
- Install/Update the bootloader on SD/eMMC
- Install/Update the bootloader on special eMMC partition
- Install/Update the bootloader on SPI Flash
- Install system to UEFI disk
and you can choose the following file system options:
- ext2,3,4
- btrfs
On Allwinner devices after switching to boot from NAND or eMMC clearing the boot loader signature on the SD card is recommended: dd if=/dev/zero of=/dev/mmcblkN bs=1024 seek=8 count=1
(replace /dev/mmcblkN
with the correct device node – in case you run this directly after armbian-install
without a reboot in between then it’s /dev/mmcblk0
). When booting from eMMC to get SD cards auto-detected on Allwinner legacy images please consider changing mmc0
‘s sdc_detmode
from 3 to 1 in the board’s fex file (see here for details).
How to install to NAND?¶
While in theory writing to NAND should still be possible using armbian-installer
, this requires running a very old 3.4.y kernel which Armbian as dropped support for several years ago. Therefore this feature is to be considered as deprecated and no support for either 3.4.y systems or NAND installations will be provided.
How to connect to wireless?¶
Required condition: a board with onboard or supported 3rd party wireless adapter on USB
If you know what is your wireless SSID:
Text Only | |
---|---|
1 |
|
If you do not know, you can browse and then connect
Text Only | |
---|---|
1 |
|
How to set fixed IP?¶
By default your main network adapter’s IP is assigned by your router DHCP server and all network interfaces are managed by NetworkManager:
Text Only | |
---|---|
1 2 3 |
|
The connection can now be edited with the following:
Text Only | |
---|---|
1 2 3 4 5 6 |
|
The same changes can also be done with NetworkManagers text user interface:
Text Only | |
---|---|
1 |
|