LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2005, 12:12 PM   #1
scaltro
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
[KERNEL] install own module (menuconfig)


I have developed a my software like a Loadable Kernel Module, thank to this link h**p://(triple w).tldp.org/LDP/lkmpg/2.6/html/x204.html.
In this mode you can compile a module without recompile kernel and load it with insmod.

This is good for the develop, but now i want to insert it in the kernel sorce and possibly to integrate like a kernel module.
But i don't know the changes that i have to apply to the Makefile in the directory where i put my source.

I would also know if i can show the name of my module in the menu of menuconfig where i can select to insert it as a module or not.

Last edited by scaltro; 02-19-2005 at 12:23 PM.
 
Old 02-20-2005, 01:47 AM   #2
gr33ndata
Member
 
Registered: Aug 2003
Location: DMZ
Distribution: Ubuntu
Posts: 144

Rep: Reputation: 15
To insert your module into the kernel use
# insmod yourmod.o
And to remove it
# rmmod yourmod

The make file is a normal make file, but you have do add the path of the kernel source via the -I flag in gcc
 
  


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
installing kernel module? 9.2/9700 install Jason711 SUSE / openSUSE 3 03-14-2005 05:40 PM
Install Kernel Module bendeco13 Linux - General 1 11-09-2004 09:39 PM
Install one module to the kernel? svarreby Linux - Newbie 1 02-05-2004 10:59 AM
Module Install without Kernel Recompile? bongski55 Linux - General 4 09-29-2003 12:30 AM
module problems after kernel install? aveach Linux - Newbie 1 08-23-2003 02:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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