Re: Update: Booting OpenSolaris via gPXE

Stefan Hajnoczi <[email protected]>
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
A slightly better hack might be the following, which does as much work
as possible before shutting down:

diff --git a/src/arch/i386/image/multiboot.c b/src/arch/i386/image/multiboot.c
index 1811e91..fbff784 100644
--- a/src/arch/i386/image/multiboot.c
+++ b/src/arch/i386/image/multiboot.c
@@ -267,8 +267,6 @@ static int multiboot_exec ( struct image *image ) {
        memset ( &mbinfo, 0, sizeof ( mbinfo ) );
        mbinfo.flags = ( MBI_FLAG_LOADER | MBI_FLAG_MEM | MBI_FLAG_MMAP |
                         MBI_FLAG_CMDLINE | MBI_FLAG_MODS );
-       multiboot_build_memmap ( image, &mbinfo, mbmemmap,
-                                ( sizeof(mbmemmap) / sizeof(mbmemmap[0]) ) );
        mb_cmdline_offset = 0;
        mbinfo.cmdline = multiboot_add_cmdline ( image->name, image->cmdline );
        mbinfo.mods_count = multiboot_build_module_list ( image, mbmodules,
@@ -282,6 +280,9 @@ static int multiboot_exec ( struct image *image ) {
         */
        shutdown ( SHUTDOWN_BOOT );

+       multiboot_build_memmap ( image, &mbinfo, mbmemmap,
+                                ( sizeof(mbmemmap) / sizeof(mbmemmap[0]) ) );
+
        /* Jump to OS with flat physical addressing */
        DBGC ( image, "MULTIBOOT %p starting execution at %lx\n",
               image, entry );

If I gunzip the milax ramdisk then the boot gets a little further
though it still stops after failing to open 'unix'.  I believe GRUB is
uncompressing modules into memory.

Stefan

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.