LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2007, 08:13 AM   #1
moog
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
Unhappy how to insert a loadable module into the kernel.?


I'm really a novice LINUX user..


I'd like to insert module into the kernel.

Where is my kernel located?

I'm using fedora Core 6..

I know a little bit about the modprobe,but is there any way to edit the kernel directly in text mode.?????

Also how to enable a loadable module already in the kernel??

Last edited by moog; 01-08-2007 at 08:18 AM.
 
Old 01-08-2007, 08:36 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You insert a loadable module into the kernel with the "modprobe" command.
(man modprobe)

You cannot edit the kernel directly - you can edit the kernel source!
However - FC does not ship with the kernel source. You must use yum to install it.
(www.fedorafaq.org, www.mjmwired.net)

To insert a module into the kernel you must recompile the kernel to include your module code. There are plenty of tutorials etc (including in LQ) on compiling the kernel.

Once the module is compiled into the kernel, it is "enabled". (Unless you are thinking of something else?)

Last edited by Simon Bridge; 01-08-2007 at 08:37 AM.
 
Old 01-08-2007, 08:37 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Here's my take on your questions:

Quote:
Originally Posted by moog
I'm really a novice LINUX user..


I'd like to insert module into the kernel.
Use modprobe
Where is my kernel located?
The actual "kernel" is loaded during startup by the boot loader, so it would be in /boot
I'm using fedora Core 6..

I know a little bit about the modprobe,but is there any way to edit the kernel directly in text mode.?????
No. You can, however, pass argument through the kernel to processes started by it. And, of course, you're free to download the kernel source and recompile it incorporating any changes you wish.

Also how to enable a loadable module already in the kernel??
Look at /etc/modprobe.* for what is added by the nash init script, and at /etc/rc.d/rc?.d/* for the links to the services started after the kernel is loaded. (See /etc/rc.d/rc.sysinit for details.
If there's some specific thing(s) you'd like to have in the kernel, tell us what it is, and someone here might be able to help you.

Also, you should install the release documentation and look at the kernel options section. What you want to do might already be an option you could pass to your FC 6 kernel.

Last edited by PTrenholme; 01-08-2007 at 09:36 PM.
 
  


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
Kernel level -loadable module- debugger for ARM topworld Linux - Kernel 1 10-30-2006 06:37 AM
Help, loadable kernel module . ERBRMN Linux - General 3 10-13-2006 07:34 AM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 10:22 AM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Red Hat 1 09-09-2003 09:20 PM
loadable kernel module brajesh Linux - General 2 01-17-2003 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 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