https://github.com/armbian/build.git
apt-get -y -qq install git
git clone --depth 1 https://github.com/armbian/build
cd build
./compile.sh
BOARD=orangepizero
BRANCH=current
RELEASE=focal
BUILD_MINIMAL=yes
BUILD_DESKTOP=no
KERNEL_ONLY=no
KERNEL_CONFIGURE=no
CARD_DEVICE="/dev/sda"
New configuration file config-example.conf and symlink config-default.conf will be created.
KERNEL_CONFIGURE ( yes | no ): yes: Automatically call kernel’s make menuconfig (add or remove modules or features). no: Use provided kernel configuration provided by Armbian. leave empty to display selection dialog each time.
REPOSITORY_INSTALL (comma-separated list): list of core packages which will be installed from repository. Available options: u-boot, kernel, bsp, armbian-config, armbian-firmware. Set to “” to use packages one from local output or build if not available.
BUILD_DESKTOP ( yes | no ): yes: build image with minimal desktop environment. no: build image with console interface only.
CARD_DEVICE ( /dev/sdX ): set to the device of your SD card. The image will be burned and verified using Etcher for CLI.
PROGRESS_DISPLAY ( none | plain | dialog ): way to display output of verbose processes - compilation, packaging, debootstrap.
What is FEL/NFS boot?
FEL/NFS boot mode is a possibility to test freshly created Armbian distribution without using SD card. It is implemented by loading u-boot, kernel, initrd, boot script and .bin/.dtb file via USB FEL mode and providing root filesystem via NFS share.
NOTE: this mode is designed only for testing. To use root on NFS permanently, use ROOTFS_TYPE=nfs option. NOTE: “hot” switching between kernel branches (default <-> dev/next) is not supported
Connect the UART console while it is off ;
./compile.sh KERNEL_ONLY=no BOARD=cubietruck BRANCH=current P ROGRESS_DISPLAY=plain RELEASE=jessie BUILD_DESKTOP=no ROOTFS_TYPE=fel
Go here if you want get setting this.
( dir/userpatches/fel_post_prepare ) is executed once after setting up u-boot script and NFS share, you can use it to add extra stuff to boot.scr (like gpio set or setenv machid) based on device name.
Communication SD-UART;
https://linux-sunxi.org/How_to_boot_the_A10_or_A20_over_the_network
https://github.com/linux-sunxi/sunxi-tools