mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-06-21 08:52:24 +02:00
70 lines
1.8 KiB
Plaintext
70 lines
1.8 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: visionfive2
|
|
#@SOC: StarFive JH7110
|
|
#@DESCRIPTION: Machine configuration for the VisionFive 2 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_PROVIDER_virtual/libgl ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/libgbm ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/egl ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa-pvr"
|
|
PREFERRED_PROVIDER_virtual/libgles2 ?= "visionfive2-pvr-graphics"
|
|
|
|
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 ?= "jh7110-visionfive-v2.dtb"
|
|
|
|
SERIAL_CONSOLES = "115200;ttyS0"
|
|
|
|
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
|
|
|
|
IMAGE_FSTYPES += "wic.gz wic.bmap ext4"
|
|
KERNEL_DEVICETREE ?= "starfive/jh7110-visionfive-v2.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_visionfive2_defconfig"
|
|
|
|
UBOOT_ENTRYPOINT = "0x80200000"
|
|
UBOOT_DTB_LOADADDRESS = "0x82200000"
|
|
UBOOT_DTB = "1"
|
|
UBOOT_DTB_BINARY = "starfive_visionfive2.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"
|