Using Ethernet

  1. Connect one end of an Ethernet cable to the VisionFive RJ45 connector, and connect the other end of the cable to a router.
  2. Download TFTPD64 from tftpd64.
  3. Install TFTPD64 on your PC.
  4. Open TFTPD64 and configure the Current Directory, which specifies the file path to store bootloader, ddr init, and u-boot files. The following figure shows an example configuration:
    Figure 1. Example Settings
    examplesettings.png
  5. Power on the VisionFive and wait until it enters the u-boot mode.
  6. Configure the environment variables by executing:
    setenv ipaddr 192.168.120.200;setenv serverip 192.168.120.12
    Note: Generally, the default IP of a router is 192.168.120.1. In this case, use the server IP as the IP assigned by the DHCP server of the router and use the VisionFive IP as 192.168.120.xxx. However, if your router IP is different (for example, 192.168.2.1 ), make sure the server IP and VisionFive IP are in the same IP domain (for example, 192.168.2.xxx).
  7. Check the connectivity by pinging the host PC from VisionFivee:

    Example Command:

    ping 192.168.120.12
    Result: The following output indicates that the host PC and VisionFive have established communication on the same network.
    Figure 2. Example Output
    example_output_eh.png
  8. Connect to SPI Flash:
    sf probe
    Figure 3. Example Output
    eo_spi.png
    Tip:
    • In the commands of the following Step 9 to 11:

      • 0x90000000 refers to the ddr address

      • 192.168.120.12 refers to the TFTP server IP

      • 0x0 refers to the SPI flash offset for bootloader.

      • 0x10000 refers to the SPI flash offset for ddrinit.

      • 0x40000 refers to the SPI flash offset for u-boot.

    • If VisionFive fails to boot up after restart, refer to the Appendix C: Recovering the Bootloader chapter to recover.

  9. Update bootloader:
    tftpboot 0x90000000 192.168.120.12:bootloader-JH7100-211102.bin.out
    sf update 0x90000000 0x0 ${filesize}
    Figure 4. Example Output:
    eo_bootloader.png
  10. Update ddr init:
    tftpboot 0x90000000 192.168.120.12:ddrinit-2133-211102.bin.out
    sf update 0x90000000 0x10000 ${filesize}
    Figure 5. Example Output
    eo_ddr_init.png
  11. Update u-boot:
    tftpboot 0x90000000 192.168.120.12:fw_payload_visionfive.bin.out
    sf update 0x90000000 0x40000 ${filesize}
    Example Output:
    Figure 6. Example Output
    eo_uboot.png
  12. Restart VisionFive to make the updates take effect.