Armbian #
可以有两种安装方式:
Docker安装
构建自己的镜像
Docker安装 #
请参考 lomo-docker安装Docker镜像。请使用arm的镜像"lomorage/raspberrypi-lomorage:latest"。
构建自己的镜像 #
下面的步骤应该对于所有Armbian官方支持的SBC都适用,但如果您发现有问题,请联系我们。
这里有已经编译好的 Orange Pi Zero的 镜像。
Armbian默认的用户名是"lomoware",密码是"lomorage"。
1. 准备编译环境 #
如果您使用Ubuntu Focal 20.04.x amd64,可以跳过这一步。
下载安装 Vagrant.
安装可以调整存储空间大小的插件:
vagrant plugin install vagrant-disksize
- 安装git并克隆Armbian仓库:
# Clone the project.
git clone --depth 1 https://github.com/lomorage/build
# Make the Vagrant box available. This might take a while but only needs to be done once.
vagrant box add ubuntu/focal64
# If the box gets updated by the folks at HashiCorp, we'll want to update our copy too.
# This only needs done once and a while.
vagrant box update
2. 构建镜像 #
- 启动vagrant:
# We have to be in the same directory as the Vagrant file, which is in the build/config/templates directory.
cd build/config/templates
# Note that you can edit the Vagrant file to specify the number of cpus and amount of memory you want Vagrant to use.
# And now we simply let vagrant create our box and bring it up.
vagrant up
# When the box has been installed we can get access via ssh.
# (No need for passwords, Vagrant installs the keys we'll need.)
vagrant ssh
修改"userpatches/config-default.conf"中的board参数,默认值是
BOARD="orangepizero"
, 如果不知道board名称,可以使用BOARD=""
,在后面编译的过程中再选择,也可以参考这里的 配置。构建镜像:
# Let's get building!
cd armbian
sudo ./compile.sh
构建成功后的镜像生成在output/images
目录。