LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-17-2004, 05:11 PM   #1
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
Kernel problem


I just accidentaly installed another kernel (though it was the sources... *sigh*). Although I think it is the same one the default installation uses, now I can't get my nvidia drivers to work. In order to get to X I had to use the "nv" instead of "nvidia"... so, I got my X back but without drivers and it pretty much sucks.
Any suggestions? Any way to unistall the kernel I just accidentaly installed? Should I just reinstall mandrake? what will I lose if I do so? thanks
 
Old 02-17-2004, 05:38 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You could try installing the Nvidia drivers yourself. You'll need gcc-2.9 (the same compiler the kernel was compiled with), have you got it on your Mandrake CD's? If so, go to http://www.nvidia.com/object/linux.html and click on the 1.0-5336 link. I would compile them at the command prompt without Xwindows running. Put the driver in roots home folder and change it's properties to make sure it's executable. Open /etc/inittab in a text editor and change initdefault to 3 then reboot. It should take you to a command prompt. Login as root and type in
Code:
export CC=/opt/gcc-2.95.3/bin/gcc #or whatever is the correct path - you'll need to check this
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run #answer the questions
init 5
edit /etc/inittab again and change nv back to nvidia in /etc/X11/XF86Config and then reboot. You would do well to get used to doing this as you won't be able to recompile the kernel yourself otherwise and there are some things that can only be changed by recompiling the kernel. Or you could just reinstall mandrake. it's your call. Good luck.
 
Old 02-17-2004, 07:04 PM   #3
mishmash
Member
 
Registered: Nov 2003
Location: Canada
Distribution: RHEL
Posts: 87

Rep: Reputation: Disabled
Hi,

You have to know that the latest NVIDIA driver absolutely NEED the /lib/modules/2.4.22-10mdk/build symbolic link that points to the kernel source
If you have downloaded and installed (i.e. compiled) the NVIDIA driver before you installed a new source kernel,I do not think that you just installed a new source kernel /usr/src/linux-2.4.22-10mdk.

My past experience with Mdk 9.2 is that this symbolic link was not done properly, at least not when I installed the 2.4.22-26mdk kernel. In fact, there was some problem with the initial version of this kernel upgrade. I installed it right away when it was available. I know that they change it since then and now it is OK.

In any case, if you still can't correct your problem, just download and install the 2.4.22-26mdk binary rpm and then the 2.4.22-26mdk source rpm. These rpms are OK and work fine. Then, install the NVIDIA driver as indicated on the NVIDIA web site. For that, you need to boot linux in console mode (or execute the command "init 3" in a shell) and log as root. Then, move to the directory where you downloaded the NVIDIA driver and execute the command "sh ./NVIDIA*.run". Of course, set the device to "nvidia" instead of "nv" in the /etc/X11/XF86Config-4 file.
 
Old 02-17-2004, 07:14 PM   #4
mishmash
Member
 
Registered: Nov 2003
Location: Canada
Distribution: RHEL
Posts: 87

Rep: Reputation: Disabled
Hi again,

I forgot to delete some lines at the beginning of my reply, the following is the reply you should have seen:

*********************
Hi,

You have to know that the latest NVIDIA driver absolutely NEED the /lib/modules/2.4.22-10mdk/build symbolic link that points to the kernel source /usr/src/linux-2.4.22-10mdk.

My past experience with Mdk 9.2 is that this symbolic link was not done properly, at least not when I installed the 2.4.22-26mdk kernel. In fact, there was some problems (i.e. the above problem, plus the bootsplash not working) with the initial version of this kernel upgrade. I installed it right away when it was available. I know that they change it since then and now it is OK.

In any case, if you still can't correct your problem, just download and install the 2.4.22-26mdk binary rpm and then the 2.4.22-26mdk source rpm. These rpms are OK and work fine. Then, install the NVIDIA driver as indicated on the NVIDIA web site. For that, you need to boot linux in console mode (or execute the command "init 3" in a linux shell) and log as root. Next, move to the directory where you downloaded the NVIDIA driver and execute the command "sh ./NVIDIA*.run". Of course, after that, set the device to "nvidia" instead of "nv" in the /etc/X11/XF86Config-4 file. Finally, enter the command "init 5" or "startx" to enter in X mode, or reboot.

_______________
Regards,

mishmash
*********************

Sorry!
 
Old 02-17-2004, 08:59 PM   #5
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Original Poster
Rep: Reputation: Disabled
Thanks a lot guys. Here's the solution I found and a couple more questions...
1) download the 2.4.22-26mdk kernel source. I actually got 2. One, 40mb which didn't work :S and another, 180mb with rpmdrake that works perfectly.
2) go to the console with X closed and run the installation from nvidia. It will compile the drivers back for you and you're set

Questions:
I "lost" the loading and log off screens I previously had (tells you to press "esc" for verbose). I only get the verbose stuff now. Anyway to go back? thanks a lot!
 
Old 02-17-2004, 09:26 PM   #6
mishmash
Member
 
Registered: Nov 2003
Location: Canada
Distribution: RHEL
Posts: 87

Rep: Reputation: Disabled
Hi,

What a timing...

Check the following post I just updated:

http://www.linuxquestions.org/questi...hreadid=140117

Now you make me wonder about what I said in that post... Were did you get your updates? Was it from an official Mandrake ftp site? Maybe this is part of the problem... The last time, I updated the kernel from 2.4.22-10mdk to 2.4.22-26mdk. The first time, I had installed the 2.4.22-20mdk in between. Maybe this is related to the problem... I really don't know anymore.
 
  


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
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 02:55 PM
kernel 2.6.9 Kernel panic problem salahuddin_66 Slackware 2 08-11-2007 03:17 AM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 09:48 PM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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