How-to-flash-image-into-QSPI-Flash
johnchewyy edited this page 9 months ago

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:
  2. Click the “Browse” icon in the tool.
  3. Search for the folder containing all the images.
  4. Click “Show Dir” to view all the files in the selected folder.
  5. 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

  3. Initialize SPI flash

    > sf probe
    
  4. Flash u-boot-spl.bin.normal.out into flash

    > tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
    > sf update 0xa0000000 0x0 $filesize
    
  5. 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