Skip to contentSkip to conversation

qemu-system-m68k and booting m68k images

Qemu-devel Ian Graeme Hilt 2 participants 6 messages Oct 7, 2007 – Oct 18, 2007

lore
Share & tools
lore
#0 lore raw

Two questions:

1. Why does qemu-system-m68k require a kernel image?

2. Is support planned for booting m68k bootable images, e.g. floppy images, harddrive images?

--
Ian Graeme Hilt

#1 lore raw
Quoted 3 lines · Ian Graeme Hilt

Two questions:

1. Why does qemu-system-m68k require a kernel image?

I'd actually be pretty happy if I could figure out which kernel image I could build that the sucker would boot.

"qemu-system-m68k -M ?" lists two boards: the mcf5208evb and arnewsh 5206 are both coldfire board. I got gcc to build an m68k toolchain and want to run an actual m68k kernel, but the only Kconfig entries mentioning those are in the m68knommu architecture...

Quoted 2 lines

2. Is support planned for booting m68k bootable images, e.g. floppy images, harddrive images?

First, is support planned for booting an m68k system at all, rather than a coldfire one?

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
#2 lore raw
Quoted 7 lines · Rob Landley
Quoted 3 lines · Ian Graeme Hilt

Two questions:

1. Why does qemu-system-m68k require a kernel image?

I'd actually be pretty happy if I could figure out which kernel image I could build that the sucker would boot.

Have you tried

<http://fabrice.bellard.free.fr/qemu/coldfire-test-0.1.tar.bz2>

Quoted 16 lines

"qemu-system-m68k -M ?" lists two boards: the mcf5208evb and arnewsh 5206 are both coldfire board. I got gcc to build an m68k toolchain and want to run an actual m68k kernel, but the only Kconfig entries mentioning those are in the m68knommu architecture...

Quoted 2 lines

2. Is support planned for booting m68k bootable images, e.g. floppy images, harddrive images?

First, is support planned for booting an m68k system at all, rather than a coldfire one?

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
Signature · 1 line
Ian Graeme Hilt
#3 lore raw
Quoted 4 lines · Ian Graeme Hilt
Quoted 3 lines · Rob Landley
Quoted 2 lines · Ian Graeme Hilt

Two questions:

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

1. Why does qemu-system-m68k require a kernel image?

I'd actually be pretty happy if I could figure out which kernel image I could build that the sucker would boot.

Have you tried

<http://fabrice.bellard.free.fr/qemu/coldfire-test-0.1.tar.bz2>

Er, yes. "coldfire". Not m68k. Says so right on the tin.

Back in July, Andreas Schwab posted a patch to upgrade the coldfire support to full m68k support (or at least the instructions output by gcc):
http://lists.gnu.org/archive/html/qemu-devel/2007-07/msg00015.html

I thought it would have been merged by now (or that there would at least be some kind of follow up on it), but apparently not.

Coldfire is a subset of m68k (plus some weird floating point instructions and probably some other stuff). There doesn't seem to be a way to get a coldfire toolchain from unmodified gcc source code, instead you go download a different gcc source tarball from code sourcery:
http://www.codesourcery.com/gnu_toolchains/coldfire

If there's a way to build a coldfire toolchain from the gcc 4.1.2 release, Google isn't finding it. gcc 4.1.2 was released Febuary 13, 2007, and the gcc developers announced the integration of coldfire support on March 9, 2007 so maybe it's in 4.2...

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
#4 lore raw
Quoted 7 lines · Rob Landley
Quoted 6 lines · Ian Graeme Hilt
Quoted 5 lines · Rob Landley
Quoted 3 lines · Ian Graeme Hilt

Two questions:

1. Why does qemu-system-m68k require a kernel image?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I'd actually be pretty happy if I could figure out which kernel image I could build that the sucker would boot.

Have you tried

<http://fabrice.bellard.free.fr/qemu/coldfire-test-0.1.tar.bz2>

Er, yes. "coldfire". Not m68k. Says so right on the tin.

Ok.

In my case, the target's processor is a MC68030 with a VME bus. It was built by Microware back in the late 80s to early 90s and has OSK (OS-9 for a MC680x0) installed.

Quoted 7 lines

Back in July, Andreas Schwab posted a patch to
upgrade the coldfire support to full m68k support
(or at least the instructions output by gcc):
http://lists.gnu.org/archive/html/qemu-devel/2007-07/msg00015.html

I thought it would have been merged by now (or that there would at least be some kind of follow up on it), but apparently not.

I've tried building QEmu current with gcc-3.4.6 and this patch applied. qemu-system-m68k hung when attempting to boot the kernel image in coldfire-test-0.1.tar.bz2.

[...]

Quoted 4 lines

If there's a way to build a coldfire toolchain from the gcc 4.1.2 release, Google isn't finding it. gcc 4.1.2 was released Febuary 13, 2007, and the gcc developers announced the integration of coldfire support on March 9, 2007 so maybe it's in 4.2...

I think the Linux kernel supports a MC68030 and the VME option. Even if gcc was capable of creating a kernel image for this specific arch, I don't think this would help me(?) since I want to boot the OSK OS floppy and harddrive images.

I've used OS9Exec from sourceforge to boot these images and it works rather well. A problem with it is when an OS9 command tries to access hardware a bus error is generated.

The reason I was inquiring about the rationale behind the kernel image is that I was going to try writing code to boot the floppy images I have with QEmu. Unfortunately I have very little programming experience, so any information is helpful.

Signature · 1 line
Ian Graeme Hilt
#5 lore raw
In reply to Rob Landley
Quoted 3 lines · Rob Landley

Back in July, Andreas Schwab posted a patch to upgrade the coldfire support to full m68k support (or at least the instructions output by gcc):
http://lists.gnu.org/archive/html/qemu-devel/2007-07/msg00015.html

Has there been any progress or follow-up on this? (I'm interested. I have a m68k target building at http://landley.net/hg/firmware but don't know how to test it with the current qemu development branch...)

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.