Skip to contentSkip to conversation

How to install a module into the kernel

DISCUSSION 袁源 3 participants 3 messages Sep 21, 2006 – Sep 28, 2006

lore
Share & tools
lore

袁源

author
#0 lore raw

hi,
recently I have been working under grub2. I wrote some of my own modules and I don't know how to add it to the grub2 kernel (I mean how to pack it to the core.img,not using the command :insmod).I tried to find ways through the Internet but i got none. I am very glad if you can help me solve this. best wishes!

#1 lore raw
Quoted 6 lines · 袁源

hi,
recently I have been working under grub2. I wrote some of my own modules and I don't know how to add it to the grub2 kernel (I mean how to pack it to the core.img,not using the command :insmod).I tried to find ways through the Internet but i got none. I am very glad if you can help me solve this.

Hi, welcome!

It looks like you need to add your files to kernel_img_SOURCES in conf/*.rmk.

Could you tell us more about the modules you've written? Why do you need to have them built in? In other words, why can't you use insmod? Are they block device drivers?

-Hollis

#2 lore raw
In reply to 袁源
Quoted 5 lines · 袁源

recently I have been working under grub2. I wrote some of my own modules and I don't know how to add it to the grub2 kernel (I mean how to pack it to the core.img,not using the command :insmod).I tried to find ways through the Internet but i got none. I am very glad if you can help me solve this.

You can use the grub-mkimage command to add the modules, like you had to do for all the other modules as well.

What kind of modules did you write? Can we expect any patches? :-)

--
Marco