qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Mac99: Enable -kernel option


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] Mac99: Enable -kernel option
Date: Sat, 28 Feb 2009 17:42:11 +0200

On 2/28/09, Alexander Graf <address@hidden> 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: openbios-0002-Add-new-entries-to-firmware-configuration-device.patch
Description: Source code patch

Attachment: openbios-0003-Use-firmware-configuration-instead-of-NVRAM.patch
Description: Source code patch

Attachment: qemu-0001-Add-new-entries-to-firmware-configuration-device.patch
Description: Source code patch

Attachment: qemu-0002-Use-firmware-configuration-instead-of.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]