Hello!

The GRUB shell crashes while attempting to boot *BSD images.
The patch is attached

ChangeLog:
        * stage2/boot.c [GRUB_UTIL]: new function bsd_boot_entry
        (bsd_boot) [GRUB_UTIL]: point entry_addr to bsd_boot_entry
        to avoid real booting

Something strange happens with "fsmax" variable on FAT. It is set to
1024, which prevents loaing kernels from FAT floppies.
Looks like the FAT32 patch should be overhauled completely.

Also decompression of kernels doesn't seem to work in the GRUB shell.

Pavel Roskin
--- stage2/boot.c.v0    Mon Aug 30 13:07:20 1999
+++ stage2/boot.c       Tue Aug 31 03:27:41 1999
@@ -523,6 +523,16 @@
 }
 
 
+#ifdef GRUB_UTIL
+static void
+bsd_boot_entry (int flags, int bootdev, int sym_start, int sym_end,
+               int mem_upper, int mem_lower)
+{
+  stop ();
+}
+#endif
+
+
 /*
  *  All "*_boot" commands depend on the images being loaded into memory
  *  correctly, the variables in this file being set up correctly, and
@@ -538,7 +548,11 @@
   int clval = 0, i;
   struct bootinfo bi;
 
+#ifdef GRUB_UTIL
+  entry_addr = (entry_func) bsd_boot_entry;
+#else
   stop_floppy ();
+#endif
 
   while (*(++arg) && *arg != ' ');
   str = arg;

Reply via email to