View Full Version : Mandrake 9 and nVidia
Pages :
[
1]
2
3
4
5
6
7
8
9
10
11
hurrrtin
10-09-02, 09:59 PM
Im sorry... I am a noob to Linux, and I have read tech stuff after tech stuff. I am NOT a novice to CLI, so if some one can be brief, but exact on how to compile the nVidia Drivers on Mandrake 9.0, assuming I dont have any packages installed;
OR
Any advice or direction on where to go to get drivers for 9.0, I appreciate it much.
search through this forum, that'll help.
but in short:
install kernel sources, after that download the glx and kernel-driver form the nvidia driver page,
untar them cd to the newly built directories and issue "make"
cheers
ps: the kernel-sources are on CD #3
The 2 files you will need from the nVidia site are:
NVIDIA_kernel-1.0-3123.tar.gz
and
NVIDIA_GLX-1.0-3123.tar.gz
And once youve installed the kernal sources.
now open a root console and goto where you have downloaded your NVidia tar files and type in the following: (without the $ obviously! hehe)
$ tar xvzf NVIDIA_kernel.tar.gz
$ tar xvzf NVIDIA_GLX.tar.gz
$ cd NVIDIA_kernel
$ make install
$ cd ../NVIDIA_GLX
$ make install
Once thats done, check your XF86Config-4 file (from your root console type in: kedit /etc/X11/XF86Config-4)
and change the following:
Driver "nv"
to:
Driver "nvidia"
n the Module section, make sure you have:
Load "glx"
You should also remove the following lines:
Load "dri"
Load "GLcore"
Save the file (hope you was in root mode! hehe...)
then restart your X server and you should see the nVidia screen pop up etc! and VIOLA! acceleration is yours!
It worked for me, so it should work for anyone! :D
I found that it actually worked quite well for me using the RPM method...
1) Dowload the following files:
NVIDIA_GLX-1.0-3123.i386.rpm
NVIDIA_kernel-1.0-3123.src.rpm
2) Issue the following commands (as root, of course)
$ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm
$ rpm -ivh /usr/src/RPM/RPMS/i386/NVIDIA_kernel-1.0-3123.i386.rpm (I think that's the right directory)
$ rpm -ivh NVIDIA_GLX.i386.rpm
Then modify your XF86Config-4 as in the previous post. It worked great on my system! Now if I could just get that Linksys Wireless USB adapter to work... :)
Cheers,
JND
m.watkins
10-10-02, 01:30 PM
I tried the rpm method and when I tried
$rpm -ivh NVIDIA_GLX.i386.rpm
I had an error of
error: failed dependencies
NVIDIA_kernel is needed by NVIDIA_GLX.i386.rpm
Can anyone help out with a solution?
Many thanks
Mark Watkins
danocars
10-10-02, 01:31 PM
Could someone that is running Mandrake 9.0 please upload / link to their NVIDIA_Kernel RPM that they build using the src.rpm file.
I am having the worst luck getting the file to rebuild it ends crashing and outputs a core dump thing.
I then tried the tar file and I unpack it and get a nv.c file and an error message and then I run "make install" and it outputs a variety of error messages.
The Mandrake kernel sources are installed so that is not the problem, I'm stuck and I want to play Unreal Tournament 2003!
Please help, it will only take you a second to do it.
Thanks,:confused:
Webgraph
10-10-02, 02:44 PM
No need for the Mandrake 9,0 RPM's. Just download the tarballs and install them, like in Mark_J's post. Also, follow his method with the XF86Config file. But if the X server doesn't load up automatically, type the following commands after logging in as root:
#cd /usr/X11R6/lib
#ln -s /usr/lib/libGL.so libGL.so.1.2 && ln -s libGL.so.1.2 libGL.so
#/sbin/ldconfig
#reboot
This will reboot your system and the X server login should be displayed. I had that problem, but fixed er thanks to the helpful peeps in here! :)
Originally posted by m.watkins
I tried the rpm method and when I tried
$rpm -ivh NVIDIA_GLX.i386.rpm
I had an error of
error: failed dependencies
NVIDIA_kernel is needed by NVIDIA_GLX.i386.rpm
Can anyone help out with a solution?
Many thanks
Mark Watkins
Did you rpm install the NVIDIA_kernel file first? You need to do that before you can do the GLX file...see my post above yours for the order. If you DID do that, what were the errors you got when installing the kernel (since that's the only way GLX should fail)...?
Cheers,
JND
Originally posted by danocars
I then tried the tar file and I unpack it and get a nv.c file and an error message and then I run "make install" and it outputs a variety of error messages.Did you get an error trying to unpack the .tar.gz file? What was it?
Post the errors you were getting, it will help a lot.
bofh1971
10-10-02, 05:47 PM
I did the install from tarballs just last night.
firstly I checked that the Kernel headers were installed (looked in kpackage and went down the list)
then I quit x-windows and went to prompt
logged in as root
went to the dir where I had downloaded the files
then did
tar -zxf NVIDIA_kernel.......
then
tar -zxf NVIDIA_GLX....
glx is to be done second for dependancies
cd to folder created NVIDIA_kernel....
make install
then cd to other folder
NVIDIA_GLX....
and I could only run make there
make install errored out
make seemed to work fine and I now have nvidia drivers running
also earlier in the post the changes for enabling glx and nv to nvidia are to be done for this to work
hope that helped
BOFH1971
IsudaMorg
10-10-02, 06:34 PM
i tried both, the tar and rpm method.
tar: make install on kernel sais something 'bout a wrong compiler version and suggests me to override that check by setting "IGNORE_CC_SOMEWHAT"
rpm:
nothing happens with the kernel.i386.rpm. it displays 100% progress without any error messages, but if i try to install the GLX
i get the same error:
$rpm -ivh NVIDIA_GLX.i386.rpm
error: failed dependencies
NVIDIA_kernel is needed by NVIDIA_GLX.i386.rpm
if i try "$ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm" it complains about a non existing directory (i don't remember which one)
really frustrating thing...i'm completely new to linux, and have no clue about where to look for the solutions. i'd be glad if someone could help me out here.
hyperclock
10-11-02, 05:02 AM
If you can't make the rpm or know how -------- I can mail it.
hyperclock@netscape.net
bofh1971
10-11-02, 06:28 AM
Yeah I originally tried the rpm's
but the problem I got is that they are for an older version of mandrake, and the systems coudnt insmod the driver, hence the failure on dependencies, as the driver wasnt loaded.
BOFH1971
jthompson7051
10-11-02, 07:12 AM
Well Been there done exaclly what you have, It took me 2 days getting it to work.
First step, open Mandrake Control, Goto Install Software, In the search type in kernel, It should pop up kernel source as a package to install. If not they are installed. It will ask for CD 3.
Second, D/L the tar.gz files. Both the Kernel and the GLX tar, For some reason mix matching a tar install of the Kernel and an RPM install of the GLX doesn't work.
3rd do as the others have said.
$tar xvzf NVIDIA_kernel.tar.gz
$ tar xvzf NVIDIA_GLX.tar.gz
$ cd NVIDIA_kernel
$ make install
$ cd ../NVIDIA_GLX
$ make install
4th.. Edit the config file listed in the read me file and reboot.
Lastly and this is usually personal prefrence, but I always log into the system as ROOT and do this install. For some reason I was getting the same errors you were when trying to do this in a terminal with root access. I just said screw it and logged into the system as root and had no problems.
Originally posted by bofh1971
Yeah I originally tried the rpm's
but the problem I got is that they are for an older version of mandrake, and the systems coudnt insmod the driver, hence the failure on dependencies, as the driver wasnt loaded.
BOFH1971
You have to download the source RPM for the kernel module. See my previous post...there's two rpm commands that you run on the kernel (one on the source package, one on the generated binary package), and one rpm command you run on the GLX package...
Peace,
JND
danocars
10-12-02, 02:05 AM
Originally posted by bwkaz
Did you get an error trying to unpack the .tar.gz file? What was it?
Post the errors you were getting, it will help a lot.
OK Here Is A Little Log File I Made, What the heck is going on here:
[root@mandana Mandrake 9.0]# ls
NVIDIA_GLX-1.0-3123.i386.rpm* NVIDIA_kernel-1.0-3123.tar.gz*
NVIDIA_kernel-1.0-3123.src.rpm*
[root@mandana Mandrake 9.0]# tar xvzf NVIDIA_kernel-1.0-3123.tar.gz
NVIDIA_kernel-1.0-3123/
NVIDIA_kernel-1.0-3123/nv.c
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
[root@mandana Mandrake 9.0]# rpmbuild --rebuild NVIDIA_kernel-1.0-3123.src.rpm
Installing NVIDIA_kernel-1.0-3123.src.rpm
Segmentation fault (core dumped)
[root@mandana Mandrake 9.0]# ls
core.2365 NVIDIA_kernel-1.0-3123.src.rpm*
NVIDIA_GLX-1.0-3123.i386.rpm* NVIDIA_kernel-1.0-3123.tar.gz*
NVIDIA_kernel-1.0-3123/
[root@mandana Mandrake 9.0]# cd NVIDIA_kernel-1.0-3123
[root@mandana NVIDIA_kernel-1.0-3123]# ls
nv.c*
[root@mandana NVIDIA_kernel-1.0-3123]# make install
make: *** No rule to make target `install'. Stop.
If you run md5sum on the files you downloaded, does the output match the md5sums that are posted on the download page?
md5sum *.tar.gz *.rpm is the type of thing to try.
My guess is the download got corrupted somehow... did you get these off the main server, or one of the FTP mirrors? If an FTP mirror, did you download in binary mode? The main server is HTTP, so mode shouldn't matter if you got it from there.
Thanx you Mark_J after having installed redhat 8 and had an effortless nvidia build ,I then decided for other reasons that I prefered Mandrake,I just couldnt get the drivers installed according to Nvidia installation guide so I checked the forum tried a few different install methods loaded all the development tools etc to no avail followed Mark_J s simple tut and as he says viola sorted :)
NIce one m8
ok here goes. Does any of this stuff apply to nforce? and if someone has already installed the nForce drivers on mandrake 9 could you send me the compiled files if poss. I am really new to linux but I want to learn it. I think it would be easier if I could access the web from that system at home but without the drivers I am lost. any help would be appreciated.
I really have no idea, as I've never so much as looked at an nForce motherboard or the drivers for a motherboard that uses that chipset.
thanks for letting me know someone saw it!!
If I figure it out on my own I will let you all know, but if any help or advice could be given that would be great.
Andy Mecham
10-16-02, 05:13 PM
Installation for the nForce drivers is similar to installation of the video drivers - if there isn't a binary RPM, you should download either the SRPM or source tarball and rebuild according to the README.
--andy
Andy I tried this they do not work.
I get multiple errors with both the rpm and the tar file. I don't have a clue what is going on and I would like some help please.
I tried the rpm first and it gave me 2 errors and exited out while it was trying to go thru the netnv process. so when I tried the tar file it had more errors than I can count and also exited without a hint of what I can do to fix this. I am very new to linux and I would really like to run this system. I have been beating my head against the wall for a week I found your forum and decided to try here as well. Has no one done this??
Andy Mecham
10-16-02, 08:55 PM
Can you post the errors you're seeing? I can help with your specific problem if I can see your errors.
A few quick things to check:
1) Make sure you have your kernel-source package installed. If the command 'rpm -qa | grep kernel-source' comes back with no output, then you'll need to install it. I believe that Mandrake 9.0 put the kernel-source RPM on the third CD.
2) Make sure that the files you've downloaded aren't corrupt. You can check this by running 'md5sum filename' and comparing it to the ones posted on http://www.nvidia.com/view.asp?IO=linux_nforce_1.0-0241.
Thanks!
--andy
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.