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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-13-02, 09:42 AM   #1
twilight
Guest
 
Posts: n/a
Default problems installing NVIDIA_kernel package

hi!
i use debian 3.0 (woody), kernel (2.4.18-bf24) has been compiled with my current gcc version. when i try installing the nv_kernel package (using : 'make install') the following error message is returned:

nv.c:22 linux/modversions.h : No such file or directory
make:*** [nv.o] Error1

please, tell me whats the matter, i need a running xserver as fast as possible!

Twilight
  Reply With Quote
Old 10-13-02, 01:03 PM   #2
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

Please make sure you have your kernel sources installed.

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote
Old 10-14-02, 03:53 PM   #3
JojoS
Guest
 
Posts: n/a
Unhappy

I get the exact same error on the exact same kernel as user above and I have the source installed. so what else could it be?
thanks.
Jojo
  Reply With Quote
Old 10-14-02, 04:07 PM   #4
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

Are your kernel sources in /usr/src/linux? modversions.h is provided with your kernel source package.

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote
Old 11-12-02, 04:30 PM   #5
thunderbyte
Registered User
 
Join Date: Nov 2002
Posts: 3
Default

I had the same problem than twilight. So i followed Andy's advice and I installed my kernel-source in /usr/src/linux

It worked fine.

After, I d/l the nv kernel & glx (the tarball), follow the procedure described in the readme in nvidia's site.

when I type "make install" in NVIDIA_kernel... directory, it compiles, but at the end I've got this error :

------
ld -r -o NVdriver Module-linux Module-nvkernel
size NVdriver
text ... /** blah blah
894344 ... /** blah blah

dep mod : *** Unresolved symbols in /lib/modules/2.4.18-bf2.4/kernel/drivers/video/NVdriver

make : *** [package-install] Error 1.

----------
I thought it was normal, then I compiled the GLX drivers, and it went OK.

Then,
I modified my XF86Config-4 in order to change the default driver "nv" with "nvidia". I rebooted my PC, but the GUI couldn't launch. I saw a message, where I see the GLX where succesfully loaded, but the Kernel drivers failed to load.



Could someone help me, I'm a very newbie in Linux ?

Last edited by thunderbyte; 11-12-02 at 04:36 PM.
thunderbyte is offline   Reply With Quote
Old 11-12-02, 06:00 PM   #6
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

Unresolved symbols are caused by a mismatch between your kernel source tree and your running kernel. You'll need to make sure that your kernel-source package is configured for the 2.4.18-bf2.4 you're running. Right now, it looks like they don't sync.

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote
Old 11-13-02, 04:29 PM   #7
thunderbyte
Registered User
 
Join Date: Nov 2002
Posts: 3
Default Yippeee !!

Thank you very much Andy, you were right. I installed the matching kernel headers and the compilations went OK.

BUT, a small 'bug' subsist (but IMHO I think this bug isn't related to nvidia). I explain :

When I reboot my PC, the NVdriver fails to launch. Then I looked in nvidia's readme, and I saw a Question inside which match my problem :

-------
Q: My X server fails to start, and my XFree86 log file contains the error:

"(EE) NVIDIA(0): Failed to initialize the NVdriver kernel module!"
--------

(I made a backup copy of my XFree86 log file here )
So, I tried to load it manually, using modprobe NVdriver (I also get a warning, which states that loading the NVkernel will taint my kernel).
And, miracle, It loads successfully : I launch X, and OpenGL driven Apps now work successfully.

Is there a way to solve this little problem, because it is annoying to do this each time I boot ?

Last edited by thunderbyte; 11-13-02 at 04:33 PM.
thunderbyte is offline   Reply With Quote
Old 11-13-02, 04:49 PM   #8
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Yes, you need an alias in /etc/modules.conf (unless you run Debian -- if you do, you need to add a line "NVdriver" to I think /etc/modules) so that your system knows to load the NVdriver kernel module when its services are needed.

If the /dev/nvidia* files exist when you first boot up (ls them to find out), then you need to add alias char-major-195 NVdriver to modules.conf. If those files don't exist when you first boot, then you need to add alias /dev/nvidia* NVdriver to modules.conf. In either case, do the editing and then run depmod -a as root, and then try to startx (or just reboot, either way).
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote

Old 11-13-02, 05:46 PM   #9
thunderbyte
Registered User
 
Join Date: Nov 2002
Posts: 3
Thumbs up Wonderful

Yes, bwkaz, i own a debian, I edited my /etc/modules and it works like a charm now ! Alright, lads, you were very helpful for me, I'd like to say Thank you very much both of you (Andy & bwkaz), As i'm a total newbie, this encourages me greatly to dig deeper into the linux world.

Once again, thank you !

see you :-)
thunderbyte is offline   Reply With Quote
Old 11-14-02, 07:30 AM   #10
Per
Guest
 
Posts: n/a
Default Debian kernel source ?

I have a question about the Debian kernel sources.

I have installed the package 'kernel-source-2.4.18', which I belive is the source for the supplied kernel.

A 'uname -a' says '2.4.18-bf2.4' which is different from the source name. Is that a problem ?

I have configured and made a 'make dep' on the source but I still get the problem with unresolved symbols.

The question is therefore if I am using the correct source. Does anybody have a hint ?

/Per
  Reply With Quote
Old 11-14-02, 10:10 AM   #11
Per
Guest
 
Posts: n/a
Smile Compiled kernel solved problem

Ok I have an Xserver with the nvidia loaded.

Procedure:
--------------
1. Compile new kernel and modules from the source mentioned in abot posting.

2. Install kernel and modules. The modules are installed in /lib/modules/2.4.18. This means you can safely try it out and still have your default Debian installation in place.

3. Reboot into compiled kernel

4. Make the kernel module, it loads without symbol errors

5. Make the driver

6. startx and enjoy.

/Per
  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
Hengeveld: Big Data Meets HPC to Solve Hard Problems and Improve Lives News Archived News Items 0 09-10-12 09:10 AM
problems with drivers after 295.40 (OpenSuSE 12.1, GeFroce 7900 GS, Phenom II X4) alawa NVIDIA Linux 0 06-09-12 06:37 PM
RPM Source problems LaoTzuTao NVIDIA Linux 10 01-19-03 05:15 AM
Problems with drivers fforw NVIDIA Linux 7 10-11-02 07:06 PM
Installing nForce drivers on Debian 3.0 Doink NVIDIA Linux 4 09-14-02 08:34 PM

All times are GMT -5. The time now is 04:47 AM.


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