Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2004, 12:05 AM   #1
Registered: Feb 2004
Posts: 41

Rep: Reputation: 15
i want to compile and load a module into kernel

i want to build & insert a multi-file(C ) module into the kernel and get it working....could someone please tell me what are the steps to be a newbie guys please explain in detail....( with the commands to be used and the parameters).....

and by the way...what is a simple terms..?

waiting for replies...
Old 02-20-2004, 10:59 AM   #2
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
If whoever wrote the module knows what they're doing, then:
cd <module source directory>
make install
insmod <module name>

... that's assuming your kernel is properly set up to accept the module. It would help if you could give more background about what you're trying to do and why.

A makefile is basically a script that does everything necessary to compile a piece of software. It is usually modified or generated by the ./configure script, which detects a bunch of stuff on your system and decides what to do about it.

Old 02-20-2004, 11:01 AM   #3
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
If you're doing a 'make menuconfig' to generate the kernel image, if it's part of the kernel:

M = Install as a module
* = Bulild in

So assumedly you'd want your setup to look like:
[*] Name Of Your Module

Old 02-21-2004, 10:17 AM   #4
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
thanks for the prompt replies......
i am actually writing a filesystem module ( im modifying an existing one) there are around 8 .c files kept in a directory with a do i compile them and load into the kernel...?I want to treat this module as an individual one without actually worrying that it is a modified module on an existing one.....please help.....


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 load kernel module based on kernel version? linetnew Linux - Newbie 3 05-10-2005 11:45 AM
can't compile/load nvnet module kryptobs2000 Slackware 2 07-20-2004 12:50 PM
I have to build , load and compile a FAT fs module into the kernel.wat should i do? ramya272 Linux - Newbie 2 02-06-2004 09:46 AM
To compile or to load as module ? synapse Linux - Newbie 3 01-30-2004 04:41 AM
Compile a dynamic MySQL module/load into PHP dleone Linux - General 2 01-31-2003 09:39 AM > Forums > Linux Forums > Linux - Newbie

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

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