LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-04-2003, 08:55 AM   #1
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Rep: Reputation: 15
install NVIDIA drivers


hi friends!

i know this is a common thread and i can find many information on the web. I ve readen several articles, however i cannot find the solution.

i ve followed these steps (i ve got a debian 3.0 woody):
- download the NVIDIA-Linux-x86-1.0-4363.run file from the Nvidia FTP server.
- run this file: #sh NVIDIA-Linux-x86-1.0-4363.run
- The nvidia installer need to compile a new kernel interface
- It cannot load the kernel module "nvidia.o" because the kernel module was built using the wrong kernel header files.
- I ve got installed the 2.4.21 kernel in /usr/src/linux, so i specify the kernel include path with the --kernel-include-path option:
#sh NVIDIA-Linux-x86-1.0-4363.run --kernel-include-path=/usr/src/linux/include
but nvidia-installer doesnt run well.
In the /var/log/nvidia-installer.log file appear this:
kernel module load error: Warning: loading ./usr/src/nv/nvidia.o will taint the kernel: non- GPL license - NVIDIA
./usr/src/nv/nvidia.o : init_module: no such device
Hint: insmod errors can be caused by incorrect modules parameters, including invalid IO or IRQ parameters.
(i dont understand this errors very well)
What have i done wrong?what must i do?
I ve downloaded the kernel-headers-2.4.21 too, but ..is there any difference with the headers contained in the linux-2.4.21.tar file?
Thanks for all and sorry for my poor english!
bye.
 
Old 07-04-2003, 09:06 AM   #2
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
You are using debian? Then it is really simple
apt-get install nvidia-kernel-src nvidia-glx-src kernel-pkg wget

cd /usr/src/linux
make-kpkg modules_image

cd /usr/src
dpkg -i nvidia-kernel..........deb

cd /usr/src/nvidia-glx
dpkg-buildpackage -us -uc

cd /usr/src
dpkg -i nvidia-glx.......deb

I made it always this way and this way you also can compile your kernel --
cd /usr/src/linux
make menuconfig
make dep
make clean
make-kpkg kernel_image

cd /usr/src
dpkg -i kernel-image.......

I hope this helps you it more simple than the normal way. it is the debian way
 
Old 07-04-2003, 09:07 AM   #3
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
snu

forgot to say that i would compile a new kernel before kompiling the nvidia-src
 
Old 07-04-2003, 09:36 AM   #4
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
ok, i understand it
but what sources must i include in the /etc/apt/sources.list?
thanks
 
Old 07-04-2003, 03:39 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: install NVIDIA drivers

Quote:
Originally posted by serji
]hi friends!

i know this is a common thread and i can find many information on the web. I ve readen several articles, however i cannot find the solution.

i ve followed these steps (i ve got a debian 3.0 woody):
- download the NVIDIA-Linux-x86-1.0-4363.run file from the Nvidia FTP server.
- run this file: #sh NVIDIA-Linux-x86-1.0-4363.run
- The nvidia installer need to compile a new kernel interface
- It cannot load the kernel module "nvidia.o" because the kernel module was built using the wrong kernel header files.
- I ve got installed the 2.4.21 kernel in /usr/src/linux, so i specify the kernel include path with the --kernel-include-path option:
#sh NVIDIA-Linux-x86-1.0-4363.run --kernel-include-path=/usr/src/linux/include
but nvidia-installer doesnt run well.
In the /var/log/nvidia-installer.log file appear this:
kernel module load error: Warning: loading ./usr/src/nv/nvidia.o will taint the kernel: non- GPL license - NVIDIA
./usr/src/nv/nvidia.o : init_module: no such device
Hint: insmod errors can be caused by incorrect modules parameters, including invalid IO or IRQ parameters.
(i dont understand this errors very well)
What have i done wrong?what must i do?
The /usr/src/linux is usually a symbolic link to the actual kernel source directory what does ls -l /usr/src/linux tell you does it actually point to the proper directory not the previous kernel you have installed. When I did this a couple of weeks ago I had a similar error because I had moved the source directory to compile a testing kernel and had forgot to move the directory back and recreate the link properly. Also I did not have to specify a path to the kernel it worked properly after I used the correct version of gcc to check which gcc you used to compile the kernel with dmesg | grep "Linux version" to see your default gcc ls -l /usr/bin/gcc I had to export CC=/usr/bin/gcc-2.95 before running the nvidia to use gcc 2.95 which I had compiled the kernel with. Also with the --kernel-include-path you could need a path of /usr/src/linux-2.4.21 this way it will point to the actual directory not the symbolic link it's worth a try anyway.
Quote:
I ve downloaded the kernel-headers-2.4.21 too, but ..is there any difference with the headers contained in the linux-2.4.21.tar file?
Thanks for all and sorry for my poor english!
bye.
From the naming of the kernel source file I would presume that you got it from the kernel.org and not a Debian repository did you get the headers you downloaded from Debian if so the version will be different and would include patches for Debian the ones already included in the tarball should be used.
 
Old 07-06-2003, 03:27 AM   #6
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
hi

thanks to snu and HappyTux. i ve already install the nvidia drivers as you said me and i ve configured the /etc/X11/XF86Config-4 file too. now, i have got a problem with insmod. i ve put a new thread about this in the general forum.

i hope anybody can help me

Ahh! in response to my own answer, you can apt-get the nvidia-kernel-src and nvidia-glx-src from several FTP servers. In my case i ve added the next line to the /etc/apt/sources-list (itīs only an example):

deb ftp://ftp.ie.debian.org/debian stable contrib

bye.

Last edited by serji; 07-07-2003 at 01:29 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA drivers doesn't install crud Slackware 1 03-08-2005 08:41 PM
Can't install nvidia drivers.. porrblomman Linux - Newbie 1 12-20-2004 11:59 AM
Getting out of X to install nvidia drivers r3dhatter Debian 12 05-09-2004 08:19 PM
Yes i was able to install the NVIDIA drivers! Tyir General 9 10-11-2003 09:45 PM
How do I install NVIDIA Drivers? RedHatMN Slackware 2 03-22-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:33 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
Open Source Consulting | Domain Registration