Build Instructions

This section provides steps to build instructions after updating the sub-modules as described in Download the SDK. This procedure is quick building for the initramfs image, image.fit, which could be translated to the board through TFTP and could run on the board.

  1. Run the following command to build the toolchain, u-boot-spl.bin.normal.out, visionfive2_fw_payload.img, and image.fit.
    make -j$(nproc)

    Result:

    The following files will be generated under work/ directory:

    work/
    ├── visionfive2_fw_payload.img
    ├── image.fit
    ├── initramfs.cpio.gz
    ├── u-boot-spl.bin.normal.out
    ├── linux/arch/riscv/boot
        ├── dts
        │   └── starfive
        │       ├── jh7110-visionfive-v2-ac108.dtb
        │       ├── jh7110-visionfive-v2.dtb
        │       ├── jh7110-visionfive-v2-wm8960.dtb
        │       ├── vf2-overlay
        │       │   └── vf2-overlay-uart3-i2c.dtbo
        └── Image.gz
    

    The final build tree will consume about 16 GB of disk space.

  2. Copy the previously-generated files to the TFTP server workspace path.