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 | |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame] | 12 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet -device virtio-rng-pci" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |