LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-14-2008, 05:39 PM   #1
stardotstar
Member
 
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?

TIA
Will
 
Old 05-14-2008, 08:34 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

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


Reply



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 09:08 PM
Building modules into a kernel DJNolz83 Linux - Kernel 4 09-13-2006 05:11 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 03:07 AM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 08:28 AM
modules dont load after kernel patched malix Slackware 4 09-23-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:18 PM.

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