| 3 - Preparation
3.2. Preparing Software
Before configuring the 40-pin header, the Debian OS needs to be flashed into the Micro-SD card, and the DTB files need to be
compiled and replaced. The following procedures are provided:
3.2.1. GitHub Repository
The following table describes the GitHub Repository addresses:
Note:
Make sure you have switched to the corresponding branch.
Table 3-2 GitHub Repository Addresses
Type
Repository
Branch
Linux
JH7110_VisionFive2_devel
DTS Files under Linux Repository
•
•
•
-
Uboot
JH7110_VisionFive2_devel
OpenSBI
master
Debian
-
3.2.2. Flashing Debian OS to a Micro-SD Card
Two methods are provided to flash images. One is for Mac/Linux, the other is for Windows. For detailed instructions on flashing
Debian OS to a Micro-SD card, refer to
Flashing OS to a Micro-SD Card
VisionFive 2 Single Board Computer Quick Start
3.2.3. 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:
11
© 2018-2022 StarFive Technology
All rights reserved
StarFive