Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-31-04, 01:29 PM   #1
ypikai
Registered User
 
Join Date: Mar 2004
Posts: 2
Default 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
ypikai is offline   Reply With Quote
Old 05-02-04, 11:03 PM   #2
jallread
Registered User
 
Join Date: May 2004
Posts: 1
Default 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
jallread is offline   Reply With Quote
Old 05-03-04, 04:21 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default 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).
zander is offline   Reply With Quote
Old 05-03-04, 06:10 AM   #4
Munkey_Boi
Registered User
 
Join Date: May 2004
Posts: 11
Default 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.
Munkey_Boi is offline   Reply With Quote
Old 05-03-04, 04:17 PM   #5
hppnq
Registered User
 
Join Date: Apr 2004
Location: Dutch
Posts: 113
Default 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.)
hppnq is offline   Reply With Quote
Old 05-03-04, 04:37 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default 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).
zander is offline   Reply With Quote
Old 05-03-04, 05:19 PM   #7
hppnq
Registered User
 
Join Date: Apr 2004
Location: Dutch
Posts: 113
Default 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.
hppnq is offline   Reply With Quote
Old 05-04-04, 11:39 AM   #8
Munkey_Boi
Registered User
 
Join Date: May 2004
Posts: 11
Default 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.
Munkey_Boi is offline   Reply With Quote

Old 05-04-04, 12:59 PM   #9
hppnq
Registered User
 
Join Date: Apr 2004
Location: Dutch
Posts: 113
Default 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.;-)
hppnq is offline   Reply With Quote
Old 05-04-04, 01:10 PM   #10
Munkey_Boi
Registered User
 
Join Date: May 2004
Posts: 11
Default 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
Munkey_Boi is offline   Reply With Quote
Old 05-04-04, 03:00 PM   #11
hppnq
Registered User
 
Join Date: Apr 2004
Location: Dutch
Posts: 113
Default 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!
hppnq is offline   Reply With Quote
Old 05-04-04, 03:35 PM   #12
Catagoth
Registered User
 
Join Date: May 2004
Location: Germany
Posts: 2
Send a message via AIM to Catagoth
Unhappy 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
Catagoth is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 06:23 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM

All times are GMT -5. The time now is 11:17 AM.


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