freedom-u540.conf 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #@TYPE: Machine
  2. #@NAME: freedom-u540
  3. #@SOC: Freedom U540
  4. #@DESCRIPTION: Machine configuration for the HiFive Unleashed development board
  5. require conf/machine/include/riscv/tune-riscv.inc
  6. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  7. KERNEL_CLASSES = "kernel-fitimage"
  8. KERNEL_IMAGETYPE = "fitImage"
  9. PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
  10. PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
  11. PREFERRED_VERSION_openocd-native = "riscv"
  12. PREFERRED_VERSION_openocd = "riscv"
  13. EXTRA_IMAGEDEPENDS += "opensbi"
  14. RISCV_SBI_PLAT = "sifive/fu540"
  15. ## This sets u-boot as the default OpenSBI payload
  16. RISCV_SBI_PAYLOAD ?= "u-boot.bin"
  17. ## This will set the kernel as the OpenSBI payload. This is not recommended,
  18. ## you can use U-Boot's MMC loading instead.
  19. # RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
  20. RISCV_SBI_FDT ?= "hifive-unleashed-a00.dtb"
  21. ## Use this to add Microsemi Expansion board support
  22. # RISCV_SBI_FDT ?= "hifive-unleashed-a00-microsemi.dtb"
  23. SERIAL_CONSOLES = "115200;ttySIF0"
  24. MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
  25. IMAGE_FSTYPES += "wic.gz ext4"
  26. KERNEL_DEVICETREE ?= "sifive/${RISCV_SBI_FDT}"
  27. ## Do not update fstab file when using wic images
  28. WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  29. EXTRA_IMAGEDEPENDS += "u-boot"
  30. UBOOT_MACHINE = "sifive_fu540_defconfig"
  31. UBOOT_ENTRYPOINT = "0x80200000"
  32. UBOOT_DTB_LOADADDRESS = "0x82200000"
  33. ## Set this to "mmc-boot" to generate a boot.scr file which should be included
  34. ## in the boot partition. It will try to load a kernel image by TFTP and if that
  35. ## fails it will fall back to local images in the boot partition.
  36. UBOOT_ENV ?= "tftp-mmc-boot"
  37. ## wic default support
  38. WKS_FILE_DEPENDS ?= " \
  39. opensbi \
  40. e2fsprogs-native \
  41. bmap-tools-native \
  42. "
  43. IMAGE_BOOT_FILES ?= " \
  44. fw_payload.bin \
  45. fitImage \
  46. boot.scr.uimg \
  47. "
  48. WKS_FILE ?= "freedom-u540-opensbi.wks"
  49. BAD_RECOMMENDATIONS += "\
  50. libcxx-dev \
  51. libcxx-staticdev \
  52. compiler-rt-dev \
  53. compiler-rt-staticdev \
  54. "
  55. ASSUME_PROVIDED += "\
  56. libcxx-dev \
  57. libcxx-staticdev \
  58. compiler-rt-dev \
  59. compiler-rt-staticdev \
  60. "