Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-31-09, 02:09 PM   #1
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default manually change symlinks for headers/custom kernel

I'm running Debian and I compiled my own kernel. I noticed that if I delete the ~/linux-2.6.29 dir where I built my kernel-image and kernel-headers, the nvidia installer fails to run complaining that it can't find the source directory. I think noticed that there are two symlinks in my /lib/modules/2.6.29-em64t:

Code:
build -> /home/stuff/linux-2.6.29-em64t
I changed them both to point to the headers in /usr/src but the nvidia installer still complained that it can't find the source. What am I doing wrong?

Code:
build -> /usr/src/linux-headers-2.6.29-em64t
darksky is offline   Reply With Quote
Old 03-31-09, 03:00 PM   #2
loomsen
Registered User
 
Join Date: Nov 2008
Posts: 4
Default Re: manually change symlinks for headers/custom kernel

The nvidia driver isn't build as a kernel module driver like any other driver due to its closed source. Actually a layer is created to make the linux kernel (non binary modules) and the nvidia (binary) driver interact.

Thats basically why...
Code:
cat /usr/src/nvidia-180.37/README
Quote:
...
...
...
If you build your own kernel, please
make sure it remains configured (do not run `make mrproper`).
loomsen is offline   Reply With Quote
Old 03-31-09, 03:10 PM   #3
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: manually change symlinks for headers/custom kernel

So that means I must have the kernel source on the file system??? I know that's not true because if I boot into the distro's kernel which only has the kernel headers installed, I am able to build an nvidia module for it just fine.
darksky is offline   Reply With Quote
Old 03-31-09, 04:36 PM   #4
xbobmx
Registered User
 
Join Date: May 2003
Posts: 191
Default Re: manually change symlinks for headers/custom kernel

Have you tried this:
Quote:
Originally Posted by `nvidia-installer -A`
--kernel-source-path=KERNEL-SOURCE-PATH
The directory containing the kernel source files that
should be used when compiling the NVIDIA kernel module.
When not specified, the installer will use
'/lib/modules/`uname -r`/build', if that directory exists.
Otherwise, it will use '/usr/src/linux'.
xbobmx is offline   Reply With Quote
Old 03-31-09, 04:45 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: manually change symlinks for headers/custom kernel

You need to have a subset of a configured Linux kernel source tree matching the running kernel installed on your system. This subset needs to include more files than just the kernel header files, but is much smaller than the complete source tree. Take a look at what your distribution's linux-headers package provides. You won't need to specify --kernel-source-path unless the symlinks under /lib/modules are broken or point to an incomplete set of kernel development files.
zander is offline   Reply With Quote
Reply


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random crashes, NVRM Xid messages Iesos NVIDIA Linux 90 10-04-12 03:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

All times are GMT -5. The time now is 07:43 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.