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

Newegg Daily Deals

Thread Tools
Old 05-12-08, 05:41 PM   #1
Registered User
Join Date: May 2008
Posts: 1
Default Question about --kernel-include-dir

From the Nvidia Driver installation readme:
Q. I cannot build the NVIDIA kernel module, or, I can build the NVIDIA kernel module, but modprobe/insmod fails to load the module into my kernel.

These problems are generally caused by the build using the wrong kernel header files (i.e. header files for a different kernel version than the one you are running). The convention used to be that kernel header files should be stored in /usr/include/linux/, but that is deprecated in favor of /lib/modules/RELEASE/build/include (where RELEASE is the result of uname -r. The nvidia-installer should be able to determine the location on your system; however, if you encounter a problem you can force the build to use certain header files by using the --kernel-include-dir option. For this to work you will of course need the appropriate kernel header files installed on your system. Consult the documentation that came with your distribution; some distributions do not install the kernel header files by default, or they install headers that do not coincide properly with the kernel you are running.
I'm trying to install the latest driver into CentOS 5 and I'm getting an error complaining about the .ko kernel module not loading correctly. After reading the README it says to use --kernel-include-dir and point it to your kernel headers which match "uname -r", which may solve the problem. However --kernel-include-dir command is not a valid command/option to the sh installer package I downloaded from the website.

Can anyone explain to me how I use the --kernel-include-dir option or is it even a part of the installer anymore?

insuredjester is offline   Reply With Quote
Old 05-12-08, 06:24 PM   #2
NVIDIA Corporation
zander's Avatar
Join Date: Aug 2002
Posts: 3,740
Default Re: Question about --kernel-include-dir

This looks like a stale FAQ entry; the actual options are (from the `nvidia-installer` manual page):

The directory containing the kernel include files that should be used when
compiling the NVIDIA kernel module. This option is deprecated; please use
'--kernel-source-path' instead.

The directory containing the kernel source files that should be used when com-
piling 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'.

The directory containing any KBUILD output files if either one of the
'KBUILD_OUTPUT' or 'O' parameters were passed to KBUILD when building the ker-
nel image/modules. When not specified, the installer will assume that no sep-
arate output directory was used.
However, if you need to specify any of these without knowingly having created a scenario in which they become necessary, you're most likely missing the correct kernel-devel package or haven't installed the kernel in question correctly (e.g. haven't run `make modules_install`, etc.).
zander is offline   Reply With Quote

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 03:51 PM.

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