starfive-dubhe.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #@TYPE: Machine
  2. #@NAME: starfive-dubhe
  3. #@SOC: Dubhe default
  4. #@DESCRIPTION: Machine configuration for the Dubhe default config
  5. LLVMVERSION = "14.0.0"
  6. CLANGSDK = "1"
  7. EXTRA_IMAGEDEPENDS:append = " llvm file-native rpm-native popt-native openocd-native"
  8. EXTRA_IMAGE_FEATURES:append = " dbg-pkgs tools-profile"
  9. PACKAGE_DEBUG_SPLIT_STYLE = 'debug-file-directory'
  10. #require conf/machine/include/qemu.inc
  11. # qemuboot options
  12. EXTRA_IMAGEDEPENDS:append = " qemu-helper-native:do_addto_recipe_sysroot"
  13. IMAGE_CLASSES += " qemuboot "
  14. QB_MACHINE = "-machine virt"
  15. QB_DEFAULT_KERNEL = "${@oe.utils.conditional('ENABLE_NFS','1','Image-starfive-dubhe.bin','Image-initramfs-starfive-dubhe.bin',d)}"
  16. QB_DEFAULT_BIOS = "fw_payload.bin"
  17. QB_CPU = "-cpu rv64,x-h=true,x-b=true,x-v=true"
  18. QB_DEFAULT_FSTYPE = "${@oe.utils.conditional('ENABLE_NFS','1','ext4','cpio.gz',d)}"
  19. SERIAL_CONSOLES = "115200;ttyS0"
  20. QB_SYSTEM_NAME = "qemu-system-riscv64"
  21. QB_MEM = "-m 2048"
  22. QB_OPT_APPEND = "-smp 8"
  23. QB_ROOTFS_OPT = "${@oe.utils.conditional('ENABLE_NFS','1','-drive file=@ROOTFS@,format=raw,id=mmc0,if=none -device virtio-blk-device,drive=mmc0','',d)}"
  24. require conf/machine/include/riscv/tune-riscv.inc
  25. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  26. KERNEL_DEVICETREE ?= "starfive/dubhe_fpga.dtb starfive/dubhe_fpga_dual.dtb "
  27. KERNEL_IMAGETYPE = "Image"
  28. KEEPUIMAGE = "no"
  29. INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
  30. INITRAMFS_MAXSIZE = "524288"
  31. PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
  32. RISCV_SBI_PLAT = "generic"
  33. RISCV_SBI_PAYLOAD = "${@oe.utils.conditional('ENABLE_NFS','1','Image-starfive-dubhe.bin','Image-initramfs-starfive-dubhe.bin',d)}"
  34. QEMU_EXTRAOPTIONS:riscv64 = " -cpu rv64,x-b=true,x-v=true"
  35. GLIBCVERSION = "2.36"
  36. BINUVERSION = "2.37"
  37. QEMUVERSION = "6.0.0"
  38. PREFERRED_VERSION_opensbi = "1.1"
  39. #
  40. ###IMAGE_FSTYPES += "wic.gz wic.bmap ext4 cpio"
  41. #UBOOT_CONFIG = "defconfig"
  42. ## Do not update fstab file when using wic images
  43. ###WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  44. ## wic default support
  45. WKS_FILE_DEPENDS ?= " \
  46. opensbi \
  47. bmap-tools-native \
  48. "
  49. ###IMAGE_BOOT_FILES ?= " \
  50. ### fw_payload.bin \
  51. ### ${KERNEL_IMAGETYPE} \
  52. ### ${RISCV_SBI_FDT} \
  53. ### boot.scr.uimg \
  54. ###"
  55. WKS_FILE ?= "starfive-dubhe.wks"