Difference between revisions of "Armbian on Orange Pi 4"

From Dejvino's Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
 
[[Armbian]] for [[Orange Pi 4]].
 
[[Armbian]] for [[Orange Pi 4]].
  
== Installation ==
+
== Installation using a Prebuilt Image ==
=== 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]
  
=== Custom Image ===
+
== Installation using a Custom Image ==
Using [[Vagrant]]: [https://docs.armbian.com/Developer-Guide_Using-Vagrant/ docs.armbian.com/Developer-Guide_Using-Vagrant/]
+
Source: [https://docs.armbian.com/Developer-Guide_Build-Preparation/ docs.armbian.com/Developer-Guide_Build-Preparation/]
Copying the image from guest to host: {{code|vagrant plugin install vagrant-scp}}
 
  
 +
=== Using [[Vagrant]] ===
 +
Source: [https://docs.armbian.com/Developer-Guide_Using-Vagrant/ docs.armbian.com/Developer-Guide_Using-Vagrant/]
 +
 +
==== Prerequisites ====
 +
# Install [[git]], [[vagrant]], [[virtualbox]]
 +
# Install virtualbox plugins: {{code|vagrant plugin install vagrant-disksize}}
 +
# Clone the armbian build repository: {{code|git clone --depth 1 https://github.com/armbian/build}}
 +
# Fetch the guest VM image: {{code|vagrant box add ubuntu/bionic64}}
 +
 +
==== Building ====
 +
# Go to VM template directory: {{code|cd build/config/templates}}
 +
# Start the VM: {{code|vagrant up}}
 +
# Log into the VM: {{code|vagrant ssh}}
 +
## cd armbian
 +
## sudo ./compile.sh (see [[#Building an Image|details below]])
 +
# Copying the resulting image from guest to host: {{code|vagrant plugin install vagrant-scp}}
 +
# Stop the VM at the end (or after every finished build): {{code|vagrant halt}}
 +
 +
==== Cleanup ====
 +
# To cleanup after you are done: {{code|vagrant destroy}}
 +
 +
=== Building an 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/]
  

Revision as of 14:20, 22 March 2020

Armbian for Orange Pi 4.

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

Installation using a Custom Image

Source: docs.armbian.com/Developer-Guide_Build-Preparation/

Using Vagrant

Source: docs.armbian.com/Developer-Guide_Using-Vagrant/

Prerequisites

  1. Install git, vagrant, virtualbox
  2. Install virtualbox plugins: vagrant plugin install vagrant-disksize
  3. Clone the armbian build repository: git clone --depth 1 https://github.com/armbian/build
  4. Fetch the guest VM image: vagrant box add ubuntu/bionic64

Building

  1. Go to VM template directory: cd build/config/templates
  2. Start the VM: vagrant up
  3. Log into the VM: vagrant ssh
    1. cd armbian
    2. sudo ./compile.sh (see details below)
  4. Copying the resulting image from guest to host: vagrant plugin install vagrant-scp
  5. Stop the VM at the end (or after every finished build): vagrant halt

Cleanup

  1. To cleanup after you are done: vagrant destroy

Building an Image

Source: docs.armbian.com/Developer-Guide_Build-Preparation/

External Links