RH9, NVidia driver problem

Place to discuss Fedora and/or Red Hat

RH9, NVidia driver problem

Postby dishawjp » Fri May 09, 2003 3:16 pm

Hi All,

I've been working on setting up my new RH9 install today, and most things have gone pretty well. I am having trouble getting the NVidia kernel to install. I went to nvidia.com, downloaded and ran NVchooser, which told me which files I would need. I downloaded and then tried to run "rpmbuild --rebuild NVIDIA_kernel-1.0-4191.src.rpm" but it closed out with a bunch of errors:

==============output from command=========================

[root@eunix rpms]# 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.47787
+ 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.47787
+ 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.2
++ awk -F . '{print $1;}'
++ echo 4.2
+ RPMMAJOR=4
++ echo 4.2
++ awk -F . '{print $2;}'
+ RPMMINOR=2
++ echo 4.2
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 2 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.47787: line 35: [: too many arguments
+ make nvidia.o
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.20-6/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-6/build/include/linux/vmalloc.h:8,
from nv-linux.h:64,
from nv.c:14:
/lib/modules/2.4.20-6/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-6/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1282: warning: passing arg 1 of `remap_page_range_Reaac7bd2' makes pointer
from integer without a cast
nv.c:1282: incompatible type for argument 4 of `remap_page_range_Reaac7bd2'
nv.c:1282: too few arguments to function `remap_page_range_Reaac7bd2'
nv.c:1301: warning: passing arg 1 of `remap_page_range_Reaac7bd2' makes pointer
from integer without a cast
nv.c:1301: incompatible type for argument 4 of `remap_page_range_Reaac7bd2'
nv.c:1301: too few arguments to function `remap_page_range_Reaac7bd2'
nv.c:1387: warning: passing arg 1 of `remap_page_range_Reaac7bd2' makes pointer
from integer without a cast
nv.c:1387: incompatible type for argument 4 of `remap_page_range_Reaac7bd2'
nv.c:1387: too few arguments to function `remap_page_range_Reaac7bd2'
nv.c: In function `nv_get_phys_address':
nv.c:2250: warning: implicit declaration of function `pte_offset'
nv.c:2250: invalid type argument of `unary *'
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.65514
+ 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.20-6
+ TARGET_KERNEL=2.4.20-6
+ '[' -d /lib/modules/2.4.20-6/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.20-6/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-6/kernel/drivers/video+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-6/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.65514 (%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
group buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.65514 (%install)

=====================end of output from command==============


Does anyone know what went wrong here and how I can go about fixing it? As always, TIA for your assistance. Also, what is "buildmeister"? Is it something that I should have installed when I installed RH9?

Jim
dishawjp
administrator
administrator
 
Posts: 334
Joined: Thu Jan 23, 2003 9:05 am
Location: Central NY

Postby Void Main » Fri May 09, 2003 3:38 pm

Hmmm, nVidia has a new driver installer now so you don't need to download nvchooser or any of the other files separately. Their new driver installation does everything for you. The file you want should have a *.run extension. That driver you are installing is an older one. The current version is 4363:

http://www.nvidia.com/view.asp?IO=linux ... 2_1.0-4363

I also notice you are running kernel 2.4.20-6. Where did that one come from? The one that should have come with RH9 is 2.4.20-8.

Look on your Red Hat disc 1 in /mnt/cdrom/RedHat/RPMS you should have several kernel-2.4.20-8 RPMs. I would install the one appropriate for your hardware using the "rpm -ivh kernel-2.4.20-8.blah.rpm" command. Do not use the "-Uvh" param when installing the kernel or it will remove your other kernel and if you have a problem with the new kernel you will be somewhat screwed (well not really but it will be a PITA). An "-ivh" will install the new kernel along side the other one and allow you to boot either one. Once you are sure the new kernel works make it the default, then install your nVidia driver.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby dishawjp » Fri May 09, 2003 5:31 pm

Thanks again Voidmain,

I've downloaded the proper file, but haven't tried to install it yet. Since it affects Xwindows, I assume that it would be good practice to drop back to text mode before running it.

I also notice you are running kernel 2.4.20-6. Where did that one come from? The one that should have come with RH9 is 2.4.20-8.


I dunno... , I never claimed to be the sharpest knife in the drawer... that's what yesterday's install put there :-) It came off the RH CD's that were in the box I bought. I'll change it before installing the driver.

I've never messed with a kernel change before though. Will I lose what I've already done with RH9? I downloaded 57 MB of dist-upgrades with apt-get today... with a dialup connection. It wasn't pretty. All those things will still be there if I boot to the new kernel, won't they? Also, would the 3D accelleration only happen on the new kernel? Not that it would matter much since I'd probably blow away the old kernel or at least edit grub.conf so I wouldn't have to see it if the install were successful.

Thanks again for all your help. I've been using Linux for 9 months now and still feel like a hopeless newbie most of the time. :oops:

Jim [/quote]
dishawjp
administrator
administrator
 
Posts: 334
Joined: Thu Jan 23, 2003 9:05 am
Location: Central NY

Postby Void Main » Fri May 09, 2003 6:14 pm

dishawjp wrote:Thanks again Voidmain,

I've downloaded the proper file, but haven't tried to install it yet. Since it affects Xwindows, I assume that it would be good practice to drop back to text mode before running it.


Yes, you must not have X running in order to install the driver (init 3).

I also notice you are running kernel 2.4.20-6. Where did that one come from? The one that should have come with RH9 is 2.4.20-8.


I dunno... , I never claimed to be the sharpest knife in the drawer... that's what yesterday's install put there :-) It came off the RH CD's that were in the box I bought. I'll change it before installing the driver.


