Re: [PATCH 0/2] kunit: tool: Add support for SH under QEMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Feb 2023 at 18:31, Geert Uytterhoeven
<geert+renesas@xxxxxxxxx> wrote:
>
>         Hi all,
>
> This patch series adds support to run tests via kunit_tool on the
> SuperH-based virtualized r2d platform.  As r2d uses the second serial
> port as the console, this needs a small modification of the core
> infrastructure.
>
> Thanks for your comments!

This series looks good to me, but I've not been able to successfully
get qemu to boot anything on SuperH (it just seems to hang with no
output).

Is there anything like magic config or firmware images (I didn't think
so for r2d: shix prints out an error, though) required to get this
going?

The qemu command KUnit is using seems correct (and none of the obvious
permutations, particularly around the serial ports seem to help):
qemu-system-sh4 -nodefaults -m 1024 -kernel .kunit/arch/sh/boot/zImage
-append 'kunit.enable=1 console=ttySC1 kunit_shutdown=reboot'
-no-reboot -nographic -serial null -machine r2d -serial mon:stdio

Cheers,
-- David

>
> Geert Uytterhoeven (2):
>   kunit: tool: Add support for overriding the QEMU serial port
>   kunit: tool: Add support for SH under QEMU
>
>  tools/testing/kunit/kunit_kernel.py    |  3 ++-
>  tools/testing/kunit/qemu_config.py     |  1 +
>  tools/testing/kunit/qemu_configs/sh.py | 17 +++++++++++++++++
>  3 files changed, 20 insertions(+), 1 deletion(-)
>  create mode 100644 tools/testing/kunit/qemu_configs/sh.py
>
> --
> 2.34.1
>
> Gr{oetje,eeting}s,
>
>                                                 Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                                             -- Linus Torvalds

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux