Skip to content

Commit f20e264

Browse files
t-8chshuahkh
authored andcommitted
kunit: qemu_configs: Add MIPS configurations
Add basic support to run various MIPS variants via kunit_tool using the virtualized malta platform. Link: https://lore.kernel.org/r/20250908-kunit-mips-v5-1-d9f0632d1854@linutronix.de Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 031cdd3 commit f20e264

4 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='mips',
6+
kconfig='''
7+
CONFIG_32BIT=y
8+
CONFIG_CPU_BIG_ENDIAN=y
9+
CONFIG_MIPS_MALTA=y
10+
CONFIG_SERIAL_8250=y
11+
CONFIG_SERIAL_8250_CONSOLE=y
12+
CONFIG_POWER_RESET=y
13+
CONFIG_POWER_RESET_SYSCON=y
14+
''',
15+
qemu_arch='mips',
16+
kernel_path='vmlinuz',
17+
kernel_command_line='console=ttyS0',
18+
extra_qemu_params=['-M', 'malta'])
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='mips',
6+
kconfig='''
7+
CONFIG_CPU_MIPS64_R2=y
8+
CONFIG_64BIT=y
9+
CONFIG_CPU_BIG_ENDIAN=y
10+
CONFIG_MIPS_MALTA=y
11+
CONFIG_SERIAL_8250=y
12+
CONFIG_SERIAL_8250_CONSOLE=y
13+
CONFIG_POWER_RESET=y
14+
CONFIG_POWER_RESET_SYSCON=y
15+
''',
16+
qemu_arch='mips64',
17+
kernel_path='vmlinuz',
18+
kernel_command_line='console=ttyS0',
19+
extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='mips',
6+
kconfig='''
7+
CONFIG_CPU_MIPS64_R2=y
8+
CONFIG_64BIT=y
9+
CONFIG_CPU_LITTLE_ENDIAN=y
10+
CONFIG_MIPS_MALTA=y
11+
CONFIG_SERIAL_8250=y
12+
CONFIG_SERIAL_8250_CONSOLE=y
13+
CONFIG_POWER_RESET=y
14+
CONFIG_POWER_RESET_SYSCON=y
15+
''',
16+
qemu_arch='mips64el',
17+
kernel_path='vmlinuz',
18+
kernel_command_line='console=ttyS0',
19+
extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='mips',
6+
kconfig='''
7+
CONFIG_32BIT=y
8+
CONFIG_CPU_LITTLE_ENDIAN=y
9+
CONFIG_MIPS_MALTA=y
10+
CONFIG_SERIAL_8250=y
11+
CONFIG_SERIAL_8250_CONSOLE=y
12+
CONFIG_POWER_RESET=y
13+
CONFIG_POWER_RESET_SYSCON=y
14+
''',
15+
qemu_arch='mipsel',
16+
kernel_path='vmlinuz',
17+
kernel_command_line='console=ttyS0',
18+
extra_qemu_params=['-M', 'malta'])

0 commit comments

Comments
 (0)