LinuxQuestions.org
Review your favorite Linux distribution.
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 04-27-2009, 09:03 AM   #1
phamxuanhao
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Compile a module in Fedora 10


Hi everybody, I am a newbie
I have just learnt Linux. And I have many problems. Please help me, thanks you very much.
The first my question: How to build a kernel module in fedora 10, 2.6.27.21-170.2.56.fc10.i686. I try to do it but error
My MakeFile:
obj-m += vlogger.c

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
and this is result when I type 'make' command
[haopx@phamxuanhao BTL]$ make
make -C /lib/modules/2.6.27.21-170.2.56.fc10.i686/build M=/home/haopx/Desktop/BTL modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
scripts/Makefile.build:218: target `/home/haopx/Desktop/BTL/vlogger.c' doesn't match the target pattern
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
[haopx@phamxuanhao BTL]$
And there are files in BTL directory:
Makefile Module.markers modules.order Module.symvers vlogger.c
Where is my module .ko???
Thanks
 
Old 04-27-2009, 09:35 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try doing a search for that module. by doing the following
Code:
find / -name "<module name>.ko"
this will search every directory on your system for the specific .ko file. If you want to search for all just remove teh module name and replace it with an *
 
Old 04-27-2009, 11:07 AM   #3
phamxuanhao
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
try doing a search for that module. by doing the following
Code:
find / -name "<module name>.ko"
this will search every directory on your system for the specific .ko file. If you want to search for all just remove teh module name and replace it with an *
Thanks, it means that my Makefile is correct and my file vlogger.c was complied succefully, doesn't it?
if it is true, why not result is returned when 'find / -name vlogger.ko' finished.

Last edited by phamxuanhao; 04-27-2009 at 11:11 AM.
 
  


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
Trying to compile pcwd_pci kernel module in Fedora 7 magnus_simius Fedora 1 08-30-2008 03:00 PM
'vmmon' module fails to compile under Fedora Core 6 tuxfan Linux - Software 3 09-24-2007 08:47 AM
can't compile module robertos Fedora 3 02-07-2007 02:11 PM
unable to compile module abk4523 Linux - Kernel 2 02-02-2007 09:45 AM
Please Compile This Module For Me... hellmet Linux - Software 10 05-08-2006 05:30 AM

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

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