LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-10-2004, 01:31 AM   #1
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Rep: Reputation: 15
how to add my module to linux kernel


Hi!
Can you please tell me how to add my module to the kernel statically ( i.e. When i reboot the system it should contain my module) ?
reply me.
bye,
Eshwar.
 
Old 02-10-2004, 02:39 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

You could put an entry in
/etc/rc.d/rc.sysinit

Something like modprobe [modulename] >/dev/null 2>&1

You'll have to figure out where in the file you want to do this.

If the module's not needed during boot, but will be later, you could put that line into
/etc/rc.d/rc.local

Dave
 
Old 02-10-2004, 03:08 AM   #3
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Original Poster
Rep: Reputation: 15
thank you for your help.
 
Old 02-10-2004, 09:01 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Moved: More suitable in Newbie as it really isn't LFS specific. Regards.
 
  


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 04:21 PM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 06:12 AM
How to add kernel module to kernel source? cranium2004 Programming 7 05-12-2005 11:34 PM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 11:22 AM
add new kernel module/file system blackzone Linux - General 1 11-08-2004 12:14 AM


All times are GMT -5. The time now is 09:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration