I've been working on this for x86_64 bzimage... for bzimage, if the
kernel was compiled to be relocatable (see the kernel source, in
Documentation/x86/i386/boot.txt, and CONFIG_RELOCATABLE), you just need
to allocate some memory for the kernel and load it there, then jump to
the right address. The startup code checks the address it's at and does
the right thing.
I'm almost done with a patch to add support for relocatable bzimage
kernels for x86_64. I've been running into a problem where I'm getting
an "invalid parameter" error when I try to open files... I think it
might be related to stack usage, and it's definitely related to the
Print function. As soon as I work that out I'll send in my patch.
Thanks,
Stuart
-----Original Message-----
From: Jason Fleischli [mailto:jason.fleischli-***@public.gmane.org]
Sent: Monday, December 01, 2008 5:37 PM
To: Bret Barkelew
Cc: elilo-discuss-5NWGOfrQmneRv+***@public.gmane.org
Subject: Re: [elilo-discuss] Follow-Up to 1MB Allocation Problem
Hi, While searching for an answer to the same problem, I stumbled
85.html
I wanted to take a stab at patching it to work generically using a
dynamic address returned from AllocatePages, but I get the impression
that this is more complicated than just changing the address.
What else needs to be fixed to make it work properly? Something about
relocating the kernel image?
Thanks for any help.
-- Jonathan Barkelew
Essentially the kernel "relocatable" option implemented in the ia64
subtree (see elilo/ia64/config.c)needs to be implemented for ia32 &
x86_64 or perhaps elilo can be smartened up to figure it out, havent
looked into that route yet.
-jason
--
___________________________________
JASON FLEISCHLI
HP - Alliances, Linux, & Performance Solutions Ft. Collins CO
(970)898-0874
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
elilo-discuss mailing list
elilo-discuss-5NWGOfrQmneRv+***@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/elilo-discuss
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/