Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 05-14-2008, 06:39 PM   #1
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
regarding building (patched) modules for the running kernel...

I have just parsed the patch required for a module I need and for various reasons I want to make the change manually.

It is a simple change and so I go into the module.c and edit the code; then save and tag it as a module M for inclusion in the kernel and do a make && make modules_install.

I find that my module is indeed built (.ko) in the appropriate directory of /lib/modules/currentkernel/kernel/drivers.... etc

But what else needs to be done to use it - modprobe doesn't find it - I am guessing that I need to reboot to have the instance of the kernel made to accommodate that module running? Is that right?

In otherwise I need to do copy the bzImage as well as install the kernel module?

Old 05-14-2008, 09:34 PM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,172

Rep: Reputation: 52
you only need to run depmod -a, then modprobe it. i think.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building kernel modules problems drystan2005 Fedora 4 12-22-2006 10:08 PM
Building modules into a kernel DJNolz83 Linux - Kernel 4 09-13-2006 06:11 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 04:07 AM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 09:28 AM
modules dont load after kernel patched malix Slackware 4 09-23-2002 10:03 PM

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration