starfive-dubhe.conf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #EXTRA_IMAGEDEPENDS += "u-boot"
  8. #UBOOT_MACHINE = "qemu-riscv64_smode_defconfig"
  9. #UBOOT_ELF = "u-boot"
  10. #require conf/machine/include/qemu.inc
  11. # qemuboot options
  12. EXTRA_IMAGEDEPENDS += " qemu-helper-native "
  13. IMAGE_CLASSES += " qemuboot "
  14. QB_MACHINE = "-machine virt"
  15. QB_DEFAULT_KERNEL = "Image-initramfs-starfive-dubhe.bin"
  16. QB_DEFAULT_BIOS = "fw_payload.bin"
  17. QB_CPU = "-cpu rv64,x-h=true,x-b=true"
  18. QB_DEFAULT_FSTYPE = "cpio.gz"
  19. SERIAL_CONSOLES = "115200;ttyS0"
  20. QB_SYSTEM_NAME = "qemu-system-riscv64"
  21. QB_MEM = "-m 2048"
  22. QB_OPT_APPEND = "-smp 8"
  23. require conf/machine/include/riscv/tune-riscv.inc
  24. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  25. #KERNEL_CLASSES = "kernel-fitimage"
  26. #KERNEL_IMAGETYPE = "fitImage"
  27. KERNEL_DEVICETREE ?= "starfive/dubhe_fpga.dtb"
  28. KERNEL_IMAGETYPE = "Image"
  29. KEEPUIMAGE = "no"
  30. INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
  31. INITRAMFS_MAXSIZE = "524288"
  32. ###KERNEL_IMAGETYPE += "uImage"
  33. #UBOOT_ENV ?= "boot"
  34. #UBOOT_ENV_SUFFIX = "scr.uimg"
  35. PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
  36. #PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-starfive"
  37. #EXTRA_IMAGEDEPENDS += "u-boot"
  38. #EXTRA_IMAGEDEPENDS += "opensbi"
  39. RISCV_SBI_PLAT = "generic"
  40. RISCV_SBI_PAYLOAD = "Image-initramfs-starfive-dubhe.bin"
  41. PREFERRED_VERSION_qemu = "6.1.0"
  42. PREFERRED_VERSION_qemu-native = "6.1.0"
  43. PREFERRED_VERSION_nativesdk-qemu = "6.1.0"
  44. QEMU_EXTRAOPTIONS_riscv64 = " -cpu rv64,x-b=true"
  45. #
  46. ###IMAGE_FSTYPES += "wic.gz wic.bmap ext4 cpio"
  47. #UBOOT_CONFIG = "defconfig"
  48. ## Do not update fstab file when using wic images
  49. ###WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  50. ## wic default support
  51. ###WKS_FILE_DEPENDS ?= " \
  52. ### opensbi \
  53. ### e2fsprogs-native \
  54. ### bmap-tools-native \
  55. ###"
  56. ###IMAGE_BOOT_FILES ?= " \
  57. ### fw_payload.bin \
  58. ### ${KERNEL_IMAGETYPE} \
  59. ### ${RISCV_SBI_FDT} \
  60. # boot.scr.uimg \
  61. ###"
  62. WKS_FILE ?= "starfive-dubhe-initramfs.wks"
  63. #inherit core-image