starfive-dubhe.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #@TYPE: Machine
  2. #@NAME: starfive-dubhe
  3. #@SOC: Dubhe default
  4. #@DESCRIPTION: Machine configuration for the beta Dubhe default config
  5. #require conf/machine/include/riscv/qemuriscv.inc
  6. #XVISOR_PLAT = "riscv/virt64"
  7. LLVMVERSION = "14.0.0"
  8. CLANGSDK = "1"
  9. EXTRA_IMAGEDEPENDS += " llvm"
  10. #EXTRA_IMAGEDEPENDS += "u-boot"
  11. #UBOOT_MACHINE = "qemu-riscv64_smode_defconfig"
  12. #UBOOT_ELF = "u-boot"
  13. #require conf/machine/include/qemu.inc
  14. # qemuboot options
  15. EXTRA_IMAGEDEPENDS += " qemu-helper-native "
  16. IMAGE_CLASSES += " qemuboot "
  17. QB_MACHINE = "-machine virt"
  18. QB_DEFAULT_KERNEL = "Image-initramfs-starfive-dubhe.bin"
  19. QB_DEFAULT_BIOS = "fw_payload.bin"
  20. QB_CPU = "-cpu rv64,x-h=true,x-b=true"
  21. QB_DEFAULT_FSTYPE = "cpio.gz"
  22. SERIAL_CONSOLES = "115200;ttyS0"
  23. QB_SYSTEM_NAME = "qemu-system-riscv64"
  24. QB_MEM = "-m 2048"
  25. QB_OPT_APPEND = "-smp 8"
  26. require conf/machine/include/riscv/tune-riscv.inc
  27. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  28. #KERNEL_CLASSES = "kernel-fitimage"
  29. #KERNEL_IMAGETYPE = "fitImage"
  30. KERNEL_DEVICETREE ?= "starfive/dubhe_fpga.dtb"
  31. KERNEL_IMAGETYPE = "Image"
  32. KEEPUIMAGE = "no"
  33. INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
  34. INITRAMFS_MAXSIZE = "524288"
  35. ###KERNEL_IMAGETYPE += "uImage"
  36. #UBOOT_ENV ?= "boot"
  37. #UBOOT_ENV_SUFFIX = "scr.uimg"
  38. PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
  39. #PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-starfive"
  40. #EXTRA_IMAGEDEPENDS += "u-boot"
  41. #EXTRA_IMAGEDEPENDS += "opensbi"
  42. RISCV_SBI_PLAT = "generic"
  43. RISCV_SBI_PAYLOAD = "Image-initramfs-starfive-dubhe.bin"
  44. QEMUVERSION = "6.0.0"
  45. QEMU_EXTRAOPTIONS_riscv64 = " -cpu rv64,x-b=true"
  46. GCCVERSION = "11.%"
  47. BINUVERSION = "2.37%"
  48. GLIBCVERSION = "2.35"
  49. #
  50. ###IMAGE_FSTYPES += "wic.gz wic.bmap ext4 cpio"
  51. #UBOOT_CONFIG = "defconfig"
  52. ## Do not update fstab file when using wic images
  53. ###WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  54. ## wic default support
  55. ###WKS_FILE_DEPENDS ?= " \
  56. ### opensbi \
  57. ### e2fsprogs-native \
  58. ### bmap-tools-native \
  59. ###"
  60. ###IMAGE_BOOT_FILES ?= " \
  61. ### fw_payload.bin \
  62. ### ${KERNEL_IMAGETYPE} \
  63. ### ${RISCV_SBI_FDT} \
  64. # boot.scr.uimg \
  65. ###"
  66. WKS_FILE ?= "starfive-dubhe-initramfs.wks"
  67. #inherit core-image