LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-16-2003, 02:30 AM   #1
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
Unhappy NVIDIA driver for custom kernel


Hai guys,

I have a very terrible problem. I have an Athlon XP processor and an Asus A7N266 MB with GForce AGP integrated card. I have installed NVIDIA drivers, and they work beautifully.

PROBLEM :
I have recently compiled a custom minimal kernel for my system, and tried to use the nvidia drivers. But I didn't know how to do it, and when the system booted in the custom kernel, it said that it does not recognize the AGP card, and selected the generic GForce card. So, I installed the NVIDIA drivers for this kernel. It informed me that a previous installation was found and it has uninstalled it. Now, the XWindow work in the custom kernel, but not in the default kernel. HOW can we make both the kernels use the same drivers, or atleast how to make both the kernels work with X???

Thanx for any help...
 
Old 10-16-2003, 02:45 AM   #2
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
remove old ones first

then install new ones from http://www.nvidia.com/object/linux_d..._ia32_1.0-4496 with the commmads


bash# sh NVIDIA_................run
 
Old 10-16-2003, 05:08 AM   #3
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
if you have different kernels, it is pretty inprobable, that a module (that is compiled against one of the kernels) will work for both. in some cases it will, in other it wont.

if you have problems with AGP, you obviously forgot to compile (or load) the appropriate kernel module. remake your kernel to support agpgart as a module, so your kernelimage will still be minimal but you still have full functionality. anyway, compile everything as a module and your kernel just gets smaller and smaller :-)

g

raven
 
Old 10-16-2003, 06:39 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 31
Hey guys,

I don't think you guys get my problem. The drivers work fine for the kernel they are installed, but how to install the drivers such that it works for both the default kernel and the custom-built kernel??

If I install it on the cutom kernel, then it uninstalls from the default kernel and vice versa. What do I have to do to install it on both the kernels???
 
Old 10-16-2003, 06:49 AM   #5
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
How different are your kernels? Are these 2 separate versions, or the same version with other options enabled?

If the kernel is the same version there is only 1 module library for kernel modules (just like your nvidia driver is a kernel module too) and that is /lib/modules/<kernelversion>/kernel/drivers/video/ in this case the driver is installed for "both" kernels. if it doesnt work, it is, just as I said above, because the driver was built against a kernel that is not fully -say- compatible to the other kernel. so ONE driver it will never work with 2 different kernels.

if you have 2 different kernel versions, then you have to install the drivers for both kernel versions separately: this is done by installing the driver for the first kernel, then reboot and install the driver for the custom kernel. but this only works if the kernels have differrent version!!!

you may also try to define yourself a different driver path for both kernels, but i am not sure that will ever work.

g

raven
 
Old 10-16-2003, 07:24 AM   #6
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 31
Both the kernels have different versions, and so I thought that when I install it separately, they will work fine. But the problem is that when I install the driver for the custom kernel, it says that it already found a previous install in so and so, and it will uninstall the previous install. How to turn this off???
 
Old 10-16-2003, 08:08 AM   #7
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
hmmm....

Install the drivers manually. Look at the install script what it does, and try to do it yourself.

usually you would do
make
cp nvidia.o /lib/modules/.....
depmod
modprobe nvidia

with both kernels

that should do it...

g

raven
 
Old 10-16-2003, 09:02 AM   #8
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 31
I'll try that tonight and post tommorow about the results.
 
  


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
NVidia driver trouble with custom kernel PsychosisNode Linux - Hardware 2 05-31-2005 02:18 PM
Kernel recompile with patch and custom driver Code_Zero Slackware 2 07-14-2004 10:04 PM
Nvidia driver and Kernel 2.6.3 jriis Debian 6 04-15-2004 04:00 AM
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
help!--nvidia driver for 2.6 kernel ?! oskernel Linux - Hardware 1 10-30-2003 06:34 AM


All times are GMT -5. The time now is 10:18 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