All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Brendan Higgins <brendan.higgins@linux.dev>,
	David Gow <davidgow@google.com>
Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
	linux-sh@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH 2/2] kunit: tool: Add support for SH under QEMU
Date: Tue, 28 Feb 2023 11:31:03 +0100	[thread overview]
Message-ID: <c72e5884711da51424ad2f9c7933bb294129aef3.1677579750.git.geert+renesas@glider.be> (raw)
In-Reply-To: <cover.1677579750.git.geert+renesas@glider.be>

Add basic support to run SH under QEMU via kunit_tool using the
virtualized r2d platform.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
All tests succeed, except for the usual suspects.
drivers/clk/.kunitconfig cannot be run as CONFIG_COMMON_CLK is not
available.
---
 tools/testing/kunit/qemu_configs/sh.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tools/testing/kunit/qemu_configs/sh.py

diff --git a/tools/testing/kunit/qemu_configs/sh.py b/tools/testing/kunit/qemu_configs/sh.py
new file mode 100644
index 0000000000000000..78a474a5b95f3a7d
--- /dev/null
+++ b/tools/testing/kunit/qemu_configs/sh.py
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+from ..qemu_config import QemuArchParams
+
+QEMU_ARCH = QemuArchParams(linux_arch='sh',
+			   kconfig='''
+CONFIG_CPU_SUBTYPE_SH7751R=y
+CONFIG_MEMORY_START=0x0c000000
+CONFIG_SH_RTS7751R2D=y
+CONFIG_RTS7751R2D_PLUS=y
+CONFIG_SERIAL_SH_SCI=y''',
+			   qemu_arch='sh4',
+			   kernel_path='arch/sh/boot/zImage',
+			   kernel_command_line='console=ttySC1',
+			   serial='null',
+			   extra_qemu_params=[
+					    '-machine', 'r2d',
+					    '-serial', 'mon:stdio'])
-- 
2.34.1


  parent reply	other threads:[~2023-02-28 10:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28 10:31 [PATCH 0/2] kunit: tool: Add support for SH under QEMU Geert Uytterhoeven
2023-02-28 10:31 ` [PATCH 1/2] kunit: tool: Add support for overriding the QEMU serial port Geert Uytterhoeven
2023-04-04  3:15   ` David Gow
2023-02-28 10:31 ` Geert Uytterhoeven [this message]
2023-04-04  3:15   ` [PATCH 2/2] kunit: tool: Add support for SH under QEMU David Gow
2023-02-28 11:52 ` [PATCH 0/2] " John Paul Adrian Glaubitz
2023-02-28 11:57   ` Geert Uytterhoeven
2023-03-03  7:26 ` David Gow
2023-03-03  7:42   ` Geert Uytterhoeven
2023-03-04  5:33     ` David Gow
2023-04-04  5:13       ` David Gow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c72e5884711da51424ad2f9c7933bb294129aef3.1677579750.git.geert+renesas@glider.be \
    --to=geert+renesas@glider.be \
    --cc=brendan.higgins@linux.dev \
    --cc=davidgow@google.com \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.