starfive-dubhe.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #@TYPE: Machine
  2. #@NAME: starfive-dubhe
  3. #@SOC: Dubhe default
  4. #@DESCRIPTION: Machine configuration for the Dubhe default config
  5. #require conf/machine/include/qemu.inc
  6. # qemuboot options
  7. EXTRA_IMAGEDEPENDS:append = " qemu-helper-native"
  8. IMAGE_CLASSES += " qemuboot "
  9. QB_MACHINE = "-machine virt"
  10. QB_DEFAULT_KERNEL = "Image-initramfs-starfive-dubhe.bin"
  11. QB_DEFAULT_BIOS = "fw_payload.bin"
  12. QB_CPU = "-cpu rv64,x-h=true,x-b=true"
  13. QB_DEFAULT_FSTYPE = "cpio.gz"
  14. SERIAL_CONSOLES = "115200;ttyS0"
  15. QB_SYSTEM_NAME = "qemu-system-riscv64"
  16. QB_MEM = "-m 2048"
  17. QB_OPT_APPEND = "-smp 8"
  18. require conf/machine/include/riscv/tune-riscv.inc
  19. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  20. KERNEL_DEVICETREE ?= "starfive/dubhe_fpga.dtb"
  21. KERNEL_IMAGETYPE = "Image"
  22. KEEPUIMAGE = "no"
  23. INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
  24. INITRAMFS_MAXSIZE = "524288"
  25. PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
  26. RISCV_SBI_PLAT = "generic"
  27. RISCV_SBI_PAYLOAD = "Image-initramfs-starfive-dubhe.bin"
  28. QEMU_EXTRAOPTIONS:riscv64 = " -cpu rv64,x-b=true"
  29. GLIBCVERSION = "2.35"
  30. #
  31. ###IMAGE_FSTYPES += "wic.gz wic.bmap ext4 cpio"
  32. #UBOOT_CONFIG = "defconfig"
  33. ## Do not update fstab file when using wic images
  34. ###WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  35. ## wic default support
  36. ###WKS_FILE_DEPENDS ?= " \
  37. ### opensbi \
  38. ### e2fsprogs-native \
  39. ### bmap-tools-native \
  40. ###"
  41. ###IMAGE_BOOT_FILES ?= " \
  42. ### fw_payload.bin \
  43. ### ${KERNEL_IMAGETYPE} \
  44. ### ${RISCV_SBI_FDT} \
  45. ### boot.scr.uimg \
  46. ###"
  47. WKS_FILE ?= "starfive-dubhe-initramfs.wks"