Modules in GRUB

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
AndrewAPrice
Member
Member
Posts: 2309
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Modules in GRUB

Post by AndrewAPrice »

Does any one have any good documentation or examples for loading modules within grub? Where does grub load the modules?
My OS is Perception.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

grub loads the modules somewhere in memory, then passes you the pointers through the multiboot structure
details here
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
ineo
Posts: 19
Joined: Wed Oct 18, 2006 3:20 am

Post 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).
Andrew275
Member
Member
Posts: 30
Joined: Tue Feb 27, 2007 2:29 pm
Contact:

Post 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.
My operating system: Desktop OS
Content management system/forum: Deluxe Portal
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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 :)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply