grub-devel
[Top][All Lists]
Advanced

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

Re: GRUB on OLPC / XO


From: Marco Gerards
Subject: Re: GRUB on OLPC / XO
Date: Mon, 21 Jan 2008 11:24:52 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Robert Millan <address@hidden> writes:

> On Tue, Jan 15, 2008 at 01:06:43PM +0100, Robert Millan wrote:
>> > >    /* Load pre-loaded modules and free the space.  */
>> > >    grub_register_exported_symbols ();
>> > > -  grub_load_modules ();
>> > > +//  grub_load_modules ();
>> > 
>> > Why?
>> 
>> I still don't know.  Memory corruption I think.  I'm investigating.
>
> Ok, this would explain it:
>
> _start: 0x10000, _end: 0x1f804
> Using memory for heap: addr=0x100000, end=0x400000
> Using memory for heap: addr=0x2000, end=0x9ffff
> Welcome to GRUB!
>
> See how our core image and the second heap chunk overlap.  I'm not sure if 
> this
> is a bug in OFW's /memory/available, but in any case it doesn't hurt to add a
> generic sanity check in our memory manager to avoid this sort of breakage.
>
> It's also be useful to protect our own stack, etc..
>
> What do you think?

At least some kind of check should be available.  It could also be in
init.c.

--
Marco






reply via email to

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