meta-riscv/conf/machine/visionfive.conf
Richard Purdie d16bc5a3f2 visionfive: Add initial support for Starfive Visionfive board
This is largely based on the beaglev code nbut tweaked to work with current
starfive kernel repositories and tweak to the board.

The kernel and rootfs boot with working network and graphics. The u-boot
binary builds but is as yet untested.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-05 07:09:47 -04:00

61 lines
1.5 KiB
Text

#@TYPE: Machine
#@NAME: visionfive
#@SOC: StarFive JH7100
#@DESCRIPTION: Machine configuration for the VisionFive board
require conf/machine/include/riscv/tune-riscv.inc
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
KERNEL_CLASSES = "kernel-fitimage"
KERNEL_IMAGETYPE = "fitImage"
UBOOT_ENV ?= "boot"
UBOOT_ENV_SUFFIX = "scr.uimg"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-starfive"
PREFERRED_VERSION_openocd-native = "riscv"
PREFERRED_VERSION_openocd = "riscv"
EXTRA_IMAGEDEPENDS += "opensbi"
RISCV_SBI_PLAT = "generic"
## This sets u-boot as the default OpenSBI payload
RISCV_SBI_PAYLOAD ?= "u-boot.bin"
RISCV_SBI_FDT ?= "jh7100-visionfive.dtb"
SERIAL_CONSOLES = "115200;ttyS0"
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules linux-firmware-beaglev-bcm43430"
IMAGE_FSTYPES += "wic.gz wic.bmap ext4"
KERNEL_DEVICETREE ?= "starfive/jh7100-starfive-visionfive-v1.dtb"
## Do not update fstab file when using wic images
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
EXTRA_IMAGEDEPENDS += "u-boot-starfive"
UBOOT_MACHINE = "starfive_jh7100_visionfive_smode_defconfig"
UBOOT_ENTRYPOINT = "0x80200000"
UBOOT_DTB_LOADADDRESS = "0x82200000"
UBOOT_DTB = "1"
UBOOT_DTB_BINARY = "jh7100-visionfive.dtb"
## wic default support
WKS_FILE_DEPENDS ?= " \
opensbi \
e2fsprogs-native \
bmap-tools-native \
"
IMAGE_BOOT_FILES ?= " \
fw_payload.bin \
${KERNEL_IMAGETYPE} \
${RISCV_SBI_FDT} \
boot.scr.uimg \
uEnv.txt \
"
WKS_FILE ?= "beaglev.wks"