blob: 770933931324abce549e8f630f9fc59092f86433 [file] [log] [blame]
Andrew Geissler95ac1b82021-03-31 14:34:31 -05001#@TYPE: Machine
2#@NAME: QEMU PPC64 machine
3#@DESCRIPTION: Machine configuration for running a PPC system on QEMU
4
5require conf/machine/include/qemu.inc
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05006require conf/machine/include/powerpc/tune-power9.inc
Andrew Geissler95ac1b82021-03-31 14:34:31 -05007
8KERNEL_IMAGETYPE = "vmlinux"
9
10SERIAL_CONSOLES ?= "115200;hvc0"
11
12# For runqemu
13QB_SYSTEM_NAME = "qemu-system-ppc64"
14QB_MACHINE = "-machine pseries"
15QB_CPU = "-cpu POWER9"
Andrew Geissler9aee5002022-03-30 16:27:02 +000016QB_SMP = "-smp 2"
17
Andrew Geisslerc5535c92023-01-27 16:10:19 -060018QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288"
Andrew Geissler9aee5002022-03-30 16:27:02 +000019QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050020#QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
21QB_OPT_APPEND = "-usb -device usb-tablet"
22
Andrew Geissler95ac1b82021-03-31 14:34:31 -050023MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"