From: Daniel Palmer <daniel@0x0f.com>
To: sammy@sammy.net, geert@linux-m68k.org, linux-m68k@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org, Daniel Palmer <daniel@0x0f.com>
Subject: [PATCH 0/2] Make sun3 work again.
Date: Thu, 24 Sep 2026 20:18:49 +0900 [thread overview]
Message-ID: <20260924111851.3501100-1-daniel@0x0f.com> (raw)
Short version: Have a QEMU fork that can emulate all of the supported
m68k machines via the magic of LLM. LLM also fixed the ones that had
bit rotten. This series makes sun3 work again. Commits are cleaned
up but I have intentially left most of the comments intact as the LLM
debugged it not me.
Longer version:
I am reworking some stuff in my m68k tree and have added SMP etc.
I wanted something to test I haven't regressed all of the other
machines so I gave claude the qemu and kernel sources and told
it "emulate all of the supported m68k machines, try to boot
their native OS first, netbsd if there is a port and then linux."
It took a few weeks from what I remember (emulating 030 macs is
hard apparently...) but it was able to do it mostly. Some of the
natives OSes use the MMU in weird ways and it gave up trying to
model some of that in QEMU. It's pretty sure it can boot Linux
on anything with an m68k CPU now. It even created Palm Pilot
emulators and tested the 68000 Palm Pilot support.
While doing the QEMU work it also fixed up some of the machines
so they work again. I sent a patch for Apollo a few weeks ago.
This series fixes sun3 to the point you should be able to get
something to print out over serial.
With some further patches to add a real serial driver and
it gets to my nolibc based userspace:
https://gist.github.com/fifteenhex/e97322216d5e85e7a54a2adfcba08e32
The real serial driver is a lot of code so I have kept that
out of this series.
Daniel Palmer (2):
m68k: sun3: register RAM with memblock and set the low pfn limits
m68k: sun3: add an early boot console over the PROM
arch/m68k/sun3/config.c | 46 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
--
2.55.0
next reply other threads:[~2026-09-24 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 11:18 Daniel Palmer [this message]
2026-09-24 11:18 ` [PATCH 1/2] m68k: sun3: register RAM with memblock and set the low pfn limits Daniel Palmer
2026-09-24 11:18 ` [PATCH 2/2] m68k: sun3: add an early boot console over the PROM Daniel Palmer
2026-09-24 11:32 ` [PATCH 0/2] Make sun3 work again John Paul Adrian Glaubitz
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=20260924111851.3501100-1-daniel@0x0f.com \
--to=daniel@0x0f.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=sammy@sammy.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®