[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pxegrub to boot a dos image ?
From: |
Jean-Jacques Michel |
Subject: |
Re: pxegrub to boot a dos image ? |
Date: |
Wed, 13 Mar 2002 09:54:16 +0100 |
Jean-Claude Giese wrote:
>
> Hi,
>
> I'm trying to replace pxelinux+memdisk with pxegrub to boot a
> dos-image via the network. I'm able to get the grub prompt after a PXE
> boot but I don't know how to load my dos-image and boot it ?
> The dos-image is on the tftp server and works with pxelinux+memdisk.
> I'v tried to load it via the command chainloader (after a "root (nd)"
> but it does not boot ?
>
> Any idea ?
>
> Thank you
Grub cannot load the "memdisk" because of its format (BzImage, with
only a setup section, no text/data).
Here is a patch to ./stage2/boot.c that I use to make it
work (tested on 0.5.96.1 & 0.9x) :
--- /tmp/boot.c Wed Mar 13 09:40:15 2002
+++ boot.c Wed Mar 13 09:33:59 2002
@@ -341,6 +341,14 @@
*dest = 0;
}
+ if (text_len == 0)
+ {
+ grub_close ();
+ linux_text_len = text_len;
+ cur_addr = LINUX_STAGING_AREA + text_len;
+ return big_linux ? KERNEL_TYPE_BIG_LINUX :
KERNEL_TYPE_LINUX;
+ }
+
/* offset into file */
grub_seek (data_len + SECTOR_SIZE);
I guess it will also work from a (nd) boot device with :
kernel (nd)/.../memdisk
initrd (nd)/.../yourDOSimage
boot
Have fun ;-)
--
Jean-Jacques Michel mailto:address@hidden
Hardware Engineer - Linbox http://www.linbox.com
TechnopĂ´le Metz 2000 - 152 rue de Grigy - 57070 Metz - France
Tel : +33 (0)3 87 75 55 21 - Fax : +33 (0)3 87 75 19 26
- Re: pxegrub to boot a dos image ?,
Jean-Jacques Michel <=