From: Kuan-Wei Chiu <visitorckw@gmail.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: alison.wang@nxp.com, angelo@kernel-space.org, trini@konsulko.com,
jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com,
u-boot@lists.denx.de
Subject: Re: [PATCH 3/3] board: Add QEMU m68k virt board support
Date: Mon, 22 Dec 2025 17:03:54 +0800 [thread overview]
Message-ID: <aUkJenUcKCUMgzCS@google.com> (raw)
In-Reply-To: <CAFr9PXk5x5RczuE95A64EVu+i_DwWd2hUdU2Wv1dUrwfppJwtA@mail.gmail.com>
Hi Daniel,
On Sun, Dec 21, 2025 at 01:37:24PM +0900, Daniel Palmer wrote:
> Hi Kuan-Wei,
>
> On Fri, 19 Dec 2025 at 04:06, Kuan-Wei Chiu <visitorckw@gmail.com> 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.
>
> Since I already have this setup working and able to boot linux I will
> add some input:
> - The virt machine can use any supported CPU type, even 000 without
> mmu, you should really handle that.
You're right. Regarding the support for other 680x0 CPUs, would you
prefer to see them included in v2, or would you think that it is better
to integrate them incrementally after this baseline series is merged?
> - m68k linux for mmu machines uses "bootinfo" that is a structure
> after the kernel image that the bootloader prepares so linux can work
> out what CPU etc is present. QEMU does this as well but it will be
> after the u-boot image now, so to boot linux you must save it before
> it gets destroyed and when the kernel is loaded copy it to after the
> kernel. I use ELF images to boot linux. I have a hack in bootelf to
> put the bootinfo in place just before jumping to the entry point.
> - Since QEMU gives you the bootinfo and you need to parse it to work
> out how much to save either way you should use it to detect the
> selected CPU in u-boot. If the code is built for 000 it will run on
> anything and just needs to handle the differences in the caches. In my
> setup I fixup the cpu compatible string in u-boot's devicetree and
> then use that to work out what cache function to call for the current
> CPU.
Currently, I only parse the bootinfo to retrieve the RAM size and
haven't looked into the specific requirements for booting Linux yet.
If full Linux boot support isn't a blocker for this initial series,
could you advise on any specific structural adjustments I should make
now to facilitate that integration later?
>
> Glad to see I'm not alone in messing around with this. :)
Same here! Glad to know I'm not the only one. :)
Regards,
Kuan-Wei
next prev parent reply other threads:[~2025-12-22 13:55 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 18:52 [PATCH 0/3] m68k: Add support for QEMU virt machine Kuan-Wei Chiu
2025-12-18 18:52 ` [PATCH 1/3] serial: Add Goldfish TTY driver Kuan-Wei Chiu
2025-12-19 3:14 ` Yao Zi
2025-12-20 16:28 ` Kuan-Wei Chiu
2025-12-21 2:58 ` Yao Zi
2025-12-18 18:52 ` [PATCH 2/3] m68k: Add support for M68040 CPU Kuan-Wei Chiu
2025-12-18 19:00 ` Tom Rini
2025-12-20 16:43 ` Kuan-Wei Chiu
2025-12-22 16:20 ` Tom Rini
2025-12-21 4:53 ` Daniel Palmer
2025-12-21 7:25 ` Angelo Dureghello
2025-12-22 9:21 ` Kuan-Wei Chiu
2025-12-18 18:52 ` [PATCH 3/3] board: Add QEMU m68k virt board support Kuan-Wei Chiu
2025-12-18 19:04 ` Tom Rini
2025-12-20 16:48 ` Kuan-Wei Chiu
2025-12-21 4:37 ` Daniel Palmer
2025-12-22 9:03 ` Kuan-Wei Chiu [this message]
2025-12-18 19:00 ` [PATCH 0/3] m68k: Add support for QEMU virt machine Tom Rini
2025-12-20 16:39 ` Kuan-Wei Chiu
2025-12-21 4:15 ` Daniel Palmer
2025-12-22 8:44 ` Kuan-Wei Chiu
2025-12-22 9:20 ` Daniel Palmer
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=aUkJenUcKCUMgzCS@google.com \
--to=visitorckw@gmail.com \
--cc=alison.wang@nxp.com \
--cc=angelo@kernel-space.org \
--cc=daniel@0x0f.com \
--cc=eleanor15x@gmail.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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.