LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-21-2007, 06:15 AM   #1
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 715

Rep: Reputation: 35
Kernel source location questions (and symbolic links) for module compile.

I should first say I've managed to compile modules on previous Mandriva installations, but on a new 2008.0 install I have issues. AFAIK I have installed the source.

I'm trying to compile a driver for my integrated webcam and I get an error which I think is something to do the source files (probably links to them). I get this:

make -C /lib/modules/ SUBDIRS=/home/robertw/m560x-driver/m560x/trunk/km_m560x modules
make[1]: Entering directory `/lib/modules/'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/'
make: *** [all] Error 2

I think I need to create a symbolic link to my /usr/src/linux- directory from my /lib/modules/ which is empty (but I could be wrong).

If I do this:

ls -s /usr/src/linux- /lib/modules/

I just get this
total 0

total 5560
4 3rdparty/ 4 drivers/ 12 lib/ 4 REPORTING-BUGS
4 arch/ 12 fs/ 96 MAINTAINERS 4 scripts/
4 block/ 4 include/ 56 Makefile 4 security/
20 COPYING 4 init/ 4 mm/ 4 sound/
96 CREDITS 4 ipc/ 420 Module.symvers 704
12 crypto/ 4 Kbuild 4 net/ 4 usr/
12 Documentation/ 12 kernel/ 20 README 4028 vmlinux*

Can anyone advise on what the issue is here please? Am I trying to do the right thing and just getting the syntax incorrect?

Many thanks.


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
Kernel Source Location pete1234 Linux - Kernel 8 08-27-2006 05:08 PM
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 07:15 PM
Why the heck is my symbolic link changing during a kernel compile? veritas Linux - General 4 06-08-2004 10:30 PM
Samba fs with kernel 2.6 and symbolic links F1uX Linux - Networking 5 03-25-2004 06:42 AM
location of kernel source joe_sixpack Linux - General 2 02-19-2004 04:45 AM

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