LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-13-2006, 05:04 PM   #1
swilliams2006
Member
 
Registered: Dec 2005
Location: Kent
Distribution: Kubuntu 6.10
Posts: 32

Rep: Reputation: 15
Installing Drivers on Mandriva- Installed Kernel Source but not found.


Hi,

I am trying to install the Eagle Chipset drivers for my Sagem 800 USB ADSL Modem.

I have untarred the source code, and try to run the make command...
Quote:
[root@siege Desktop]# cd ueagle-atm-1.3
[root@siege ueagle-atm-1.3]# make
make -C /lib/modules/2.6.12-12mdksmp/build M=/root/Desktop/ueagle-atm-1.3
make: *** /lib/modules/2.6.12-12mdksmp/build: No such file or directory. Stop.
make: *** [all] Error 2
[root@siege ueagle-atm-1.3]#
It does appear that I have Kernel source installed:
Quote:
[root@siege 2.6.12-12mdksmp]# uname -a
Linux siege.mshome.net 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Intel(R) Celeron(R) CPU 2.80GHz unknown GNU/Linux
[root@siege 2.6.12-12mdksmp]# urpmi kernel-source
The package(s) are already installed
The following package names were assumed: kernel-source-2.6.12.27mdk
[root@siege 2.6.12-12mdksmp]# urpmi kernel-source-2.6.12.12
no package named kernel-source-2.6.12.12
I appear to have the lib/modules folder:
Quote:
[root@siege 2.6.12-12mdksmp]# cd /lib/modules/
[root@siege modules]# ls -l
total 12
drwxr-xr-x 3 root root 4096 Feb 10 2006 2.6.12-12mdksmp/
drwxr-xr-x 3 root root 4096 Nov 12 22:00 2.6.12-15mdkcustom/
drwxr-xr-x 3 root root 4096 Nov 12 22:00 2.6.12-23mdksmp/
But no build folder
Quote:
[root@siege modules]# cd 2.6.12-12mdksmp
[root@siege 2.6.12-12mdksmp]# ls -l
total 1324
drwxr-xr-x 10 root root 4096 Feb 7 2006 kernel/
-rw-r--r-- 1 root root 244460 Feb 10 2006 modules.alias
-rw-r--r-- 1 root root 69 Feb 10 2006 modules.ccwmap
-rw-r--r-- 1 root root 324756 Feb 10 2006 modules.dep
-rw-r--r-- 1 root root 58046 Sep 9 2005 modules.description
-rw-r--r-- 1 root root 887 Feb 10 2006 modules.ieee1394map
-rw-r--r-- 1 root root 700 Feb 10 2006 modules.inputmap
-rw-r--r-- 1 root root 21487 Feb 10 2006 modules.isapnpmap
-rw-r--r-- 1 root root 233969 Feb 10 2006 modules.pcimap
-rw-r--r-- 1 root root 1051 Feb 10 2006 modules.seriomap
-rw-r--r-- 1 root root 113181 Feb 10 2006 modules.symbols
-rw-r--r-- 1 root root 295219 Feb 10 2006 modules.usbmap
I am sure I am doing something wrong... but dont know enough to figure out what.

I have tried googling this, other people using Red Hat have had this problem and been directed to dowloading the source code but I already have this installed...

Thanks for your time reading, and hope you can help!
Steve

Distribution: Mandriva 2006
Linux Experience: Understand basics but not very much.
 
Old 11-15-2006, 02:51 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
It does appear that I have Kernel source installed:
Quote:
[root@siege 2.6.12-12mdksmp]# uname -a
Linux siege.mshome.net 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Intel(R) Celeron(R) CPU 2.80GHz unknown GNU/Linux
[root@siege 2.6.12-12mdksmp]# urpmi kernel-source
The package(s) are already installed
The following package names were assumed: kernel-source-2.6.12.27mdk
[root@siege 2.6.12-12mdksmp]# urpmi kernel-source-2.6.12.12
no package named kernel-source-2.6.12.12
As you can see from the red parts, you have kernel version 2.6.12-12mdksmp (SMP-enabled kernel) installed (if I read that right). You seem to have sources too, but they are version 2.6.12.27mdk (not -12mdksmp). This might cause problems, since if you need kernel sources for something that's going to work with the running kernel, the sources need to be of the (exactly) same version than the kernel to be run is. So in this case you probably need to search, download and install kernel-source-2.6.12-12mdksmp or if you can't find them, install a kernel for which you can find the sources for.

Even if you felt like the version number doesn't differ that much, it does. This might not be the whole problem, but surely a thing you will want to fix first; having wrong-version kernel source installed might cause weird problems even if you were able to compile the code you intend to.
 
  


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
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
the kernel installed by mandriva 06 Michael_aust Mandriva 3 02-09-2006 01:17 PM
usefulness of mandriva-patches in kernel, or just new 2.614. kernel from source? Emmanuel_uk Mandriva 6 12-20-2005 08:56 PM
nvidia drivers not installing due to problems with the kernel source bcf2 Mandriva 1 01-16-2005 04:33 PM
Kernel Source Headers? (help needed installing modem drivers) Jakeyboy Linux - Hardware 8 10-07-2003 03:59 PM

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

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