Perhaps this is a terminally stupid question, but I'm a bit new to the
kernel....Would it not be possible to allocate memory, and manually fix-up
the addresses in the kernel image?
On Tue, Dec 2, 2008 at 6:20 PM, <[EMAIL PROTECTED]> wrote:
>
> 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:[EMAIL PROTECTED]
> Sent: Monday, December 01, 2008 5:37 PM
> To: Bret Barkelew
> Cc: [email protected]
> Subject: Re: [elilo-discuss] Follow-Up to 1MB Allocation Problem
>
> On Mon, 2008-12-01 at 18:26 -0500, Bret Barkelew wrote:
> > Hi, While searching for an answer to the same problem, I stumbled
> > across a posting on this mailing list:
> > http://www.mail-archive.com/[email protected]/msg000
> > 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/elilo-discuss
>
--
You just keep on trying 'till you run out of cake.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/elilo-discuss