LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2003, 08:45 PM   #1
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware 10
Posts: 325

Rep: Reputation: 30
downloaded an nvidia driver for kernel 2.4.18-18.. im using 2.4.18-14...will it work?


downloaded an nvidia driver for kernel 2.4.18-18.. im using 2.4.18-14...will it work?
 
Old 03-14-2003, 08:51 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Probably not, if you can't get an nvidia driver that matches your kernel version then you need to build it against your kernel from the .tar.gz package, the instructions are in the README file that you can get from the download page or from the GLX package.
 
Old 03-14-2003, 09:54 PM   #3
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Use the source tarballs. They're super easy to compile and isntall as long as you have the kernel headers. I could never get the RPM files for work.

Good Luck
 
Old 03-15-2003, 03:50 AM   #4
r0dr0ddy
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
Hi;
OK, so I:
1) Downloaded the rpm files and tried to install the kernel and GLX from those, got as far as the "make install" command and got 1500 lines of errors when executed, and
2) Downloaded the source tarball files and followed the instructions in the README file to create my own version for my kernel, as mentioned by Aussie above, and got 1500 lines of errors when I tried to do that. (rpmbuild --rebuild NVIDIA_kernel-1.0-4191.src.rpm).
My kernel version is 2.4.18-14.
I've been trying to get the nvidia drivers to install for 3 days now and I'm not getting anywhere, and am at my wits end. Any suggestions are appreciated!
 
Old 03-15-2003, 04:07 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
And error messages are appreciated by us :-P
 
Old 03-15-2003, 04:29 AM   #6
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Don't use anything rpm. Use source.tar.gz.

tar -xzvf kernel.tar.gz
make install
tar -xzvf GLX.tar.gz
make install

There is NO ./configure, make, make install. Just make install.

If you're missing the kernel headers, get them from Red Hat Network and let them install it for you. With 1500 errors it sounds like that is what's missing.

Good Luck
 
Old 03-15-2003, 04:29 AM   #7
r0dr0ddy
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
Error messages, right... sorry, I thought 1500 lines would clutter the board so I picked the top and bottom of the output:
[root@localhost root]# rpmbuild --rebuild NVIDIA_kernel-1.0-4191.src.rpm
Installing NVIDIA_kernel-1.0-4191.src.rpm
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.72499
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-4191
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-4191.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-4191
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.93545
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.1
++ echo 4.1
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.1
++ awk -F . '{print $2;}'
+ RPMMINOR=1
++ echo 4.1
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 1 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.93545: line 34: [: too many arguments
+ make nvidia.o
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
________________________
insert 1500 lines of junk here
---------------------------------
nv.c: In function `nv_start_rc_timer':
nv.c:2789: `nvl' undeclared (first use in this function)
nv.c:2789: parse error before ')' token
nv.c:2799: `jiffies' undeclared (first use in this function)
nv.c: In function `nv_stop_rc_timer':
nv.c:2810: `nvl' undeclared (first use in this function)
nv.c:2810: parse error before ')' token
nv-linux.h: At top level:
nv-linux.h:280: storage size of `rc_timer' isn't known
nv.c:144: storage size of `nv_fops' isn't known
nv.c:1027: storage size of `nv_vm_ops' isn't known
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.36267
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.18-14
+ TARGET_KERNEL=2.4.18-14
+ '[' -d /lib/modules/2.4.18-14/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-14/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-14/kernel/drivers/video
+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-14/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.36267 (%install)


RPM build errors:
user buildmeister does not exist - using root
group buildmeister does not exist - using root
user buildmeister does not exist - using root
error: Bad exit status from /var/tmp/rpm-tmp.36267 (%install)

End of output.
If you want the entire output I could email it, it's a pretty big file. One thing I did notice is that the main body of the output was virtually identical for both the "make install" and the "rpmbuild" commands.
Thanks for any assistance!
 
Old 03-15-2003, 07:37 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Throw away the rpm's and get the tar.gz packages.
 
Old 03-15-2003, 12:11 PM   #9
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Rep: Reputation: 15
You got kernel header files installed? Try it, and use tar.gz's, Source RPMS are pretty fiddly little blighters to use effectively, although easier to uninstall.
 
Old 03-15-2003, 01:29 PM   #10
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
If you decide to use the source tarballs you will have to make the kernel file first. When you do make the kernel you will have to use this instead of make

make SYSINCLUDE=/lib/modules/2.4.18-14/build/include/linux

make install

Then make the GLX as per instructions in previous threads.

Also make sure to change your XF86Config file as follows

Driver "vesa" to Driver "nvidia"

Uncomment Load "glx"

Ensure these aren't in your XF86Config file

Load "dri"
Load "GLcore"

Hope this helps some
 
Old 03-15-2003, 04:58 PM   #11
r0dr0ddy
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
Gee whiz, folks. Lots of great help here. Thanks!
When I extracted and installed the rpm files, they contained the tar.gz files you mention. My question is: Why would there be a difference between the tar.gz files extracted from the rpm compared to the tar.gz file direct? It seems logical to assume the files would be identical- but that's just 15 years of DOS experience talking.
I'll download the stand-alone tar.gz files tonight and post any results.
And another question, the kernel headers have been mentioned a couple times here. I seem not to be able to find any kernel-headers updates for version 8.0 from the Redhat website. I am under the impression that the kernel headers were from older versions of RH Linux. Am I wrong?
Once again, thanks to all who help!
 
Old 03-15-2003, 06:17 PM   #12
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
The headers are contained in the package:

kernel-source-2.4.18-14.i386.rpm

Located on your Red Hat install cd or can be downloaded.

This is for an intel based PC.
 
Old 03-16-2003, 04:20 AM   #13
r0dr0ddy
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
OK... downloaded and successfully extracted the tar.gz files. I still get about 1000 lines of errors and warnings when I try to "make SYSINCLUDE" with the nvidia kernel. Upon further review of the output, it looks like the nvidia scripts are looking for "xxxxx.h" libraries that don't exist on my system.
I tried to search for kernel-source-2.4.18-14.i386.rpm installed on my machine but the package management utility crashes. So much for that. I ran "rpm -qa" and sure enough the kernel-source rpm was not there.
"make install" from the GLX nvidia directory went smoothly. When I made the changes to the XF86Config file, XWindows couldn't boot, and gave the error of not finding the nvidia kernel. D'oh!
My thinking now is that since I don't have the kernel-source rpm installed, the nvidia kernel cannot set itself up. I plan on installing it from the Redhat install CD.
That leaves the problem of figuring out why the heck the package management utility crashes... a topic for a different forum.
I'll report back with the results tomorrow. Thanks for the help.
 
Old 03-16-2003, 02:30 PM   #14
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Ok... well try this. Run the RedHat package config system.

$bash:/redhat-config-packages

Scroll throught the list of packages until you find the kernel development section. Install everything in that section. RH will ask you for CD X (insert CD number for X) and everything should be installed.

Hopefully if you type rpm -qa | grep kernel you should get something like kernel-source-2.4.18-14. If that shows up I think you might be good to go.

Crap... I just re-read that your package management tool crashed. Try searching on RH page or rpmfind. Someone will have the package that comes from the CD. If that doesn't work try searching the CD's.

Last edited by rmartine; 03-16-2003 at 02:32 PM.
 
Old 03-16-2003, 05:37 PM   #15
r0dr0ddy
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
After about a week of messing with the darn rpm's and tarballs, I can proudly say: SUCCESS!!!

Thanks especially to rmartine, JayCnrs, viciousfish, and Aussie for the excellent help! A rundown of the problems and what was done to correct them:

1) Nvidia graphics card drivers are only available directly from the nvidia website. Finding out the version I needed was a daunting task, and I initially installed the wrong rpm files for my kernel version and distributor (hey, it was my first night working with Linux, give me a break).

