Re: GRUB on OLPC / XO

2008-01-21 Thread Robert Millan
On Mon, Jan 21, 2008 at 11:24:52AM +0100, Marco Gerards wrote: _start: 0x1, _end: 0x1f804 Using memory for heap: addr=0x10, end=0x40 Using memory for heap: addr=0x2000, end=0x9 Welcome to GRUB! See how our core image and the second heap chunk overlap. I'm not sure if

Re: GRUB on OLPC / XO

2008-01-15 Thread Robert Millan
On Tue, Jan 15, 2008 at 12:31:30PM +0100, Marco Gerards wrote: Robert Millan [EMAIL PROTECTED] writes: Hi, I've been working for a few hours in a GRUB port to i386/OFW. There's quite a bit of things that need cleanup/fix before it can be considered complete, but it's in a stage that

Re: GRUB on OLPC / XO

2008-01-15 Thread Robert Millan
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

Re: GRUB on OLPC / XO

2008-01-12 Thread Robert Millan
Some comments on things that need polishing. Some are more addressed at one of the two lists than the others, but feel free to join in either case. (also, if you feel this is off-topic in olpc-devel, feel free to ki^W let me know) btw, Mitch mentioned to me on IRC that the ELF loader on XO has

Re: GRUB on OLPC / XO

2008-01-12 Thread Mitch Bradley
Robert Millan wrote: Some comments on things that need polishing. Some are more addressed at one of the two lists than the others, but feel free to join in either case. (also, if you feel this is off-topic in olpc-devel, feel free to ki^W let me know) btw, Mitch mentioned to me on IRC that

Re: GRUB on OLPC / XO

2008-01-12 Thread Robert Millan
On Sat, Jan 12, 2008 at 08:02:03AM -1000, Mitch Bradley wrote: Robert Millan wrote: Some comments on things that need polishing. Some are more addressed at one of the two lists than the others, but feel free to join in either case. (also, if you feel this is off-topic in olpc-devel, feel

Re: GRUB on OLPC / XO

2008-01-12 Thread Mitch Bradley
Robert Millan wrote: We used to run trap insttruction on powerpc. I assume for exitting via trap on i386 we need to generate an interrupt; I'm just not sure which is the right number for it. To exit to OFW, call the exit() client service. I see. Is this one

Re: GRUB on OLPC / XO

2008-01-12 Thread Mitch Bradley
I was wrong about the mmu thing. I just checked the patch instructions at http://openbios.org/Open_Firmware and noticed that the patch comments out create virtual-mode. So if you build with that patch, you get physical addressing. I don't know what is right, because this build configuration

Re: GRUB on OLPC / XO

2008-01-12 Thread Robert Millan
On Sat, Jan 12, 2008 at 09:44:09AM -1000, Mitch Bradley wrote: I was wrong about the mmu thing. I just checked the patch instructions at http://openbios.org/Open_Firmware and noticed that the patch comments out create virtual-mode. So if you build with that patch, you get physical