LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-21-2007, 05:15 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 806

Rep: Reputation: 40
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/2.6.22.9-laptop-1mdv/build SUBDIRS=/home/robertw/m560x-driver/m560x/trunk/km_m560x modules
make[1]: Entering directory `/lib/modules/2.6.22.9-laptop-1mdv/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.22.9-laptop-1mdv/build'
make: *** [all] Error 2

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

If I do this:

ls -s /usr/src/linux-2.6.22.9-1mdv/ /lib/modules/2.6.22.9-laptop-1mdv/build/

I just get this
lib/modules/2.6.22.9-laptop-1mdv/build/:
total 0

/usr/src/linux-2.6.22.9-1mdv/:
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 System.map
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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