Using Ethernet
- Connect one end of an Ethernet cable to the VisionFive RJ45 connector, and connect the other end of the cable to a router.
- Download TFTPD64 from tftpd64.
- Install TFTPD64 on your PC.
-
Open TFTPD64 and configure the Current Directory, which
specifies the file path to store
bootloader
,ddr init
, andu-boot
files. The following figure shows an example configuration: - Power on the VisionFive and wait until it enters the u-boot mode.
-
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). -
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. -
Connect to SPI Flash:
sf probe
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 forbootloader
. -
0x10000
refers to the SPI flash offset forddrinit
. -
0x40000
refers to the SPI flash offset foru-boot
.
-
-
If VisionFive fails to boot up after restart, refer to the Appendix C: Recovering the Bootloader chapter to recover.
-
-
Update
bootloader
:tftpboot 0x90000000 192.168.120.12:bootloader-JH7100-211102.bin.out sf update 0x90000000 0x0 ${filesize}
-
Update
ddr init
:tftpboot 0x90000000 192.168.120.12:ddrinit-2133-211102.bin.out sf update 0x90000000 0x10000 ${filesize}
-
Update
u-boot
:tftpboot 0x90000000 192.168.120.12:fw_payload_visionfive.bin.out sf update 0x90000000 0x40000 ${filesize}
Example Output: - Restart VisionFive to make the updates take effect.