Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #@TYPE: Machine |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | #@NAME: QEMU PPC machine |
| 3 | #@DESCRIPTION: Machine configuration for running a PPC system on QEMU |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame^] | 19 | QB_OPT_APPEND = "-usb -device usb-tablet" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 20 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 21 | QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |