Difference between revisions of "Armbian on Orange Pi 4"
| Line 3: | Line 3: | ||
== Installation using a Prebuilt Image == | == Installation using a Prebuilt Image == | ||
Armbian provides several pre-built SD Card images ready to be flashed and used. See [https://www.armbian.com/orange-pi-4/ www.armbian.com/orange-pi-4] | Armbian provides several pre-built SD Card images ready to be flashed and used. See [https://www.armbian.com/orange-pi-4/ www.armbian.com/orange-pi-4] | ||
| + | |||
| + | See [[Flashing Linux to SD Card]] on what to do with the downloaded *.img file. | ||
== Installation using a Custom Image == | == Installation using a Custom Image == | ||
Source: [https://docs.armbian.com/Developer-Guide_Build-Preparation/ docs.armbian.com/Developer-Guide_Build-Preparation/] | Source: [https://docs.armbian.com/Developer-Guide_Build-Preparation/ docs.armbian.com/Developer-Guide_Build-Preparation/] | ||
| + | |||
| + | # Prepare build environment (see [[#Using Vagrant]]) | ||
| + | # Configure and Build (see [[#Building an Image]]) | ||
| + | # [[Flashing Linux to SD Card|Flash the image to SD Card]] | ||
=== Using [[Vagrant]] === | === Using [[Vagrant]] === | ||
| Line 32: | Line 38: | ||
==== Kernel + U-Boot Only ==== | ==== Kernel + U-Boot Only ==== | ||
<pre>./compile.sh BOARD=orangepi4 BRANCH=current KERNEL_ONLY=yes KERNEL_CONFIGURE=yes</pre> | <pre>./compile.sh BOARD=orangepi4 BRANCH=current KERNEL_ONLY=yes KERNEL_CONFIGURE=yes</pre> | ||
| + | |||
| + | Produces *.deb packages usable for kernel updates. Or for flashing to an SD Card if you unpack the deb archive (via <pre>ar x *.deb</pre>) | ||
==== Minimal Debian Bullseye server ==== | ==== Minimal Debian Bullseye server ==== | ||
{{codeblock|<nowiki>./compile.sh BOARD=orangepi4 BRANCH=current RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes</nowiki>}} | {{codeblock|<nowiki>./compile.sh BOARD=orangepi4 BRANCH=current RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes</nowiki>}} | ||
| + | |||
| + | Produces a standalone *.img file (about 700 MB) for flashing to SD Card. | ||
== Troubleshooting == | == Troubleshooting == | ||
Revision as of 19:16, 22 March 2020
Armbian for Orange Pi 4.
Contents
Installation using a Prebuilt Image
Armbian provides several pre-built SD Card images ready to be flashed and used. See www.armbian.com/orange-pi-4
See Flashing Linux to SD Card on what to do with the downloaded *.img file.
Installation using a Custom Image
Source: docs.armbian.com/Developer-Guide_Build-Preparation/
- Prepare build environment (see #Using Vagrant)
- Configure and Build (see #Building an Image)
- Flash the image to SD Card
Using Vagrant
Source: docs.armbian.com/Developer-Guide_Using-Vagrant/
Prerequisites
- Install git, vagrant, virtualbox
- Install virtualbox plugins:
vagrant plugin install vagrant-disksize - Clone the armbian build repository:
git clone --depth 1 https://github.com/armbian/build - Fetch the guest VM image:
vagrant box add ubuntu/bionic64
Building
- Go to VM template directory:
cd build/config/templates - Start the VM:
vagrant up - Log into the VM:
vagrant ssh- cd armbian
- sudo ./compile.sh (see details below)
- Copying the resulting image from guest to host:
vagrant plugin install vagrant-scp - Stop the VM at the end (or after every finished build):
vagrant halt
Cleanup
- To cleanup after you are done:
vagrant destroy
Building an Image
Source: docs.armbian.com/Developer-Guide_Build-Preparation/
Kernel + U-Boot Only
./compile.sh BOARD=orangepi4 BRANCH=current KERNEL_ONLY=yes KERNEL_CONFIGURE=yes
Produces *.deb packages usable for kernel updates. Or for flashing to an SD Card if you unpack the deb archive (via
ar x *.deb
)
Minimal Debian Bullseye server
./compile.sh BOARD=orangepi4 BRANCH=current RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes
Produces a standalone *.img file (about 700 MB) for flashing to SD Card.
Troubleshooting
cannot initialize curses
When using e.g. Termite terminal emulator without terminfo installed on the guest VM, you get this error:
$ sudo ./compile.sh ... cannot initialize curses [ error ] ERROR in function source [ main.sh:141 ] [ error ] No option selected [ o.k. ] Process terminated
One solution is to set a known working TERM:
$ TERM=xterm $ sudo ./compile.sh
External Links
- Armbian Orange Pi 4 page: armbian.com/orange-pi-4
- Custom image build guide: docs.armbian.com/Developer-Guide_Build-Preparation/