grub-devel
[Top][All Lists]
Advanced

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

Re: Convert grub2 kernel core.img to linux kernel format


From: Robert Millan
Subject: Re: Convert grub2 kernel core.img to linux kernel format
Date: Thu, 6 Dec 2007 12:56:46 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Dec 01, 2007 at 10:16:38PM +0800, Bean wrote:
> Hi,
> 
> I've just written a header file that can be used to convert core.img
> to linux kernel format:
> 
> cat lnxhdr.bin core.img > grub2.bin
> 
> You can then load grub2.bin from syslinux/isolinux/pxelinux/lilo or
> any other boot loader that supports linux kernel.
> 
> qemu support linux kernel as well. Now you can start grub2 like this:
> 
> qemu -kernel grub2.bin -hda aa.dsk
> 
> To compile lnxhdr.bin, use the following commands:
> 
> gcc -nostdlib -Wl,-N -o lnxhdr lnxhdr.S
> objcopy -O binary lnxhdr lnxhdr.bin

Very nice!  Can you resend as a patch that puts it in the tree ?  (+ ChangeLog)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)




reply via email to

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