Khadas Edge contains a 16 MB SPI-Flash that’s used as boot storage; so you can image from it. This guide is about how to boot from the on-board SPI-Flash.
The U-Boot for SPI-Flash is different from the eMMC/SD’s U-Boot. We recommend using Fenix Script to build U-Boot, as it’s easy this way.
This guide assumes that you have already setup a basic build environment. If not, please refer to Fenix Usage.
- Setup Environment:
$ cd fenix
- Build U-boot
$ make uboot
If successful, you will get a U-Boot for the SPI-Flash
u-boot-spi.bin, in the directory
u-boot-spi.bin to an SD-Card or Thumbdrive (U-Disk) and insert it into your Edge.
Setup serial debugging tool and boot to the U-Boot Command Line.
- Load U-Boot from SD-Card:
kedge# load mmc 1 $kernel_addr_r u-boot-spi.bin
- Load U-Boot from Thumbdrive (U-Disk):
kedge# usb start
kedge# sf probe
This will take about 3 minutes, please be patient.
After reboot, you will boot from the SPI-Flash.