blob: 0e88c91aa6013f089de4ee2b3a0fc2d12f2ba99a [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"
13
Brad Bishop79641f22019-09-10 07:20:22 -040014IMAGE_FSTYPES += "ext4 wic.qcow2"
15
16WKS_FILE ?= "qemuriscv.wks"
Brad Bishopf3fd2882019-06-21 08:06:37 -040017
18MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
19
20EXTRA_IMAGEDEPENDS += "opensbi"
Andrew Geissler475cb722020-07-10 16:00:51 -050021RISCV_SBI_PLAT ?= "generic"
Brad Bishopf3fd2882019-06-21 08:06:37 -040022RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
23
24UBOOT_ENTRYPOINT_riscv32 = "0x80400000"
25UBOOT_ENTRYPOINT_riscv64 = "0x80200000"
26
27# qemuboot options
28QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
Brad Bishopf3fd2882019-06-21 08:06:37 -040029QB_MACHINE = "-machine virt"
Brad Bishopc68388fc2019-08-26 01:33:31 -040030QB_DEFAULT_BIOS = "fw_jump.elf"
Brad Bishopf3fd2882019-06-21 08:06:37 -040031QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
32QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
33QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
34QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
35QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"