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

2007-12-15 Thread Robert Millan
On Thu, Dec 13, 2007 at 10:06:31AM +0800, Bean wrote: > On second thoughts,the original patch is better, because lnxboot.img > works with core.img, which depends on boot.img, kernel.img and > grub-mkimage that exist only in i386-pc. Ok, just checked that in. -- Robert Millan I know my rights;

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

2007-12-12 Thread Bean
On second thoughts,the original patch is better, because lnxboot.img works with core.img, which depends on boot.img, kernel.img and grub-mkimage that exist only in i386-pc. -- Bean ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/ma

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

2007-12-12 Thread Bean
Ok. 2007-12-12 Bean <[EMAIL PROTECTED]> * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img. (lnxboot_img_SOURCES): New variable. (lnxboot_img_ASFLAGS): Likewise. (lnxboot_img_LDFLAGS): Likewise. * conf/i386-linuxbios.rmk (pkgdata_PROGRAMS): Add lnxboot

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

2007-12-12 Thread Robert Millan
On Fri, Dec 07, 2007 at 12:13:03AM +0800, Bean wrote: > Hi, > > Added a new file boot/i386/pc/lnxboot.S, which will compile into Could you make this boot/i386/lnxboot.S ? In principle, this should work on other firmware (except maybe EFI). It'd also be good to include it in the makefile for at

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

2007-12-06 Thread Bean
Hi, Added a new file boot/i386/pc/lnxboot.S, which will compile into lnxboot.img. You can use it in a few ways: 1, Use it as standalone kernel, core.img as initrd kernel lnxboot.img initrd core.img For example, you can start grub2 in qemu like this: qemu -kernel lnxboot.img -initrd core.img ..

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

2007-12-06 Thread Robert Millan
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 t