|
发表于 2005-1-23 20:55:49
|
显示全部楼层
Post by Murder9527
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. What is wrong?
A: These problems are generally caused by the build using the wrong kernel
header files (ie 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/`uname -r`/build/include".
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.
Obviously, for this to work, you 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.
问:我无法建立NVIDIA核心模块,或者能建立模块但modprobe/insmod不能把模块加载到核心里,错在那?
答:这些问题一般是由于在建立模块时使用了错误的核心头文件(就是说与你的运行核心版本不同的头文件)。常规是,头文件应放在/usr/include/linux目录中,但放在/lib/modules/`uname -r`/build/include中是不同的偏好。nvidia安装程序应当能够确定(头文件)在你的系统中的位置;然而,如果你碰到问题,你可以用--kernel-include-dir选项来强制使用某个头文件。显然,这样做的话,你要在系统中安装合适的头文件。参考分发版所带的文档;某些分发版默认并不安装核心头文件,或安装的头文件对你的运行核心并不合适。 |
|