linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Matt Sealey <matt@genesi-usa.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Building ppc/powerpc kernel to run under QEMU.
Date: Fri, 11 May 2007 21:46:35 -0400	[thread overview]
Message-ID: <200705112146.35495.rob@landley.net> (raw)
In-Reply-To: <464397B8.408@genesi-usa.com>

On Thursday 10 May 2007 6:07 pm, Matt Sealey wrote:
> QEMU really really wants a PREP kernel, and that stuff's just not in the new
> arch/powerpc tree anymore is it?

In theory I could feed it a power mac kernel, but I'd have to create a 
partitioned hard drive image to satisfy open hackware.  A prep kernel fakes 
being a partitioned image sufficiently that I can use -kernel to boot.

> I'd love to see the device tree once QEMU's kernel has booted :D

So would I. :)

I'm told they've got that part working.  I once managed to get a powerpc 
Ubuntu ISO image to boot under qemu, I just can't _build_ a kernel that does.  
(I have no idea how to create the specially partitioned hard drive image it 
wants, and since I got 5 other architectures working without needing to do 
that, I'm looking for a way to make a prep kernel work so I won't have to.)

> I wonder.. would it be useful to have a qemu platform in arch/powerpc and
> for someone to start hacking in devices from a non-emulated point of view?
> It seems a bit of a waste in my mind to emulate a network card, serial port
> IDE interface, ADB (yick!) and a VESA graphics adapter in such 'detail' when
> it can be passed back to the emulation somehow through some kind of clever
> call interface (maybe just have the zero page of the emulation contain a
> bunch of 'ports' which are really function calls pointers..?)

Yeah, but qemu already _has_ an IDE interface, graphics card (an old western 
digital something or other), and network card working.  Once they got 'em 
working on one platform, they can plug them into a virtual PCI bus for other 
platforms.

What I wind up fighting with most when trying to get multiple platforms to 
work is firmware and bootloaders.  (All of which are insane, without 
exception so far.)  This is why I like the qemu -kernel thing, which lets me 
bypass the whole issue...

Usually.

Rob

  parent reply	other threads:[~2007-05-12  1:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10  2:03 Building ppc/powerpc kernel to run under QEMU Rob Landley
2007-05-10 17:28 ` Linas Vepstas
2007-05-10 22:07   ` Matt Sealey
2007-05-11  1:46     ` David Gibson
2007-05-12  3:30       ` Rob Landley
2007-05-12  1:46     ` Rob Landley [this message]
2007-05-12  3:00       ` Doug Maxey
2007-05-12  4:05         ` Rob Landley
2007-05-12  1:14   ` Rob Landley
2007-05-14 19:09     ` Hollis Blanchard

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=200705112146.35495.rob@landley.net \
    --to=rob@landley.net \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=matt@genesi-usa.com \
    /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;
as well as URLs for NNTP newsgroup(s).