lilo vs other OS bootloaders was: FreeBSD makes progress

From: Grover, Andrew (andrew.grover@intel.com)
Date: Fri Aug 31 2001 - 16:49:04 EST


OK, sounds like enhancing LILO to load modules beyond the kernel is
unworkable.

Just for discussion's sake, I would like to point out that other OSs do have
loaders that can load boot drivers, and they can use this to increase the
modularity of their kernel. FreeBSD's and Win2k's bootloaders are examples.
Win2K even abstracts all SMP/UP code into a module (the HAL) and loads this
at boot, thus using the same kernel for both.

So of course I realize this wouldn't happen any time soon, but has any
discussion taken place regarding enhancing the bootloader (grub? Steal
FreeBSD's?) to load modular drivers very early, and possibly abstracting
SMP/UP from the kernel proper? Wouldn't this be a better solution than
initrd?

Just curious -- Andy

> From: Russell Coker [mailto:russell@coker.com.au]
> > It would be really cool if lilo or grub could pull this
> trick, too. Without
> > it, we're left with compiling ACPI into the kernel, or
> doing some initrd
> > trick, both of which have disadvantages.
>
> LILO is architecturally incapable of doing such things
> without a huge degree
> of hacking. LILO has no support for .b files that set state.
> Having a .b
> file that loads one of two other files depending on what it
> detects would be
> possible (but a gross hack).
>
> Then if LILO determined that ACPI hardware was present how
> would it tell the
> kernel to load a module?
>
> Having a statically linked program on an initrd which will
> run "modprobe
> acpi" if it detects appropriate hardware is very easy to do
> for an install or
> rescue disk.
>
> For a running system the scripts that make the initrd image
> can check for the
> presence of ACPI to determine whether the ACPI module belongs
> in the initrd.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:35 EST