Flashing OS to Onboard eMMC (eMMC Version)

This section describes how to flash Ubuntu or Debian (both Linux distributions) to the VisionFive 2 Lite’s onboard eMMC using the Fastboot tool or Fastboot commands. Step-by-step examples are provided for Linux and Windows host systems as reference for implementation.

Hardware Preparation

  1. In addition to the hardware items described in Before You Start, one USB C to USB A/C cable is required to flash OS to onboard eMMC.
  2. Before using the fastboot tool to flash the image, connect the serial port and USB data cable properly as the following:
    Figure 1. Set up Hardware

    ①: Connect the serial port to VisionFive 2 Lite (for entering to fastboot mode by running commands during starup).

    ②: Connect the USB-C port of the USB-C to USB-A/C cable to the VisionFive 2 Lite, and connect the other end to the PC.

Software Preparation

Perform the following steps to install drivers for using StarFive Fastboot Tool on Windows for the first time or fastboot on Ubuntu:

  1. Download and decompress the SFFB_Tool_V1.0.7z package.
  2. Enter fastboot mode by perform one of the following methods:
    • By entering commands during startup:
      1. Power on the VisionFive 2 Lite, and press any key to stop at U-Boot.
        Figure 2. Press Any Key to Stop at U-Boot
      2. Enter fastboot usb 0 and wait.
        Figure 3. Enter fastboot usb 0
    • By shorting fastboot pins before powering on:
      1. Shorting the fastboot pins before powering on can also make the board enter fastboot mode automatically.
        Figure 4. Shorting Fastboot Pins
        Note: The highlighted area is the fastboot pins.
        Figure 5. Fastboot Mode
  3. Open Device Manager on Windows, a device named USB Download Gadget will appear under Other Devices.
    Figure 6. USB Download Gadget
  4. Double click USB Download Gadget to open Properties menu, and then click Update driver .
    Figure 7. Update Driver
  5. Select Browse my computer for drivers.
    Figure 8. Browse My Computer for Drivers
  6. Add the folder path $\SFFB_Tool_V1.0\usb_driver, and then click Next to continue the installation.
    Figure 9. Add Folder Path

    The following output indicates a successful installation:

    Figure 10. Successful Installation
  7. Verify the installation in Device Manager.

    The device name should display under the Device Manager after success installation.

    Figure 11. Verification

Flashing OS into eMMC using Fastboot on Windows

Note the following when using the Fastboot tool:
  • Always open the software (Fastboot Tool) before powering on the board.
  • Automatic FastBoot mode is only triggered during the very first boot of the board. A successfully programmed board will skip this mode on subsequent startups.
  • To prevent accidental automatic programming of a new device, click the Reset button to clear the set file path once the current burning session is complete.
To flash the OS image into eMMC using the Fastboot tool on Windows:
  1. Start up and connection:

    Open the software, power on the VisionFive 2 Lite, and press any key at the U-Boot prompt to interrupt the boot process and enter the command (fastboot usb 0).

  2. Select burning mode and file:
    1. Choose the appropriate burning mode based on your requirements:
      • Image: For burning system image files (*.img).
      • Kernel: For burning the Linux kernel file (starfive-visionfive2-vfat.part).
      • FileSystem: For burning filesystem images (*.ext4).
    2. Select the corresponding image file (e.g., ubuntu-24.03-preinstalled-desktop-riscv64+vf2-lite.img).
      Figure 12. Select Image File
  3. Start burning by clicking the Run or Start All button to begin the download. Wait for the progress bar to reach 100%, indicating the burning process is complete.
    Figure 13. Start Burning
    Figure 14. Example Output
  4. Once the image is successfully burned, restart the board.

Flashing OS into eMMC using Fastboot on Ubuntu

To flash the OS image into eMMC using the Fastboot tool on Ubuntu:

  1. Install Fastboot Tool on Ubuntu:
    $ sudo apt install fastboot
  2. For enabling faster and more reliable flashing, image should be converted into a sparse format to skip empty data blocks.
    $ sudo apt install android-sdk-libsparse-utils
    $ img2simg StarFive-JH7110-Ubuntu-Noble-Build11.img xxxxx.img
    
  3. Enter the fastboot mode on Ubuntu. For details, see Software Preparation.
  4. Run fastboot devices -l and find the device.
    Figure 15. Example Output
  5. Run fastboot flash mmc0 xxxxx.img to burn the image into eMMC, and then restart the device after flashing:
    Tip: xxxxx.img is the file generated in Step 2.
    Figure 16. Example Output