Page 1 of 1

Modules in GRUB

Posted: Tue Mar 13, 2007 2:45 am
by AndrewAPrice
Does any one have any good documentation or examples for loading modules within grub? Where does grub load the modules?

Posted: Tue Mar 13, 2007 3:48 am
by Combuster
grub loads the modules somewhere in memory, then passes you the pointers through the multiboot structure
details here

Posted: Tue Mar 13, 2007 6:56 am
by ineo
It is straightforward to use it from the multiboot structure, the only problem I faced is having a proper loader to relocate things as needed (ie an ELF loader for example).

Posted: Wed Mar 14, 2007 10:25 pm
by Andrew275
GRUB modules are really nice.. I use them to load critical drivers like the driver(s) for the drive my OS is booting from, the appropriate filesystem driver, and the console driver. That way, none of them have to be hardcoded into the kernel.

Posted: Thu Mar 15, 2007 1:43 am
by Brynet-Inc
Andrew275 wrote:GRUB modules are really nice.. I use them to load critical drivers like the driver(s) for the drive my OS is booting from, the appropriate filesystem driver, and the console driver. That way, none of them have to be hardcoded into the kernel.
Yeah the modular abilities of grub are quite neat.. nice forum software btw Andrew275 :)