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

Flash image into eMMC

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. Flash sdcard.img file into eMMC.

    > tftpboot 0x90000000 192.168.0.100:sdcard.img
    > mmc write 0x90000000 0x0 0x190029
    

    Image files can download from release page here

  4. Replace partition 1-2

    > tftpboot 0x90000000 192.168.0.100:u-boot-spl.bin.normal.out
    > mmc write 0x90000000 0x1000 0x1000
    > tftpboot 0x90000000 192.168.0.100:JH7110.fd
    > mmc write 0x90000000 0x2000 0x2000
    

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