If that is what is on your RH9 CD then I would stick with the one you have, however if they one on your CD is really 2.4.20-8 then install it. I thought maybe you had 2.4.20-6 left over from an RH8 install and the upgrade didn't replace it. It just strikes me as extremely odd that they would have two different releases of RH9. I have never seen them do this in the past (but then maybe I just missed it). My download copy came with 2.4.20-8.

I've never messed with a kernel change before though. Will I lose what I've already done with RH9? I downloaded 57 MB of dist-upgrades with apt-get today... with a dialup connection. It wasn't pretty. All those things will still be there if I boot to the new kernel, won't they? Also, would the 3D accelleration only happen on the new kernel? Not that it would matter much since I'd probably blow away the old kernel or at least edit grub.conf so I wouldn't have to see it if the install were successful.


As I mentioned stick with 2.4.20-6 if that is what is on your CD. One thing to remember that if you have 2.4.20-6 installed and install your nVidia drivers, then later upgrade to another kernel you will have to reinstall the driver under the new kernel. X will not work under the new kernel until you either reinstall the nVidia driver with the new kernel booted or change your XF86Config back to "nv". Since you won't be upgrading your kernel you shouldn't have to worry about that.

Thanks again for all your help. I've been using Linux for 9 months now and still feel like a hopeless newbie most of the time. :oops:


Sorry to hear that. Do you use it exclusively? Hopefully you'll catch on soon, usually it all happens in a big rush and you'll know when things are clicking...
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby dishawjp » Fri May 09, 2003 9:46 pm

Thanks VoidMain,

I did check the CD's and the only kernel available was the one I installed. I did download and install the NVIDIA-Linux-x86-1.0-4363.run driver, and everything seems to be working perfectly. I guess if my kernel is a bit old... well, so am I :-) Maybe Red Hat releases retail versions that are somewhat behind those available for download, but with a dialup connection, downloading ISO's isn't all that practical.

Thanks again for all your help. I've been using Linux for 9 months now and still feel like a hopeless newbie most of the time. :oops:


Sorry to hear that. Do you use it exclusively? Hopefully you'll catch on soon, usually it all happens in a big rush and you'll know when things are clicking...


When it comes to GUI's I'll always be a newbie. I find them to be pretty but clumsy and I avoid them whenever possible. I do get frustrated when I am dealing with an inherently logical OS like Linux and have problems, but I do recognize that the problem is mine and not the OS's. I have two jobs, I am a full-time college administrator and a part-time NYS judge and have to use Windows at both of my jobs. At home I use almost exclusively Linux now, but do have one Win98 box that I use for some games and to do my taxes. I probably boot my Win98 box twice a month, but have to use Windows computers just about every day for work.

Anyway, thanks again for all your help. My RH9 install is up and running well. And, with your continued support, I should be relatively proficient with Linux before too much longer.

Jim
dishawjp
administrator
administrator
 
Posts: 334
Joined: Thu Jan 23, 2003 9:05 am
Location: Central NY

Postby Void Main » Sat May 10, 2003 7:49 am

A judge huh? I might have run into you before on the opposite end. (kidding) :) Actually my sister and her husband both are attorneys but I doubt they could even spell Linux, but I know they can spell AOL. :)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby dishawjp » Mon May 12, 2003 7:22 pm

A judge huh? I might have run into you before on the opposite end. (kidding) :)


Yeah, I've been a judge since 1984, though I'm considering letting it go once my daughters get finished with college. It's a lot of work for not a lot of pay. One of the main reasons I still keep it up is that a lot of my students end up doing internships in my courts (I actually hold two separate judicial positions) which I find rewarding and which helps them out. One of my former students and interns is now a high-powered attorney in Las Vegas. Others practice law more locally.

I got into it because in my younger days I spent so many days and evenings standing in front of judges that I finally figured out that it would be much nicer to be sitting in the nice comfy chair wearing the black robe and getting paid to be there than standing up in front of those guys and paying for the privilege of being there. :-)

Jim
dishawjp
administrator
administrator
 
Posts: 334
Joined: Thu Jan 23, 2003 9:05 am
Location: Central NY


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 1 guest

cron