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 | |
| 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 |
| 19 | QB_OPT_APPEND = "-show-cursor -device virtio-rng-pci" |
| 20 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-device,netdev=net0,mac=@MAC@" |
| 21 | QB_SLIRP_OPT = "-netdev user,id=net0 -device virtio-net-device,netdev=net0" |
| 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" |