From c4b2101cd6b401e89c513bb5d467a3970a6c73db Mon Sep 17 00:00:00 2001 From: Mirza Krak Date: Tue, 20 Mar 2018 00:48:49 +0100 Subject: [PATCH] machine: initial freedom-u540 configuration This is the machine configuration file for HiFive Unleashed development board. Signed-off-by: Mirza Krak --- conf/machine/freedom-u540.conf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 conf/machine/freedom-u540.conf diff --git a/conf/machine/freedom-u540.conf b/conf/machine/freedom-u540.conf new file mode 100644 index 0000000..0589fb5 --- /dev/null +++ b/conf/machine/freedom-u540.conf @@ -0,0 +1,29 @@ +#@TYPE: Machine +#@NAME: freedom-u540 +#@SOC: Freedom U540 +#@DESCRIPTION: Machine configuration for the HiFive Unleashed development board + +require conf/machine/include/tune-riscv.inc + +MACHINE_FEATURES = "screen keyboard ext2 ext3 serial" +MACHINE_ARCH = "riscv64" + +KERNEL_IMAGETYPE = "vmlinux" + +PREFERRED_PROVIDER_virtual/kernel = "linux-riscv" +PREFERRED_VERSION_linux-riscv = "4.15%" + +GDBVERSION = "riscv" +QEMUVERSION = "riscv" + +EXTRA_IMAGEDEPENDS += "riscv-pk" + +SERIAL_CONSOLE = "115200 ttyS0" + +MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" + +RISCV_BBL_PAYLOAD ?= "${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin" + +INITRAMFS_IMAGE_BUNDLE = "1" +INITRAMFS_IMAGE = "riscv-initramfs-image" +KERNEL_INITRAMFS = '-initramfs'