[PATCH 0/3] m68k: Add support for QEMU virt machine
Kuan-Wei Chiu
visitorckw at gmail.com
Thu Dec 18 19:52:49 CET 2025
Add support for the QEMU 'virt' machine on the m68k architecture. The
QEMU virt machine models a generic system based on the Motorola 68040
CPU and utilizes Goldfish virtual peripherals.
Currently, U-Boot's m68k architecture support focuses on ColdFire
variants. Expand this to include the classic M680x0 architecture,
implementing the necessary exception vectors, startup code, and a
bootinfo parser compatible with the QEMU interface. A driver for the
Goldfish TTY is also added to enable serial console output.
The implementation has been verified on QEMU targeting the M68040 CPU,
confirming successful hardware initialization and boot to the U-Boot
command shell.
Kuan-Wei Chiu (3):
serial: Add Goldfish TTY driver
m68k: Add support for M68040 CPU
board: Add QEMU m68k virt board support
MAINTAINERS | 6 ++
arch/m68k/Kconfig | 23 ++++++
arch/m68k/Makefile | 1 +
arch/m68k/config.mk | 10 ++-
arch/m68k/cpu/m68040/Makefile | 6 ++
arch/m68k/cpu/m68040/cpu.c | 77 ++++++++++++++++++
arch/m68k/cpu/m68040/start.S | 83 +++++++++++++++++++
arch/m68k/cpu/m68040/u-boot.lds | 47 +++++++++++
arch/m68k/include/asm/bootinfo.h | 31 +++++++
arch/m68k/lib/Makefile | 9 +--
board/emulation/qemu-m68k/Kconfig | 12 +++
board/emulation/qemu-m68k/MAINTAINERS | 10 +++
board/emulation/qemu-m68k/Makefile | 5 ++
board/emulation/qemu-m68k/qemu-m68k.c | 84 +++++++++++++++++++
configs/qemu-m68k_defconfig | 17 ++++
doc/board/emulation/qemu-m68k.rst | 38 +++++++++
drivers/serial/Kconfig | 8 ++
drivers/serial/Makefile | 1 +
drivers/serial/serial_goldfish.c | 112 ++++++++++++++++++++++++++
include/configs/qemu-m68k.h | 18 +++++
include/goldfish_tty.h | 18 +++++
21 files changed, 608 insertions(+), 8 deletions(-)
create mode 100644 arch/m68k/cpu/m68040/Makefile
create mode 100644 arch/m68k/cpu/m68040/cpu.c
create mode 100644 arch/m68k/cpu/m68040/start.S
create mode 100644 arch/m68k/cpu/m68040/u-boot.lds
create mode 100644 arch/m68k/include/asm/bootinfo.h
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 drivers/serial/serial_goldfish.c
create mode 100644 include/configs/qemu-m68k.h
create mode 100644 include/goldfish_tty.h
--
2.52.0.322.g1dd061c0dc-goog
More information about the U-Boot
mailing list