2) I was instructed to download the Source tarballs, not the kernel specific rpms. I downloaded the source rpms instead and got massive amounts of errors when I ran them.

3) I downloaded the tarballs in tar.gz format, not rpm format, and extracted the files correctly. However, the "make install" commands just gave me hundreds of lines of warnings and errors. Traced the problem to the nvidia scripts looking for .h files that didn't exist on my system.

4) Following recommendation, I searched for the kernel-source rpm installed on my system, for it contains the kernel headers which in turn contains the missing .h files the nvidia kernel needs. As it so happened, I did not have the kernel-source rpm installed on my system. Obtained the Redhat install CDs and found the rpm and installed it. A new problem arose: my package management utility "redhat-config-packages" was corrupted and crashed upon opening. Stuck to the command-line rpm interface and properly installed the kernel-source rpm.

5) Recompiled the nvidia kernel by utilizing the "make SYSINCLUDE" line, and then "make install" line. The kernel installed with a warning, but did so successfully.

6) I recompiled the nvidia GLX drivers with the "make install" command and those installed successfully, but with a warning.

7) Made changes (for the 10th time) to my XF86Config file per instructions posted in previous replies in this thread. Rebooted and got the nvidia splash screen. The driver was now properly installed.

New problems emerged, however. The problem with the package config utility is foremost. Also, my Ogle DVD player crashes upon start.

Overall I learned the difference between tar.gz files, rpm files, and source files. I also learned more about the rpm line commands and kernel modules.

Thanks again to all who helped!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Still not getting nvidia driver to work.. GardarS Linux - Hardware 14 06-27-2005 05:41 AM
Nvidia driver doesn't work very well Trkdz Slackware 1 05-25-2005 10:35 PM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 06:38 AM
Radeon 9700 probs/driver downloaded/kernel generator missing NBN Mandriva 18 01-15-2004 03:52 PM
NVidia driver downloaded now what demmylls Linux - General 5 10-10-2003 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration