nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   ERROR : unable to determine the nvidia kernel module filename (http://www.nvnews.net/vbulletin/showthread.php?t=26737)

ypikai 03-31-04 01:29 PM

ERROR : unable to determine the nvidia kernel module filename
 
I'm running on Mandrake 10 kernel 2.6.3-4mdk

When the installer tries to compile the nvidia module I get the following error:
unable to determine the nvidia kernel module filename

I've installed the kernel-source-2.6.3-4mdk.rpm and tried
./NVIDIA-Linux-x86-1.0-5336-pkg1.run --kernel-source-path=/usr/src/linux and still doesn't work (althought the symbolic link /usr/src/linux is ok)

I'm getting totaly mad about that....
If someone had the same problem...

GeForce 4 MX 440
PIII 1GHz
512Mo RAM
Mandrake 10 kernel 2.6.3-4mdk

jallread 05-02-04 11:03 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
I am having the same problem. I am running MDK 10.0.1 kernel 2.6.3-9mdksmp. Did you find a solution? If so, please let me know. Thanks,

Johnathon
john at eastcoast-pc dot com

zander 05-03-04 04:21 AM

Re: ERROR : unable to determine the nvidia kernel module filename
 
It basically means that the kernel source tree is unconfigured; while KBUILD only requires the correct .config file to be present for the KBUILD Makefile included with the NVIDIA driver to work, the driver itself currently requires that the kernel source is configured in order to be able to determine which Makefile to use (the traditional Makefile for Linux 2.4 or the KBUILD Makefile for Linux 2.6).

Munkey_Boi 05-03-04 06:10 AM

Re: ERROR : unable to determine the nvidia kernel module filename
 
I get the same as above,"ERROR: unable to determine the NVIDIA kernal module filename." but the makefile, kbuild has me stumped, can you break it down a bit further, like type xxx followed by xxxx please, I'm a total newbie.

hppnq 05-03-04 04:17 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
(Ah. You're here as well. ;-)

Could you post the output of the following commands?

# rpm -qa | grep kernel
# uname -a
# ls -l /usr/src/linux/.config

(That last one is twice a lowercase L.)

zander 05-03-04 04:37 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
Note that the NVIDIA driver relies on /lib/modules/$(uname -r)/build/include/linux/version.h (it respects SYSSRC or SYSINCLUDE if set) to determine which Makefile to use. The .config file is not sufficient for the installer (even though it is for the KBUILD Makefile).

hppnq 05-03-04 05:19 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
Unless Mandrake 10 is seriously broken, include/version.h should really be included by the kernel RPM. (The installer defaults to /usr/src/linux if it cannot find the correct /lib/modules/<kernel> directory, but I suppose it'd be nice to have the correct /lib/modules anyway. ;-)

Plus you obviously need the kernel sources in order to build the driver.

I noticed that this problem has already been dealt with in one of the sticky threads, although I guess YMMV with the proposed solution.

Munkey_Boi 05-04-04 11:39 AM

Re: ERROR : unable to determine the nvidia kernel module filename
 
Fom the commands supplied:
[matt@localhost matt]$ rpm -qa l grep kernel
grep-2.5.1-4mdk
[matt@localhost matt]$ uname -a
Linux localhost 2.6.3-4mdkenterprise #1 SMP Tue Mar 2 07:00:53 CET 2004 i686 unknown unknown GNU/Linux
[matt@localhost matt]$ ls -l /usr/src/linux/.config
-rw-r--r-- 1 root root 54087 Apr 23 21:50 /usr/src/linux/.config
[matt@localhost matt]$

I feel so feeble, I thought I was a whizz at M$, and old DOS, but here's I'm treading deep water.

hppnq 05-04-04 12:59 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
Quote:

Originally Posted by Munkey_Boi
Fom the commands supplied:
[matt@localhost matt]$ rpm -qa l grep kernel
grep-2.5.1-4mdk

That can't be correct. Could you try that again? If you do not see anything with "kernel" and "kernel-source" or something similar (there should be a reference to your kernel version 2.6.3-4mdkenterprise), you have to install them. Once you've done that, you could have another go at installing the Nvidia driver.

If this fails, or the kernel rpms were already installed, try to locate the file /usr/src/linux/include/linux/version.h, or /lib/modules/2.6.3-4mdkenterprise/build/include/linux/version.h -- if none of these are present, you will have to compile the kernel. (If you get to this point and you need help, let me know.;-)

Munkey_Boi 05-04-04 01:10 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
did the "rpm -qa l grep kernel" and it took about 3 seconds and once agin returned "grep-2.5.1-4mdk"

So I looked in "/usr/src/linux/include/linux/version.h"
and found:
#include <linux/rhconfig.h>
#if defined(__module__BOOT)
#define UTS_RELEASE "2.6.3-9mdkBOOT"
#elif defined(__module__up)
#define UTS_RELEASE "2.6.3-9mdk"
#elif defined(__module__smp)
#define UTS_RELEASE "2.6.3-9mdksmp"
#elif defined(__module__enterprise)
#define UTS_RELEASE "2.6.3-9mdkenterprise"
#elif defined(__module__secure)
#define UTS_RELEASE "2.6.3-9mdksecure"
#elif defined(__module__i686_up_4GB)
#define UTS_RELEASE "2.6.3-9mdk-i686-up-4GB"
#elif defined(__module__p3_smp_64GB)
#define UTS_RELEASE "2.6.3-9mdk-p3-smp-64GB"
#else
#define UTS_RELEASE "2.6.3-9mdkcustom"
#endif
#define LINUX_VERSION_CODE 132611
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

is this the file, and if so what do I do with it :)
Matt

hppnq 05-04-04 03:00 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
For a moment I thought I was going crazy, but I got it: you forgot to type the | (the pipe symbol) so I didn't see what I had expected. ;-) It is crucial that you type the commands that I list below *exactly* like they are here -- if in doubt copy/paste!

Anyway, never mind -- you do not have the kernel installed that you are running. ;-)

Try to install it. Supposing you have Mandrake on CDs, put the first of those in your cdrom player and mount it with the command

# mount /mnt/cdrom

You should now see something in /mnt/cdrom/Mandrake/RPMS (a whole list of packages), but we're only interested in the kernel and kernel-source ones.

Try to locate these with the commands

# ls /mnt/cdrom/Mandrake/RPMS/*kernel*

and

# ls /mnt/cdrom/Mandrake/RPMS/*kernel*source*

If you don't see the kernel packages, you'll have to try this for every cd until you found them. They are probably on different cd's by the way.

Now, install (preferably) each of the two packages -- the kernel and in any case the kernel-source, both version 2.6.3-4mdkenterprise -- with the command

# rpm -Uh <package>

where you will have to substitute <package> for the actual package name.

(If you have a package manager like kpackage or something like that this could be even easier, so you could also try that after the mount command). If you get funny errors along the way, let us know.

Otherwise, you have now probably installed the kernel-source (and possibly the kernel rpm as well). Now, first try to install the Nvidia driver again.

If it still doesn't work, type the following:

# cd /usr/src
# ls -l

You should see a couple of directories, one of them should be linux-2.6.3-4mdkenterprise.
If that's the case, type:

# mv linux linux.old
# ln -s linux-2.6.3-4mdkenterprise linux

Now, try installing the Nvidia driver once again. Good luck!

Catagoth 05-04-04 03:35 PM

Re: ERROR : unable to determine the nvidia kernel module filename
 
I have a similar problem. Debian testing, kernel 2.6.5.

The probblem is that there is no version.h in the kernel source. The .config file is there.

Cats


All times are GMT -5. The time now is 05:44 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.