mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-17 20:52:40 +02:00
Fixes NOTE: Multiple providers are available for virtual/bootloader (u-boot, u-boot-juno, u-boot-orangepi-i96, u-boot-poplar, u-boot-socfpga) Consider defining a PREFERRED_PROVIDER entry to match virtual/bootloader Signed-off-by: Khem Raj <raj.khem@gmail.com>
80 lines
2.1 KiB
Plaintext
80 lines
2.1 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: freedom-u540
|
|
#@SOC: Freedom U540
|
|
#@DESCRIPTION: Machine configuration for the HiFive Unleashed development board
|
|
|
|
require conf/machine/include/riscv/tune-riscv.inc
|
|
|
|
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
|
|
|
|
KERNEL_CLASSES = "kernel-fitimage"
|
|
KERNEL_IMAGETYPE = "fitImage"
|
|
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
|
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
|
|
|
PREFERRED_VERSION_openocd-native = "riscv"
|
|
PREFERRED_VERSION_openocd = "riscv"
|
|
|
|
EXTRA_IMAGEDEPENDS += "opensbi"
|
|
RISCV_SBI_PLAT = "sifive/fu540"
|
|
|
|
## This sets u-boot as the default OpenSBI payload
|
|
RISCV_SBI_PAYLOAD ?= "u-boot.bin"
|
|
## This will set the kernel as the OpenSBI payload. This is not recommended,
|
|
## you can use U-Boot's MMC loading instead.
|
|
# RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
|
|
|
|
RISCV_SBI_FDT ?= "hifive-unleashed-a00.dtb"
|
|
## Use this to add Microsemi Expansion board support
|
|
# RISCV_SBI_FDT ?= "hifive-unleashed-a00-microsemi.dtb"
|
|
|
|
SERIAL_CONSOLES = "115200;ttySIF0"
|
|
|
|
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
|
|
|
|
IMAGE_FSTYPES += "wic.gz ext4"
|
|
KERNEL_DEVICETREE ?= "sifive/${RISCV_SBI_FDT}"
|
|
|
|
## Do not update fstab file when using wic images
|
|
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
|
|
|
|
EXTRA_IMAGEDEPENDS += "u-boot"
|
|
UBOOT_MACHINE = "sifive_fu540_defconfig"
|
|
|
|
UBOOT_ENTRYPOINT = "0x80200000"
|
|
UBOOT_DTB_LOADADDRESS = "0x82200000"
|
|
|
|
## Set this to "mmc-boot" to generate a boot.scr file which should be included
|
|
## in the boot partition. It will try to load a kernel image by TFTP and if that
|
|
## fails it will fall back to local images in the boot partition.
|
|
UBOOT_ENV ?= "tftp-mmc-boot"
|
|
|
|
## wic default support
|
|
WKS_FILE_DEPENDS ?= " \
|
|
opensbi \
|
|
e2fsprogs-native \
|
|
bmap-tools-native \
|
|
"
|
|
|
|
IMAGE_BOOT_FILES ?= " \
|
|
fw_payload.bin \
|
|
fitImage \
|
|
boot.scr.uimg \
|
|
"
|
|
|
|
WKS_FILE ?= "freedom-u540-opensbi.wks"
|
|
|
|
BAD_RECOMMENDATIONS += "\
|
|
libcxx-dev \
|
|
libcxx-staticdev \
|
|
compiler-rt-dev \
|
|
compiler-rt-staticdev \
|
|
"
|
|
ASSUME_PROVIDED += "\
|
|
libcxx-dev \
|
|
libcxx-staticdev \
|
|
compiler-rt-dev \
|
|
compiler-rt-staticdev \
|
|
"
|