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

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-07-03, 04:42 PM   #1
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default TNT PCI Card on a Debian woody

Hi there

I have been trying to install the nvidia drivers for the last few days but with no luck.

I tried to compile them ot of pretty old sources that I got via apt-get. After that didn't work I tried my luck with the new .run script. Again no luck.

The Card is a Diamond Viper 550 (PCI) CPU 200MHz Intel Pentium MMX Processor. Kernel 2.4.20 on debian woody.

I am pretty much a Linux newbie so please explain "everything" and be patient. ;-)

I compiled the Kernel I am currently using myself from the sources for 2.4.20 at kernel.org These sources can be found under /usr/src/linux-2.4.20 with a softlink /usr/src/linux -> /usr/src/linux-2.4.20

The attached XFree86.log is from my first try with the sources of the nvidia driver.

The problem I now have is that the .run Script can't find my kernel header files. I have tried it with sh NVIDIA-Linux-x86-1.0-4349 --kernel-path /usr/src/linux (and various others) If there is one that you think I definetly have to try please don't hesitate to tell me.

Any hints?
Attached Files
File Type: txt xfree86.0.log.txt (1.1 KB, 140 views)
mowses is offline   Reply With Quote
Old 04-08-03, 06:22 AM   #2
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

Could it be a problem with my selfcompiled kernel?
mowses is offline   Reply With Quote
Old 04-08-03, 09:40 AM   #3
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Post the installer log file, /var/log/nvidia-installer.log
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-08-03, 10:03 AM   #4
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

As you can see, the first one is without a --kernel-include-path the second with.

I just noticed that it seems to run just fine, but the nvidia.o can't be found.
Attached Files
File Type: txt nvidia-installer.log.txt (10.0 KB, 181 views)
mowses is offline   Reply With Quote
Old 04-08-03, 01:46 PM   #5
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

It finds nvidia.o, but the error is "couldn't find the kernel version the module was compiled for".

Umm... just a couple of things to try -- is the kernel source directory (/usr/src/linux-2.4.20) mrproper'ed? If not, do it, then copy the right .config file into there, and run make oldconfig dep to reconfigure the files in there (especially include/linux.version.h).

Which kernel version are you running? The install script, on the first try, thinks that you're using kernel 2.4.20200303231753, which is almost assuredly wrong, unless that's what uname -r is telling you -- is it?
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-08-03, 03:01 PM   #6
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

I did:
make mrproper I hope that is what you meant by mrproper'ed
After that I did a make oldconfig && dep which didn't work so I did a make dep afterwards because the make oldconfig seems to have worked.

I have to admit that I am really running 2.4.20200303231753 even uname -r tells me that. When I compiled my kernel I did it with make xconfig and saved the config file somewhere else. Myabe that caused the Problems?

The 2.4.20 should be obviuos, the rest is a timestamp. 2003.03.23 at 17:53h I thought that would be a pretty clever way to name my kernels, but I guess it wasn't. ;-)

After I did all that it still gives me the same mistake. :-(

Should I recompile the Kernel "the classic" way (whichever that is) and try again? I have read of so many people running the nvidia script without problems... So I guess it must have something to do with me and not the drivers...

In case it is usefull, the "new" nvidia-installer.log
Attached Files
File Type: txt nvidia-installer.log.txt (4.9 KB, 156 views)
mowses is offline   Reply With Quote
Old 04-08-03, 04:25 PM   #7
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

OK, on that error message, I've Googled around a bit for it, and found this:

http://www.sandelman.ottawa.on.ca/li.../msg00563.html

Where someone says it sounds like the kernel you're running isn't the kernel that the modules were compiled for. Is that the case?

What I do:

1) Compile a new kernel (if I have it), selecting module support, and module version info (that might be the other thing that's missing -- does your kernel have "module version info" selected?)
2) Boot to that new kernel (THIS IS IMPORTANT )
3) Then run the nVidia installer.

Edit: What version of modutils do you have? insmod -V will tell you.
__________________
Registered Linux User #219692

Last edited by bwkaz; 04-08-03 at 04:28 PM.
bwkaz is offline   Reply With Quote
Old 04-08-03, 04:50 PM   #8
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

an insmod -v gave insmod version 2.4.15

In the meantime I compiled a new Kernel with the old configfile but still the same.

My /usr/src/linux-2.4.20/.config tells me the following:
Code:
#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
I assume that means that module support and module version info are enabled.

Is it correct that I do:
Code:
make clean
make mrproper
make xconfig
make dep
make modules
make modules_install
make bzImage
in that order and without rebooting?

I am asking that because in the follow-up to the link you posted it sounds as if you have to do the make modules modules_install after the make bzImage and after rebooting.
mowses is offline   Reply With Quote

Old 04-08-03, 05:51 PM   #9
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

I usually do mrproper, menuconfig (which is the same as xconfig, just doesn't require Tk), dep, bzImage, modules, modules_install, in that order. Without rebooting.

You might want to clean out your /lib/modules/<version> directory, too. Something old might be laying around in there.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-09-03, 03:07 AM   #10
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

By cleaning out you mean a rm -Rf /lib/modules/<version> ? ;-) Just to make sure...

I'll do that and then try your way of compiling the kernel.

Does it make any difference whether I do the make stuff with X running or in the console?

And by the way, it's great that you are helping me! :-))

Update:
Your order of compiling gave me an error with the make modules_install. It said something like:
Code:
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
So now I am doing a new compiling session. And because my PC being an old Pentium 200 MMX it takes about 30min ;-)

The new round failed again while doing the make modules_install.

Mybe I should try it with the debian standard kernel...

Last edited by mowses; 04-09-03 at 05:58 AM.
mowses is offline   Reply With Quote
Old 04-09-03, 07:55 AM   #11
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Thumbs up

It worked!

I don't really know what it was but it is working! I removed the whole kernel source and /lib/modules that I didn't need. After that I unpacked the kernelsources again (same tar.bz2) and compiled a new kernel the way I compiled the old one and using the same old config file.

Then without much hope I started the NVIDIA.run script and things went quite different than before. After some time it said everything went fine and I should reconfigure my XF86Config file. That done I typed startx and experienced a big shock, because the nvidia driver could not be found. I was just about to post here when I thought of doing an insmod nvidia. The driver loaded and I gave it another try.

Tada!

X starts and I am seeing a nice Nvidia logo! Now on to the next stage of 3D...

Thank you very very much for your patience! Another happy linuxer is born and maybe my changing from win2k to debian is not so far away now.
mowses is offline   Reply With Quote
Old 04-09-03, 08:01 AM   #12
mowses
Registered User
 
Join Date: Apr 2003
Posts: 10
Default

Maybe it helped that I renamed the kernel to 2.4.20-nvidia ;-)

In case someone is interested in the log files:
Attached Files
File Type: log nvidia-installer.log (4.5 KB, 138 views)
mowses 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
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 09:49 AM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 02:44 PM
Need help to get the X to work on my Acer TravelMate 630 knchee NVIDIA Linux 16 09-19-02 11:16 PM
Riva TNT 2 - Debian (Woody) chipset problem sindra NVIDIA Linux 4 08-26-02 04:21 AM
nvidea drivers on 2.4.18 Debian (3.0 woody) thor NVIDIA Linux 2 08-20-02 03:51 PM

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


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