LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to insert custom modules into GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-insert-custom-modules-into-grub-4175421076/)

bbrar 08-08-2012 03:35 PM

How to insert custom modules into GRUB
 
Hi,
Can some one point me to documentation/steps on adding custom modules that can be loaded via GRUB2?
I read some where that the modules have to be built into the GRUB source in order to make it available.. is that correct?
Is there any restriction on what code these modules can execute.. for instance .. access PCI config space ?

bigrigdriver 08-09-2012 12:12 PM

This article might answer some of your questions. This is the introduction from the article:
Quote:

GRUB2
has a modular architecture with support for loading and unloading code modules as needed. Modules are similar to Linux kernel modules in some respects but in other ways they are like plugins for Mozilla Firefox or the Eclipse IDE. In this post I provide an overview of what a GRUB2 module is and show you how to modify an existing module to add new functionality. I also demonstrate how to develop, integrate, and test your own custom module using the GRUB2 grub-emu userspace emulator.


All times are GMT -5. The time now is 08:10 PM.