1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #@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_IMAGETYPE = "Image"
- PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
- 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_append = " wic.gz ext4"
- KERNEL_IMAGETYPES += "uImage"
- KEEPUIMAGE = "no"
- ## 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 ?= "mmc-boot"
- ## wic default support
- WKS_FILE_DEPENDS ?= " \
- opensbi \
- e2fsprogs-native \
- bmap-tools-native \
- "
- IMAGE_BOOT_FILES ?= " \
- fw_payload.bin \
- Image \
- uImage \
- boot.scr.uimg \
- ${RISCV_SBI_FDT} \
- "
- 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 \
- "
|