LinuxQuestions.org
Help answer threads with 0 replies.
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 08-04-2011, 04:51 PM   #1
baxzius
Member
 
Registered: Jan 2010
Location: India
Distribution: ubuntu
Posts: 134
Blog Entries: 1

Rep: Reputation: 21
Unhappy Module compilation needs kernel header files or kernel sources?


i linked my build folder to /usr/src/linux-2.6.35-headerfiles instead of kernel source file.

Code:
total 4100
lrwxrwxrwx  1 root root     41 2011-08-05 01:47 build -> /usr/src/linux-headers-2.6.35-30-generic/
drwxr-xr-x  2 root root   4096 2011-07-12 07:30 initrd
drwxr-xr-x 10 root root   4096 2011-08-04 03:52 kernel
-rw-r--r--  1 root root 647923 2011-08-04 04:00 modules.alias
-rw-r--r--  1 root root 628128 2011-08-04 04:00 modules.alias.bin
-rw-r--r--  1 root root   5527 2011-07-12 07:28 modules.builtin
-rw-r--r--  1 root root   6753 2011-08-04 04:00 modules.builtin.bin
-rw-r--r--  1 root root     69 2011-08-04 04:00 modules.ccwmap
-rw-r--r--  1 root root 299843 2011-08-04 04:00 modules.dep
-rw-r--r--  1 root root 439522 2011-08-04 04:00 modules.dep.bin
-rw-r--r--  1 root root    135 2011-08-04 04:00 modules.devname
-rw-r--r--  1 root root   1405 2011-08-04 04:00 modules.ieee1394map
-rw-r--r--  1 root root    218 2011-08-04 04:00 modules.inputmap
-rw-r--r--  1 root root  21047 2011-08-04 04:00 modules.isapnpmap
-rw-r--r--  1 root root     74 2011-08-04 04:00 modules.ofmap
-rw-r--r--  1 root root 116717 2011-07-12 07:28 modules.order
-rw-r--r--  1 root root 425524 2011-08-04 04:00 modules.pcimap
-rw-r--r--  1 root root   1681 2011-08-04 04:00 modules.seriomap
-rw-r--r--  1 root root    131 2011-08-04 04:00 modules.softdep
-rw-r--r--  1 root root 239781 2011-08-04 04:00 modules.symbols
-rw-r--r--  1 root root 308359 2011-08-04 04:00 modules.symbols.bin
-rw-r--r--  1 root root 956050 2011-08-04 04:00 modules.usbmap
lrwxrwxrwx  1 root root     26 2011-08-05 00:26 source -> /home/saad/Downloads/linux
saad@saad-laptop:/lib/modules/2.6.35-30-generic$
still i able compile the modules...
Although i have question that,
should i link to kernel header folder? or kernel source directory?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-04-2011, 05:07 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,472

Rep: Reputation: 189Reputation: 189
In general, header files are sufficient for compiling kernel modules. The entire kernel source is needed if you want to compile a custom kernel.
 
2 members found this post helpful.
Old 08-04-2011, 05:12 PM   #3
baxzius
Member
 
Registered: Jan 2010
Location: India
Distribution: ubuntu
Posts: 134
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by kilgoretrout View Post
In general, header files are sufficient for compiling kernel modules. The entire kernel source is needed if you want to compile a custom kernel.
thank you so much brother.i love you.because its indeed important knowledge for me.
by the way...
did you see the source folder in the listing of files? i linked to the actual source folder.
will it be useful in future or any application would access it?
 
  


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
[SOLVED] Kernel Compilation ( Header file not found) ravishekhar.82 Fedora 2 02-24-2010 07:33 AM
Kernel Header files needed for lilo (config.h no longer in kernel!) gvp87 Linux - Software 1 04-29-2008 03:32 PM
Kernel module with multiple source files compilation problem Last Attacker Programming 7 05-06-2006 10:10 AM
kernel sources compilation prob. rooman Linux - Software 5 10-01-2004 04:34 PM
where to look for header files for kernel module pot_po Programming 1 10-30-2002 11:57 AM


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