qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Mac99: Enable -kernel option
Date: Mon, 2 Mar 2009 20:48:21 +0200	[thread overview]
Message-ID: <f43fc5580903021048m6b16b9c0pd59fe7403eec98df@mail.gmail.com> (raw)
In-Reply-To: <20090301204238.GS32440@hall.aurel32.net>

On 3/1/09, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On Sat, Feb 28, 2009 at 05:42:11PM +0200, Blue Swirl wrote:
>  > On 2/28/09, Alexander Graf <agraf@suse.de> wrote:
>  > > Right now -kernel on the Mac99 (newworld) is broken.
>  > >
>  > >  For starters, the kernel is 1:1 mapped into to virtual machine, which
>  > >  is not what OpenBIOS expects - it wants a preprocessed ELF image.
>  > >  So I just copied over the code from oldworld.c that loads the kernel.
>  > >
>  > >  While this is not overly pretty, it works so far and keeps working
>  > >  code working. I don't feel comfortable on restructuring newworld and
>  > >  oldworld just yet - AFAIK newworld is not exactly is a good shape anyways.
>  > >
>  > >  The second issue is the NVRAM. It doesn't get initialized, so the
>  > >  firmware has no idea that a kernel image was actually loaded!
>  > >
>  > >  I first tried to use the macio nvram device that was specified there,
>  > >  but that didn't work out, so in order to get something working for now,
>  > >  I took the code from oldworld.c again, which works at least with
>  > >  OpenBIOS.
>  >
>  > There have been some discussions to switch to using the firmware
>  > configuration device for the kernel address etc. Then the NVRAM
>  > structure would not be used. These patches (by Aurelien and myself)
>  > should do the switch.
>
>
> I wanted to work a bit on those patches, but never found the time to do
>  that. The best is to commit them as they are know, as they are already
>  an improvement. They can be improved later.

Maybe, though I'd hate to update the OpenBIOS images just after the release.

I think there was also some doubt whether the configuration device is
suitable for kernel/initrd stuff.

      reply	other threads:[~2009-03-02 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28 15:09 [Qemu-devel] [PATCH] Mac99: Enable -kernel option Alexander Graf
2009-02-28 15:42 ` Blue Swirl
2009-03-01 20:42   ` Aurelien Jarno
2009-03-02 18:48     ` Blue Swirl [this message]

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=f43fc5580903021048m6b16b9c0pd59fe7403eec98df@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /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).