summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/qemuarm64.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/qemuarm64.conf')
-rw-r--r--meta/conf/machine/qemuarm64.conf18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index 2f61eb0aed..a096d964db 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -2,7 +2,7 @@
2#@NAME: QEMU ARMv8 machine 2#@NAME: QEMU ARMv8 machine
3#@DESCRIPTION: Machine configuration for running an ARMv8 system on QEMU 3#@DESCRIPTION: Machine configuration for running an ARMv8 system on QEMU
4 4
5require conf/machine/include/tune-cortexa57.inc 5require conf/machine/include/arm/armv8a/tune-cortexa57.inc
6require conf/machine/include/qemu.inc 6require conf/machine/include/qemu.inc
7 7
8KERNEL_IMAGETYPE = "Image" 8KERNEL_IMAGETYPE = "Image"
@@ -10,23 +10,21 @@ KERNEL_IMAGETYPE = "Image"
10UBOOT_MACHINE ?= "qemu_arm64_defconfig" 10UBOOT_MACHINE ?= "qemu_arm64_defconfig"
11 11
12SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0" 12SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
13SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
14 13
15# For runqemu 14# For runqemu
16QB_SYSTEM_NAME = "qemu-system-aarch64" 15QB_SYSTEM_NAME = "qemu-system-aarch64"
17QB_MACHINE = "-machine virt" 16QB_MACHINE = "-machine virt"
18QB_CPU = "-cpu cortex-a57" 17QB_CPU = "-cpu cortex-a57"
18QB_SMP ?= "-smp 4"
19QB_CPU_KVM = "-cpu host -machine gic-version=3" 19QB_CPU_KVM = "-cpu host -machine gic-version=3"
20# Standard Serial console
21QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0"
22# For graphics to work we need to define the VGA device as well as the necessary USB devices 20# For graphics to work we need to define the VGA device as well as the necessary USB devices
23QB_OPT_APPEND = "-device VGA,edid=on" 21QB_GRAPHICS = "-device virtio-gpu-pci"
24QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" 22QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd"
25# Virtio Networking support 23# Virtio Networking support
26QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" 24QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
27QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" 25QB_NETWORK_DEVICE = "-device virtio-net-pci,netdev=net0,mac=@MAC@"
28# Virtio block device 26# Virtio block device
29QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" 27QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-pci,drive=disk0"
30# Virtio serial console 28# Virtio serial console
31QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" 29QB_SERIAL_OPT = "-device virtio-serial-pci -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
32QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" 30QB_TCPSERIAL_OPT = "-device virtio-serial-pci -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1,nodelay=on -device virtconsole,chardev=virtcon"