Replace the dtb Files to be Loaded

By enabling different device tree files, it is possible to achieve different functions or support different peripherals on VisionFive 2. Taking default kernel of Debian202403 image as an example, it supports the following different device tree files:
Figure 1. dtb Files
Note: 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-tdm.dtb: for version 1.2A and 1.3B board with tdm sound card.
  • jh7110-visionfive-wm8960.dtb: for Version 1.2A and 1.3B board with wm8960 codec.

Modify uEnv.txt File

By modifying the uEnv.txt file, different device tree files can be loaded when the board starts. For example, modify the uEnv.txt file to use jh7110-visionfive-v2-wm8960.dtb to support the wm8960 codec:
Figure 2. Modify uEnv.txt File

Verification

After re-powering on and selecting the corresponding kernel, it can be found that jh7110-visionfive-v2-wm8960.dtb has been correctly loaded from the corresponding path:
Figure 3. Verification