LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices



Reply
 
Search this Thread
Old 04-22-2012, 09:22 PM   #1
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Rep: Reputation: 88
Find out kernel source path?


Dual booting Win7 on a Gateway 4850 computer with Linux Mint 12. TRYING to install the latest nvidia driver(295.40) for my geForce 420 video card, and ran into a heck of a time preventing nouveau drivers from loading (went into /etc/default/grub and added nouveau.blacklist=1 to grub and that seemed to take care of nouveau, after many other attempts), but I now have a different error, specifically:

ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.


So, where and how can I find the kernel source path? Win7 takes up three or four partitions on the system (recovery partitions and all), and I installed Linux Mint 12 after Win7 with partitions for /boot / /home /usr /opt and swap. I assume that the kernel path is in root, but right now my brain is fried with how ridiculously hard this has all been.

Any suggestions as to where I should look and what to do once I get there? Keep in mind this is a family web site.
 
Old 04-23-2012, 12:48 AM   #2
coolbeans777
LQ Newbie
 
Registered: Mar 2011
Distribution: Gentoo with KDE, Kubuntu 11.10
Posts: 16

Rep: Reputation: 2
Did you buy the GeForce 420 because of the marijuana reference? Lol, just kidding.

I would know how to fix it if I knew how to access the kernel configurations on debian based systems, but I unfortunately don't. I'm sure there's a way. If you can access the config file used to compile the kernel on your system, then you can recompile your kernel with nouveau DISABLED, and that will get rid of it for good. Then you can remove all of the blacklisting nonsense, 'sudo apt-get purge xserver-xorg-video-nouveau (or something like that)', and just reinstall the NVIDIA driver. Everytime you recompile your kernel, you also have to reinstall NVIDIA drivers. If you end up finding the configuration file, then post again here, and I'll help you recompile your kernel, re-install nvidia drivers, etc.
 
Old 04-23-2012, 01:10 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The kernel source is probably at:
/lib/modules/$(uname -r)/source

but for compiling a single module, you may need to enter /lib/modules/$(uname -r)/build or maybe /lib/modules/$(uname -r)/

uname -r returns your kernel version. The build system is organized to contain this name.
 
Old 04-23-2012, 08:46 AM   #4
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Original Poster
Rep: Reputation: 88
Quote:
Originally Posted by jschiwal View Post
The kernel source is probably at:
/lib/modules/$(uname -r)/source

but for compiling a single module, you may need to enter /lib/modules/$(uname -r)/build or maybe /lib/modules/$(uname -r)/

uname -r returns your kernel version. The build system is organized to contain this name.
Thank you. I will try it out after work.
 
Old 04-23-2012, 08:51 AM   #5
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Original Poster
Rep: Reputation: 88
Quote:
Originally Posted by coolbeans777 View Post
Did you buy the GeForce 420 because of the marijuana reference? Lol, just kidding.

I would know how to fix it if I knew how to access the kernel configurations on debian based systems, but I unfortunately don't. I'm sure there's a way. If you can access the config file used to compile the kernel on your system, then you can recompile your kernel with nouveau DISABLED, and that will get rid of it for good. Then you can remove all of the blacklisting nonsense, 'sudo apt-get purge xserver-xorg-video-nouveau (or something like that)', and just reinstall the NVIDIA driver. Everytime you recompile your kernel, you also have to reinstall NVIDIA drivers. If you end up finding the configuration file, then post again here, and I'll help you recompile your kernel, re-install nvidia drivers, etc.
<Chuckle> No, the Gateway 4850 comes with the GeForce 420 chip. It's low end, but I don't do any demanding video, so it suits my purposes.

NVIDIA discovered a security hole in drivers prior to 295.40, so I'd like to patch this thing, in addition to getting audio over HDMI. The nouveau driver problem is just inane.
 
  


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
Unexpected directory in path, cannot find source alanhr Linux - General 3 03-20-2009 06:39 AM
What is the path to the kernel source in SuseSLED 10? goincoastal Linux - Newbie 2 01-24-2008 08:36 PM
path to kernel source????? Peingune Fedora 4 05-26-2006 08:23 AM
Finding My --kernel-source-path CAL Linux - Newbie 6 04-14-2004 08:57 AM
What is the path to Linux Kernel source beginner16 Linux - Newbie 4 11-24-2003 05:21 AM


All times are GMT -5. The time now is 11:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration