Generating dtb

To compile the device tree sources (.dtsi files) into device tree blobs (.dtb files) using the device tree compiler (DTC), execute the following command under the root directory of Linux:

make <Configuration_File> ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv dtbs
Tip:

<Configuration_File>: Both starfive_jh7100_fedora_defconfig and visionfive_defconfig are applicable.

The following is the example command:

make starfive_jh7100_fedora_defconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv dtbs

Different boards use different dtb files. The following table describes the relationship:

Table 1. dtb Files
Board File
StarLight /linux/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dtb
VisionFive /linux/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb