3.Install flashrom-0.9.9 to Opi-ZERO
$ sudo apt-get install pciutils
$ sudo apt-get install libftdi-dev
$ sudo apt-get install libusb-dev
$ sudo apt-get install libpci-dev
$ bzip2 -d flashrom-0.9.9.tar.bz2
$ tar xvf flashrom-0.9.9.tar
$ cd flashrom-0.9.9/
$ make
$ sudo make install
4.Write SPI Flash image
$ cd
$ dd if=/dev/zero count=2048 bs=1K | tr '\000' '\377' > spi.img
$ dd if=/usr/lib/linux-u-boot-orangepizero_5.31_armhf/u-boot-sunxi-with-spl.bin of=spi.img bs=1k conv=notrunc
$ sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c MX25L1605 -w spi.img
Note:
linux-u-boot-orangepizero_5.31 depends on the version of the kernel.
5.Writing an image to USB memory
You will need to use an image writing tool (like Win32DiskImager.exe)
to install the Armbian image on your USB memory.
6.Shutdown
A SD card is removed from Opi-ZERO.
A USB memory is stuck into Opi-ZERO.