Re: gPXE from GRUB

Marty Connor <[email protected]> Fri, 28 Dec 2007 22:29:56 -0500
Newsgroups gmane.network.etherboot.user,gmane.network.etherboot.devel
Message-ID <[email protected]>
[ CC'ing to Etherboot-Developers ]

Thanks for the explanation, Michael!

For some reason I thought our code had been updated to make the .lkrn 
wrapper appear to be a more recent kernel.  Perhaps we haven't set some 
fields that would make GRUB think so.

Could someone take a look at:

    src/arch/i386/prefix/bImageprefix.S

and see if you can see what we're missing?

Dirk, with the changes suggested below can you now boot the .lkrn image 
in GRUB .95?  That would be nice to know.

Thanks,

Marty

Michael Schierl wrote:
> Marty Connor schrieb:
>> Dick Busch wrote:
> 
>>> I built gpxe.lkrn
>>>
>>>      ls -l bin/gpxe.lkrn
>>>      -rw-r--r-- 1 root root 171401 Dec 28 00:42 bin/gpxe.lkrn
>>>
>>> and added it to my grub menu.lst:
>>>
>>>     title gPXE
>>>             root (hd0,0)
>>>             kernel /boot/gpxe.lkrn
> 
> Don't use the "root" command if you do not want to pass a root device to
> your kernel. Better use
> 
> kernel (hd0,0)/boot/gpxe.lkrn
> 
> But that is not your problem here.
> 
>>> When I select it on boot I get
>>>
>>>           Error 28: Selected item cannot fit into memory
>>>
> 
>> Anybody have any ideas to help debug this?
> 
> Your problem is:
> 
> grub> kernel (hd0,0)/boot/gpxe.lkrn
>    [Linux-zImage, setup=0x800, size=...]
> 
> This mimicks a zImage kernel, as used by really ancient Linux
> versions. One of the disadvantages of these kernels is that they
> want to be loaded to the top of the 640K window. This works fine, unless
> your BIOS tries to reserve parts of this (which happens on some recent
> PCs). In that case, you will need a bzImage (or any other format that
> GRUB can boot).
> 
> You can use the displaymem command in the GRUB console to see which
> memory regions can be used and which are reserved by the BIOS.
> 
> You can find more information about this in a Debian bug report about
> not being able to run memtest86 on a recent PC:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=319837#21
> 
> 
> Hope that helps,
> 
> 
> Michael
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Etherboot-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/etherboot-discuss

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/