用官方的内核安装,编译nvidia的时候,只需要
apt-get install linux-headers-$(uname -r)
然后sh NVIDIA-Linux-x86-171.06.01-pkg1.run即可安装成功
但我用自己新编译的内核的时候,
在make-kpkg --rootcmd fakeroot --initrd binary-arch后,
把相应的linux-image和linux-headers安装后,重启新编的内核,发现
老是安装nvidia不成功。提示:
“No precompiled kernel interface was found to match your kernel”
是啥原因?
原来也有参数设定的。
sh NVIDIA-Linux-x86-171.06.01-pkg1.run -A
--kernel-include-path=KERNEL-INCLUDE-PATH
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.
--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'.
阅读(1985) | 评论(0) | 转发(0) |