How to install a module into the kernel
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!
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
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