Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: generic armv8 machine |
| 3 | #@DESCRIPTION: Machine configuration for running a generic armv8 |
| 4 | |
| 5 | require conf/machine/include/arm/arch-armv8.inc |
| 6 | require conf/machine/include/qemu.inc |
| 7 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | KERNEL_IMAGETYPE = "Image" |
| 9 | |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame] | 10 | SERIAL_CONSOLES ?= "38400;ttyAMA0 38400;hvc0" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 11 | |
| 12 | # For runqemu |
| 13 | QB_SYSTEM_NAME = "qemu-system-aarch64" |
| 14 | QB_MEM = "-m 512" |
| 15 | QB_MACHINE = "-machine virt" |
| 16 | QB_CPU = "-cpu cortex-a57" |
| 17 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,38400" |
| 18 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame] | 19 | QB_OPT_APPEND = "-show-cursor -device virtio-rng-pci -monitor null" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 20 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |
| 21 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" |
| 23 | QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" |
| 24 | QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" |