blob: 1d32b4a58209ac555c322848c71cb6cd684340a5 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
2
3require conf/machine/include/qemu.inc
4require conf/machine/include/riscv/tune-riscv.inc
5
6MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
7
8KERNEL_IMAGETYPE = "Image"
9KERNEL_IMAGETYPES += "uImage"
10KEEPUIMAGE = "no"
11
12SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060013SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
Brad Bishopf3fd2882019-06-21 08:06:37 -040014
Brad Bishop79641f22019-09-10 07:20:22 -040015IMAGE_FSTYPES += "ext4 wic.qcow2"
16
17WKS_FILE ?= "qemuriscv.wks"
Brad Bishopf3fd2882019-06-21 08:06:37 -040018
19MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
20
21EXTRA_IMAGEDEPENDS += "opensbi"
Andrew Geissler475cb722020-07-10 16:00:51 -050022RISCV_SBI_PLAT ?= "generic"
Brad Bishopf3fd2882019-06-21 08:06:37 -040023RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
24
Patrick Williams213cb262021-08-07 19:21:33 -050025UBOOT_ENTRYPOINT:riscv32 = "0x80400000"
26UBOOT_ENTRYPOINT:riscv64 = "0x80200000"
Brad Bishopf3fd2882019-06-21 08:06:37 -040027
28# qemuboot options
Andrew Geissler09036742021-06-25 14:25:14 -050029QB_SMP = "-smp 4"
Brad Bishopf3fd2882019-06-21 08:06:37 -040030QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
Brad Bishopf3fd2882019-06-21 08:06:37 -040031QB_MACHINE = "-machine virt"
Brad Bishopc68388fc2019-08-26 01:33:31 -040032QB_DEFAULT_BIOS = "fw_jump.elf"
Brad Bishopf3fd2882019-06-21 08:06:37 -040033QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
34QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
35QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
36QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
37QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
Andrew Geissler3b8a17c2021-04-15 15:55:55 -050038QB_GRAPHICS = "-device bochs-display"
Andrew Geissler9aee5002022-03-30 16:27:02 +000039QB_OPT_APPEND = "-device virtio-tablet-pci -device virtio-keyboard-pci"