How to flash image into QSPI Flash - starfive-tech/edk2 GitHub Wiki

Flash image into QSPI flash

Setup TFTP server:

  1. Download TFTP tool with this link
  2. Identify the server ethernet IP address in the TFTP64 tool.

image

  1. Browse the images files folder using TFTP64 tool:
  • Click the “Browse” icon in the tool.
  • Search for the folder containing all the images.
  • Click “Show Dir” to view all the files in the selected folder.
  • Make sure all the files are present as shown in Figure below:

image

Perform the following to flash images into eMMC:

  1. Set VisionFive2 board to boot from “Flash”

image

Note: Make sure Flash has a working U-Boot if not, refer to here.

  1. Connect the board ethernet to the same router as the server.
  2. Setup environment:
> setenv serverip 192.168.0.100
> setenv ipaddr 192.168.0.101
> setenv gatewayip 192.168.0.1

Replace the above ip according to your environment

  1. Initialize SPI flash
> sf probe
  1. Flash u-boot-spl.bin.normal.out into flash
> tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
> sf update 0xa0000000 0x0 $filesize
  1. Flash JH7110.fd into flash
tftpboot 0xa0000000 ${serverip}:JH7110.fd
sf update 0xa0000000 0x100000 $filesize

Image files can build from quick start guide here or download from release page here