-
Notifications
You must be signed in to change notification settings - Fork 0
StarFive Visionfive2 Notes
Alexey Firago edited this page Mar 3, 2023
·
4 revisions
This page is a collection of notes on how to build and boot various pieces of software for StarFive Visionfive2 board.
UART settings - 115200 8n1
Boot Mode | RGPIO_0 | RGPIO_1 |
---|---|---|
QSPI NOR Flash | 0 | 0 |
SDIO3.0 | 1 | 0 |
eMMC | 0 | 1 |
UART | 1 | 1 |
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)
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