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:
To install crossbuild-essential-riscv64 package, execute the following command:
sudo apt-get install crossbuild-essential-riscv64
Tip:

<Configuration_File>: Both starfive_jh7110_defconfig and starfive_visionfive2_defconfig are applicable.

The following is the example command:

make starfive_jh7110_defconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv dtbs
Different boards use different dtb files:
  • jh7110-visionfive-v2.dtb: for version 1.2A and 1.3B board.
  • jh7110-visionfive-v2-ac108.dtb: for version 1.2A and 1.3B board with ac108 codec.
  • jh7110-visionfive-v2-wm8960.dtb: for version 1.2A and 1.3B board with wm8960 codec.
Tip: You can refer to the silk print on the board for the version information.