Terence Golightly wrote:
On Fri, 2005-11-11 at 22:58 -0600, Mikkel L. Ellertson wrote:

<Whackity Whack>

Mikkel,



The first thing I would do is look in the /usr/src/linux-2.6.11-12mdk and make sure you have the Makefile there.


[EMAIL PROTECTED] ~]$ uname -r
2.6.11-12mdkcustom
[EMAIL PROTECTED] ~]$
From the messages generated when you were trying to compile, it was looking in /usr/src/linux-2.6.11-12mdk. and not /usr/src/linux-2.6.11-12mdkcustom.

ls  /usr/src/linux-2.6.11-12mdkcustom/
3rdparty/  fs/       kernel/       Module.symvers  security/   vmlinux*
arch/      include/  lib/          net/            sound/
crypto/    init/     make-out.txt  rsbac/          System.map
drivers/   ipc/      mm/           scripts/        usr/
[EMAIL PROTECTED] ~]$

No.. I'ts not there.  I have several kernel src's installed and the most
recent:

[EMAIL PROTECTED] ~]$ ls -l /usr/src/
total 20
lrwxrwxrwx   1 root root   18 Nov 11 19:19 2.6.11-12mdkcustom ->
linux-2.6.11-12mdk/
lrwxrwxrwx   1 root root   18 Sep 24 17:06 linux -> linux-2.6.12-12mdk/
drwxr-xr-x  20 root root 4096 Sep 11 22:04 linux-2.6.10-3.mm.24mdk/
drwxr-xr-x  20 root root 4096 Sep 24 17:06 linux-2.6.11-12mdk/
lrwxrwxrwx   1 root root   18 Nov 11 20:40 linux-2.6.11-12mdkcustom ->
linux-2.6.11-12mdk/
lrwxrwxrwx   1 root root   19 Aug 30 13:52
linux-2.6.11-12mdk-i586-up-1GB -> linux-2.6.11-12mdk//
drwxr-xr-x  20 root root 4096 Sep 13 16:05 linux-2.6.11-7.mm.18.SoS.mdk/


drwxr-xr-x  21 root root 4096 Sep 24 17:06 linux-2.6.12-12mdk/

There is a makefile in this directory. but in none of the others.  Isn't
this unusual?  I did compile a custom kernel for myself before I install
the 2.6.12 kernel?  Could adding the latest source have something to do
with there not being a makefile for my currently compiled kernel?

Not realy. When you upgrade the kernel source RPM, it removes the old source. But because there were files in the directories that were not part of the origional RPM, the directories remain.

drwxr-xr-x   7 root root 4096 Oct 25 20:16 RPM/
[EMAIL PROTECTED] ~]$
Here are my installed kernels'/kernel srcs':

[EMAIL PROTECTED] ~]$ lpkg kernel
kernel-i586-up-1GB-2.6.12.12mdk-1-1.SoS
kernel-multimedia-i686-up-4GB-2.6.11-7.mm.18.SoS.mdk-1-1mdk
kernel-source-2.6-2.6.12-12mdk
kernel-multimedia-source-2.6.11-7.mm.18.SoS.mdk
kernel-i586-up-1GB-2.6.11.12mdk-1-1mdk
[EMAIL PROTECTED] ~]$

Only kernel-source-2.6-2.6.12-12mdk and kernel-multimedia-source-2.6.11-7.mm.18.SoS.mdk are kernel source code. The others are compiled kernels.


This should be the location of the kernel source, and if it can not find a rule to make "modules" then you have a big problem. What I suspect is going on is that your kernel source is in a different location.

Mikkel


Ok then dare I ask how big?>? :(

Thanks,

Terry

You have a couple of options here. Probably the best one is to compile a new costum kernel from the latest source, install it, and reboot using that kernel. Then compile the module. The source will match the running kernel, and it should work fine. (You can copy your old custom config file to the new source directory and run "make oldconfig".)

If you want to keep using the current kernel, then you will have to re-install the old source package. I would save a copy of your custom config file just in case. I don't remember if installing the source RPM will overwrite it.

Mikkel
--

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to