Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: QEMU PPC64 machine |
| 3 | #@DESCRIPTION: Machine configuration for running a PPC system on QEMU |
| 4 | |
| 5 | require conf/machine/include/qemu.inc |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 6 | require conf/machine/include/powerpc/tune-power9.inc |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 7 | |
| 8 | KERNEL_IMAGETYPE = "vmlinux" |
| 9 | |
| 10 | SERIAL_CONSOLES ?= "115200;hvc0" |
| 11 | |
| 12 | # For runqemu |
| 13 | QB_SYSTEM_NAME = "qemu-system-ppc64" |
| 14 | QB_MACHINE = "-machine pseries" |
| 15 | QB_CPU = "-cpu POWER9" |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 16 | QB_SMP ?= "-smp 2" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 17 | |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 18 | QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 19 | QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc" |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 20 | #QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" |
| 21 | QB_OPT_APPEND = "-usb -device usb-tablet" |
| 22 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 23 | MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" |