Prepare the USB Install Drive

  1. download the image file:

versiion 5.77 is recommended, by i think v5.78 works too. https://yadi.sk/d/pHxaRAs-tZiei/OLD/5.78/S905

  1. write the image to USB drive using Etcher or rufus

  2. 5.62 and later: modify the USB drive file: /Volumes/BOOT/uEnv.ini

    # change the dtb setting to use s905d
    # dtb_name=/dtb/meson-gxl-s905x-khadas-vim.dtb
    dtb_name=/dtb/meson-gxl-s905d-phicomm-n1.dtb
    bootargs=root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
    

Boot Into the OS

https://www.right.com.cn/forum/thread-322991-1-1.html in the n1 shell:

reboot update

before it boots, insert usb into the usb port which is close to the hdmi port wait a while, n1 boots into the armbian os on the usb stick, the default use is root:1234

Copy OS to Internal EMMC and Boot OS without USB Stick

https://yuerblog.cc/2019/10/23/%E6%96%90%E8%AE%AFn1-%E5%AE%8C%E7%BE%8E%E5%88%B7%E6%9C%BAarmbian%E6%95%99%E7%A8%8B/

nand–sata-install

after that, just shutdown the sys, and remove usb stick. Upon next startup, it would boot using internal storage!

Basic Setup

https://docs.armbian.com/User-Guide_Getting-Started

Enable WiFi

nmtui-connect

Change Armbian Mirror

sudo armbian-config
personal
mirror
# it changes /etc/apt/sources.list.d/armbian.list

Enable mDNS

sudo apt install avahi-daemon
# so you can ssh to it using:
ssh root@aml.local

Configure Python3 Dev Env on Ubuntu 18.04

sudo apt-get install gcc libpq-dev -y
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
pip3 install wheel

Change Ubuntu Mirror

sudo vim /etc/apt/sources.list
# then change `http://ports.ubuntu.com/` to `https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/`