LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-20-2005, 08:16 PM   #1
MattZ
LQ Newbie
 
Registered: Aug 2003
Location: Mississauga, ON, Canada
Distribution: Debian 3.1
Posts: 8

Rep: Reputation: 0
Cannot install NVidia drivers after kernel upgrade


Hi,

I recently upgraded the kernel to 2.6.2 and I am having a rather dificult time reinstalling Nvidia drivers. I have the source and headers installed for the new kernel and also tried running the installer with the --kernel-source-path option but still a no go. Here is a copy of my log file. Any input greatly appreciated.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Aug 20 20:26:43 2005

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : true
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : /usr/src/kernel-source-2.6.8
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror :
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> You appear to be running in runlevel 1; this may cause problems. For exampl
e: some distributions that use devfs do not run the devfs daemon in runlevel
1, making it difficult for `nvidia-installer` to correctly setup the kernel
module configuration files. It is recommended that you quit installation no
w and switch to runlevel 3 (`telinit 3`) before installing.

Quit installation now? (select 'No' to continue installation) (Answer: No)
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
7667). As part of installing this driver (version: 1.0-7667), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (xxxxxxxxxxxxx)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Using the kernel source path '/usr/src/kernel-source-2.6.8' as specified by
the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/kernel-source-2.6.8'
-> Performing CC test with CC="cc".
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at.
 
Old 08-20-2005, 09:00 PM   #2
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
Why don't you try switching to runlevel 3 like the installer suggests?
 
Old 08-20-2005, 09:12 PM   #3
MattZ
LQ Newbie
 
Registered: Aug 2003
Location: Mississauga, ON, Canada
Distribution: Debian 3.1
Posts: 8

Original Poster
Rep: Reputation: 0
Good question, but for some reason init 3 doesn't seem to work. The Nvidia installer still tells me that i'm running X, so the olny way was to run in single user mode, init 1. Originally, while using kernel 2.4, i have had the same issue with init 3 but i did manage to successfully install nvidia drivers while init 1.
 
Old 08-20-2005, 09:29 PM   #4
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
Try booting to the command line rather than booting X then switching the run level. This way you can be sure that X doesn't start, and you are in runlevel 3.

How to do this:

