Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: qemu PPC Emulator setup |
| 3 | #@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation |
| 4 | |
| 5 | require conf/machine/include/qemu.inc |
| 6 | require conf/machine/include/tune-ppc7400.inc |
| 7 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | TARGET_CC_KERNEL_ARCH = "-mno-spe" |
| 9 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | KERNEL_IMAGETYPE = "vmlinux" |
| 11 | |
| 12 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1" |
| 13 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 14 | # For runqemu |
| 15 | QB_SYSTEM_NAME = "qemu-system-ppc" |
| 16 | QB_MACHINE = "-machine mac99" |
| 17 | QB_CPU = "-cpu G4" |
| 18 | QB_KERNEL_CMDLINE_APPEND = "console=tty console=ttyS0" |
| 19 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy |
| 20 | QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device virtio-rng-pci" |
| 21 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-pci,netdev=net0,mac=@MAC@" |