[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Convert grub2 kernel core.img to linux kernel format
From: |
Bean |
Subject: |
Convert grub2 kernel core.img to linux kernel format |
Date: |
Sat, 1 Dec 2007 22:16:38 +0800 |
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
--
Bean
lnxhdr.zip
Description: Zip archive
- Convert grub2 kernel core.img to linux kernel format,
Bean <=