How to flash image into QSPI Flash - starfive-tech/edk2 GitHub Wiki
Flash image into QSPI flash
Setup TFTP server:
- Download TFTP tool with this link
- Identify the server ethernet IP address in the TFTP64 tool.

- 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:
Perform the following to flash images into eMMC:
- Set VisionFive2 board to boot from “Flash”
Note: Make sure Flash has a working U-Boot if not, refer to here.
- Connect the board ethernet to the same router as the server.
- 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
- Initialize SPI flash
> sf probe
- Flash u-boot-spl.bin.normal.out into flash
> tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
> sf update 0xa0000000 0x0 $filesize
- 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