Skip to content

StarFive Visionfive2 Notes

Alexey Firago edited this page Mar 3, 2023 · 4 revisions

Overview

This page is a collection of notes on how to build and boot various pieces of software for StarFive Visionfive2 board.

Debug UART

UART settings - 115200 8n1

image

Boot Mode Settings

Boot Mode RGPIO_0 RGPIO_1
QSPI NOR Flash 0 0
SDIO3.0 1 0
eMMC 0 1
UART 1 1

image

References

Build U-Boot

sudo apt install gcc-riscv64-linux-gnu
export CROSS_COMPILE=riscv64-linux-gnu-

# Replace "VF2_v2.10.4" with the required tag or branch
git clone [email protected]:starfive-tech/u-boot.git -b VF2_v2.10.4

cd u-boot
make starfive_visionfive2_defconfig
make -j$(nproc)

Build OpenSBI

export CROSS_COMPILE=riscv64-linux-gnu-

# Replace "VF2_v2.10.4" with the required tag or branch
git clone [email protected]:starfive-tech/opensbi.git -b VF2_v2.10.4

cd opensbi
CFLAGS="-mabi=lp64d -march=rv64imafdc" make PLATFORM=generic FW_PAYLOAD_PATH=../u-boot/u-boot.bin FW_FDT_PATH=../u-boot/arch/riscv/dts/starfive_visionfive2.dtb  FW_TEXT_START=0x40000000
Clone this wiki locally