qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] Mac99: Enable -kernel option
Date: Sat, 28 Feb 2009 17:42:11 +0200	[thread overview]
Message-ID: <f43fc5580902280742t4046a478o397f13e4965462df@mail.gmail.com> (raw)
In-Reply-To: <1235833795-30441-1-git-send-email-agraf@suse.de>

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

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.

[-- Attachment #2: openbios-0002-Add-new-entries-to-firmware-configuration-device.patch --]
[-- Type: application/x-patch, Size: 1091 bytes --]

[-- Attachment #3: openbios-0003-Use-firmware-configuration-instead-of-NVRAM.patch --]
[-- Type: application/x-patch, Size: 12650 bytes --]

[-- Attachment #4: qemu-0001-Add-new-entries-to-firmware-configuration-device.patch --]
[-- Type: application/x-patch, Size: 1005 bytes --]

[-- Attachment #5: qemu-0002-Use-firmware-configuration-instead-of.patch --]
[-- Type: application/x-patch, Size: 18104 bytes --]

  reply	other threads:[~2009-02-28 15:42 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 [this message]
2009-03-01 20:42   ` Aurelien Jarno
2009-03-02 18:48     ` Blue Swirl

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=f43fc5580902280742t4046a478o397f13e4965462df@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).