Opvolger/starfiveVisionFive2/u-boot-compile.md
2025-03-30 16:15:54 +02:00

1.2 KiB

U-boot & Opensbi

Links:

U-Boot

git clone https://github.com/u-boot/u-boot.git
cd u-boot
CROSS_COMPILE=riscv64-linux-gnu-
export CROSS_COMPILE
make distclean
make starfive_visionfive2_defconfig
make all
# uboot-2022.10/arch/riscv/dts/m1-x_milkv-jupiter.dtb uboot-2022.10/spl/u-boot-spl.bin and uboot-2022.10/u-boot.bin
# uboot-2022.10/bootinfo_emmc.bin  uboot-2022.10/bootinfo_sd.bin  uboot-2022.10/bootinfo_spinand.bin  uboot-2022.10/bootinfo_spinor.bin

OpenSBI

git clone https://github.com/riscv-software-src/opensbi.git
cd opensbi
U_BOOT_DIR=../u-boot
export U_BOOT_DIR
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generic FW_PAYLOAD_PATH=../u-boot/u-boot.bin FW_FDT_PATH=../u-boot/arch/riscv/dts/jh7110-starfive-visionfive-2.dtb FW_TEXT_START=0x40000000