LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2004, 11:45 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Kernel compile breaks both nvidia driver module and dirver installation


I recompiled my kernel so I had alsa as modules instead of built-in. The problem is the kernel compilation breaks the nvidia driver and later the installation. Because I reinstalled debian because of this yesterday already I don't feel like doing that again.

I did the compilation and now modprobe can't find the driver anymore. The nvidia installation program recognised the installed driver and removes it. Now I install the driver again, after building the kernel module I get an error that I built the nvidia module against the wrong kernel sources. I have my kernel source untarred in /usr/src/linux so I gave it with the --kernel-source-path but it still gives me the same error. Why can't it compile against the source I used to install the kernel now? When I compiled a new kernel once (without the driver installed) it worked fine and now I try to compile a new kernel and the driver and the installation break. This is how I build my kernels:

make clean /mrproper (tried both)
make menuconfig (only with make mrproper above)
make && make modules
make modules_install
make install

Could the problem be that with the first compilation a linux.old and linux is made (in lilo and in /boot it has some similar files of which I can't get the names now but vmlinuz and vmlinuz.old are there as well for example) and that it can't make this again if I compile a new kernel? Would it have a problem removing the linux.old changing linux to linux.old and then create the new linux in this folder for example?

I can't give logs cause I can't get it on this computer.

Thanks for any help you have on this topic !
 
Old 08-19-2004, 11:52 AM   #2
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
try installing the kernel and nvidia module the 'debian way' - have a look at google...
 
Old 08-19-2004, 01:41 PM   #3
johngalt
LQ Newbie
 
Registered: Aug 2004
Location: 3rd Rock
Distribution: Jackass! Gentoo (P4) and Xubuntu (Celeron 366)
Posts: 13

Rep: Reputation: 0
As Iread in the long doc from nVidia, you have to recompile the driver if you update / recompile the kernel.
 
Old 08-19-2004, 02:55 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by johngalt
As Iread in the long doc from nVidia, you have to recompile the driver if you update / recompile the kernel.
Yep the problem is that it won't build the new driver. I'll try the debian way drigz but it hasn't worked for me so far (tried like a hundred times with different tutorials but it always gave errors with the make-kpkg but I;ll take a look again) so I hope it'll go this time.
 
Old 08-19-2004, 02:59 PM   #5
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
Well i just installed debian and recompiled a kernel by following directions from the debian site (i got sarge). but then i got sick of debian after spending about 20 mins trying to get make xconfig to work.
 
Old 08-19-2004, 03:07 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Now I think of it that would be like what I thought that the make install way doesn't properly replace the images after more compilations. That might explain why I couldn't compile kernel 2.6.8.1 which if I compiled always was 2.6.7 with a lot of errors. Maybe I'd better delete all the .old kernel files cause I can't look things up easily now on that computer.
 
Old 08-19-2004, 03:10 PM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by drigz
Well i just installed debian and recompiled a kernel by following directions from the debian site (i got sarge). but then i got sick of debian after spending about 20 mins trying to get make xconfig to work.
make menuconfig is a lot easier. I never got make xconfig to work even when I have a complete x system installed. make menuconfig only needs a few files, cpp, gcc, binutils, libc6-dev libncurses5-dev and make IIRC. I think if you need something else it's a dependency of those files
 
Old 08-19-2004, 03:22 PM   #8
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
But make xconfig is so much better - and it worked on slackware immediately after installing the qt package. I'm gonna try gentoo next for a distro with easy package management...
 
Old 08-19-2004, 04:13 PM   #9
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by drigz
But make xconfig is so much better - and it worked on slackware immediately after installing the qt package. I'm gonna try gentoo next for a distro with easy package management...
I thought make xconfig only looked a bit better. I have made the partitions for extra distributions and gentoo will be the first I try after I have everything in debian completely configured as I want. In fact I'd already have gentoo if I wasn't such a newbie when I chose the distribution. LOL I didn't know that I could use I386 on my PC and searched for I686 which I couldn't find very easy so I picked up my downloaded debian CD again.

I've fixed the error. Might be an error in my own memory, since I thought I always had ignored the gcc check failure. So I went into 'delete everything till it works' mode just ago and deleted cpp and reinstalled that in version 2.95 and it worked. I think deleting gcc would be better since there are no dependencies which have to be deleted as well. Deleting old kernel files in /boot and deleting all files in /boot and then installing the kernel on the clean /boot didn't work either BTW
 
Old 08-19-2004, 05:24 PM   #10
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Here's how to compile the kernel + install the nvidia drivers using the Debian way: http://www.desktop-linux.net/debkernel.htm
 
  


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 graphics driver kernel compile hang siegecraft4 Linux - Hardware 3 02-27-2005 03:33 PM
NVIDIA module installation (kernel 2.6.9-rc3-bk1) Ra_ Slackware 6 10-04-2004 08:10 PM
Is it possible to compile kernel with nvidia driver? subaruwrx Linux - Newbie 2 10-04-2004 07:18 AM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 07:55 PM
NVIDIA driver (4496) patched for kernel 2.6.x compatibility won't compile! Rodcl Linux - Hardware 5 04-26-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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