Updating SPL and U-Boot

To update SPL and U-Boot for JH-7110 DevKit, perform the following steps:

  1. Prepare the TFTP server. The following is an example command for Ubuntu distribution.
    sudo apt install tftpd-hpa
    Note: For instructions to deploy the TFTP server, refer to the step 2 to step 6 in Using Ethernet section of the VisionFive Single Board Computer Quick Start Guide.
  2. Power on JH-7110 DevKit and wait until it enters the U-Boot command line interface.
  3. Configure the environment variables by executing:
    StarFive # setenv ipaddr 192.168.120.222;setenv serverip 192.168.120.99
    
  4. Check the connectivity by pinging the host PC from JH-7110 DevKit.
  5. Initialize SPI flash:
    StarFive # sf probe
    
  6. Update SPL binary:
    StarFive # tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
    StarFive # sf update 0xa0000000 0x0 $filesize
    
  7. Update U-Boot binary:
    StarFive # tftpboot 0xa0000000 ${serverip}:devkits_fw_payload.img
    StarFive # sf update 0xa0000000 0x100000 $filesize