At the grub boot menu, press 'E' to edit the boot parameters (at least I think it's E, but it tells you at the bottom of the screen, so double check).

Now, it will bring up the list of the boot commands. At the end of the line with all the initrd info, simply type: init 3

To boot from here, I think you have to just press B. Once again, the on screen instructions are right there so it shouldn't be a problem.

Then you can just login from the command line and go from there. Hopefully all goes well.
 
Old 08-21-2005, 12:12 PM   #5
MattZ
LQ Newbie
 
Registered: Aug 2003
Location: Mississauga, ON, Canada
Distribution: Debian 3.1
Posts: 8

Original Poster
Rep: Reputation: 0
Ok Maestro, I didexactly what you wrote but i still end up in X (gdm). This is how it looks in grub:

title Debian GNU/Linux, kernel 2.6.8-2-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.8-2-686 root=/dev/sda1 ro acpi=off
initrd /boot/initrd.img-2.6.8-2-686 init 3
savedefault
boot

I also tried invoking init 3 through the termial again and used runlevel to check.
rogers:/home/matthew# runlevel
2 3

So, according to that, my previous runlevel was 2 and the current one is 3 but I'm still in X session.
 
Old 08-21-2005, 12:40 PM   #6
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
Ah hell, I told you the wrong line. Put the 'init 3' on the kernel line, not the initrd line. This is what works for me, at least.

Sorry about that. Let me know if it works for you.
 
Old 08-21-2005, 12:43 PM   #7
tshontikidis
Member
 
Registered: May 2005
Distribution: Gentoo & Debian
Posts: 76

Rep: Reputation: 15
I had the same problem and those are all good ways of stoping x, but here is one of the easiest ways i have seen.

after you boot and are in your gui, switch to you terminal the good old ctrl+alt+f1

now go with (as root) init 3

after this even though you are in a command line state your window manager and x come back so then you need to kill xdm or gdm, which ever you use.

/etc/init.d/[x|g|k]dm stop

pick a letter depending on which login manager you use and that worked for me because i had the same problem.
 
Old 08-21-2005, 04:15 PM   #8
MattZ
LQ Newbie
 
Registered: Aug 2003
Location: Mississauga, ON, Canada
Distribution: Debian 3.1
Posts: 8

Original Poster
Rep: Reputation: 0
Wow, what the heck is going on..

Maestro, same results. GDM still loads on startup, even though i'm in runlevel 3

tshontikidis, here's what i get running gdm stop : rogers:/home/matthew# gdm stop
gdm already running. Aborting!

It seems odd, considering i want to shut down gdm, not start it.
 
Old 08-22-2005, 12:53 AM   #9
tshontikidis
Member
 
Registered: May 2005
Distribution: Gentoo & Debian
Posts: 76

Rep: Reputation: 15
try stoping it using the code i provided, /etc/init.d/[x|g|k]dm stop
not just, gdm stop

and after that maybe you should run: killall X

then even if you get the same message check to make sure X is down by ctrl+alt+f7
no login in screen, no X
 
Old 08-23-2005, 08:41 PM   #10
MattZ
LQ Newbie
 
Registered: Aug 2003
Location: Mississauga, ON, Canada
Distribution: Debian 3.1
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, I managed to shut it down with the killall command, but unfortunately I am back to the original problem with nvifia driver. I am still receiving the error message.
 
Old 08-23-2005, 08:58 PM   #11
corfe
Member
 
Registered: Dec 2004
Location: Washington State, USA
Distribution: Debian Sid
Posts: 128

Rep: Reputation: 16
I do this all the time with my own compiled kernel, and it just works. Make sure you have a symlink from /usr/src/linux to /usr/src/(your particular linux source folder), and make sure you stop gdm (/etc/init.d/gdm stop as root - if it doesn't work, try starting gdm then stopping it again, sometimes that fixes it). Then just run the installer, answer like you did.

I never even have to switch runlevels.

If the above doesn't seem to solve any problems for you, try this : run the installer with the "--extract-only" command line, cd into the newly created folder for the driver and get into the source directory. There are two different makefiles available to you - cp one to the name "Makefile" in the same folder and try typing "make", see what error you get. If it doesn't work, make clean, then cp the other Makefile to the name "Makefile" and try again.

If one of them does compile, try "make install". I believe that just installs the raw kernel driver and not all the required X libs - but it's a start. See if it works, if it doesn't maybe we can find out what error is going on here.

Also, what version of gcc are you using? Perhaps it doesn't work with gcc 4, or something silly like that. If you want to switch gcc versions, as root do an "rm /usr/bin/gcc" (don't worry, /usr/bin/gcc is just a symlink to a specific version of gcc). Then, "ln -s /usr/bin/gcc-x.x /usr/bin/gcc" to make a new symlink to the version you want to use, where x.x could be something like 3.4, 3.3, 4.0, etc.

Good luck!

By the way, there's a newer version of the nvidia driver out than what you have now (7676). It doesn't seem to fix your problem though.

Last edited by corfe; 08-23-2005 at 09:00 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fonts changed after upgrade of NVidia drivers. z-vet Mandriva 0 10-08-2004 09:33 AM
Install nVidia drivers? (Need Kernel source!) Jojo87 Linux - Newbie 6 02-15-2004 12:32 AM
How to install nVidia drivers + new kernel? Jojo87 Linux - Newbie 2 01-26-2004 09:58 AM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 05:57 PM
Should I upgrade my nvidia drivers? TheOneAndOnlySM Linux - General 1 12-26-2003 10:19 PM

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

All times are GMT -5. The time now is 03:35 PM.

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