grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Running GRUB under qemu on PowerPC


From: Pavel Roskin
Subject: Re: [PATCH] Running GRUB under qemu on PowerPC
Date: Wed, 16 Jan 2008 16:52:46 -0500

On Wed, 2008-01-16 at 20:33 +0100, Robert Millan wrote:
> On Wed, Jan 16, 2008 at 01:22:48PM -0500, Pavel Roskin wrote:
> > 
> > I guess the simplest approach would be to assume that we have a certain
> > amount of memory that would be enough for GRUB.
> 
> What a mess.  What does Linux do?  They have to support callbacks to get the
> memory map, so it can't just claim everything.

I don't see any references to "available" in the Linux code, except for
some exotic machines.  Neither does yaboot use anything like that.

yaboot loads under qemu, but hangs trying to load the Linux kernel (both
extracted from the Fedora 8 rescue disk), so I don't know if Linux would
boot.

It seems to me that Linux uses "#size-cells" and "#address-cells" (see
drivers/of/base.c and arch/powerpc/kernel/prom_parse.c)

As for yaboot, I have no idea.  It gets a handle for "/memory" but never
uses it.  I don't see any references to "cells".

> In any case, if you have to make this assumption, considering reusing the
> HEAP_MIN_SIZE macro, which has the same meaning.

OK, I'll try.

-- 
Regards,
Pavel Roskin




reply via email to

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