[PATCH v4 5/6] board: Add QEMU m68k virt board support
Kuan-Wei Chiu
visitorckw at gmail.com
Fri Jan 2 22:46:13 CET 2026
Hi Heinrich,
On Fri, Jan 02, 2026 at 10:26:45AM +0100, Heinrich Schuchardt wrote:
> On 1/1/26 18:54, Kuan-Wei Chiu wrote:
> > Add support for the QEMU 'virt' machine on the m68k architecture. This
> > board emulates a generic machine based on the Motorola 68040 CPU
> > equipped with Goldfish virtual peripherals.
> >
> > Introduce the necessary board configuration and initialization
> > infrastructure. The implementation includes logic to parse the QEMU
> > bootinfo interface, enabling dynamic detection of system RAM size to
> > adapt to the virtual machine's configuration.
> >
> > Enable the Goldfish TTY driver for serial console output. Additionally,
> > enable Goldfish RTC and timer drivers to support real-time clock
> > functionality and nanosecond-resolution delays. Include comprehensive
> > documentation covering build instructions and usage examples.
> >
> > Signed-off-by: Kuan-Wei Chiu <visitorckw at gmail.com>
> > Tested-by: Daniel Palmer <daniel at 0x0f.com>
> > ---
> > No changes in v4.
> >
> > arch/m68k/Kconfig | 8 ++
> > board/emulation/qemu-m68k/Kconfig | 12 +++
> > board/emulation/qemu-m68k/MAINTAINERS | 8 ++
> > board/emulation/qemu-m68k/Makefile | 5 ++
> > board/emulation/qemu-m68k/qemu-m68k.c | 115 ++++++++++++++++++++++++++
> > configs/qemu-m68k_defconfig | 16 ++++
> > doc/board/emulation/index.rst | 1 +
> > doc/board/emulation/qemu-m68k.rst | 39 +++++++++
> > include/configs/qemu-m68k.h | 18 ++++
> > 9 files changed, 222 insertions(+)
> > create mode 100644 board/emulation/qemu-m68k/Kconfig
> > create mode 100644 board/emulation/qemu-m68k/MAINTAINERS
> > create mode 100644 board/emulation/qemu-m68k/Makefile
> > create mode 100644 board/emulation/qemu-m68k/qemu-m68k.c
> > create mode 100644 configs/qemu-m68k_defconfig
> > create mode 100644 doc/board/emulation/qemu-m68k.rst
> > create mode 100644 include/configs/qemu-m68k.h
> >
> > diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
> > index de7c673c376..605ae5ec20c 100644
> > --- a/arch/m68k/Kconfig
> > +++ b/arch/m68k/Kconfig
> > @@ -183,6 +183,13 @@ config TARGET_STMARK2
> > select CF_DSPI
> > select M54418
> > +config TARGET_QEMU_M68K
> > + bool "Support QEMU m68k virt"
> > + select M68040
>
> Not even the dm command is available on the board by default. How about
> letting TARGET_QEMU_M68K imply CMD_DM like other targets do?
Agreed.
Will add imply CMD_DM in the next version.
Regards,
Kuan-Wei
More information about the U-Boot
mailing list