LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-15-2006, 09:14 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Add Kernel Module


I have recently set up a new Slackware 10.2 installation and compiled a custom kernel from the 2.6.14.6 source.

All is working well and I am now trying to set up iptables and realize that I omitted to build one of the required modules during the kernel compilation.

I really want to avoid replacing the kernel image with a new one as I would like to leave this alone as it is working well. Can I do the following:

From my kernel source directory:

make menuconfig (adding the missing module via the .config)
make bzImage
make modules


Then simply just manually copy the required single module object from its location in the source directory to its rightful place in /lib/modules/[subdirectory]


Is that all I would need to do other than put in the appropriate modprobe command in a suitable place later to run the module?.

Thank you.
 
Old 02-15-2006, 10:37 AM   #2
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Have you considered using `make modules_install`?

True, it would copy all of the modules you've compiled with 2.6.14.6 over to the /lib/modules/2.6.14.6/ directory and not just that one module, but you'd just be overwriting identical files, so that shouldn't be an issue.
 
Old 02-15-2006, 10:40 AM   #3
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
do

Code:
make menuconfig
make
make modules
make install
make modules_install

You have to install a new kernel image (if you prefer to use make bzimage and them copy the image stick to that method) to enable the new modules. This will only take a couple of seconds (depending on your system) assuming you didn't delete or clean up the kernel source after you built the original kernel. As long as you don't remove anything from the kernel config then you won't have to worry about the kernel not working for you.

K
 
  


Reply


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
How to add a kernel module source? rollo Linux - General 6 10-19-2005 03:21 PM
How to add kernel module to kernel source? cranium2004 Programming 7 05-12-2005 10:34 PM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 10:22 AM
add new kernel module/file system blackzone Linux - General 1 11-07-2004 11:14 PM
how to add my module to linux kernel eshwar_ind Linux - Newbie 3 02-10-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 AM.

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