LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2341|回复: 17

linux-image和linux-headers升级到2.6.29,无法安装nvidia驱动了

[复制链接]
发表于 2009-3-29 12:11:39 | 显示全部楼层 |阅读模式
rt,执行NVIDIA-Linux-x86_64-180.29-pkg2.run

ERROR: The kernel header file
       '/lib/modules/2.6.29-1-amd64/build/include/linux/kernel.h' does not
       exist.  The most likely reason for this is that the kernel source path
       '/lib/modules/2.6.29-1-amd64/build' is incorrect.  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.
发表于 2009-3-29 16:10:09 | 显示全部楼层
ERROR: If you are using a Linux 2.4 kernel, please make sure
       you either have configured kernel sources matching your
       kernel or the correct set of kernel headers installed
       on your system.

       If you are using a Linux 2.6 kernel, please make sure
       you have configured kernel sources matching your kernel
       installed on your system. If you specified a separate
       output directory using either the "KBUILD_OUTPUT" or
       the "O" KBUILD parameter, make sure to specify this
       directory with the SYSOUT environment variable or with
       the equivalent nvidia-installer command line option.

       Depending on where and how the kernel sources (or the
       kernel headers) were installed, you may need to specify
       their location with the SYSSRC environment variable or
我搞来搞去,结果出现的结果是这样的。
回复 支持 反对

使用道具 举报

发表于 2009-3-29 19:05:32 | 显示全部楼层
http://www.nvnews.net/vbulletin/showthread.php?t=122606
用 180.41 或者 185.xx 就可以了

非要用 180.29 的话得改一些东西……
回复 支持 反对

使用道具 举报

发表于 2009-3-29 19:20:17 | 显示全部楼层
我用的就是180.41啊
回复 支持 反对

使用道具 举报

发表于 2009-3-29 19:22:30 | 显示全部楼层
我记得 180.3x 开始就可以正常编译了啊

我现在用的是 185.13(x86) 驱动 + 2.6.29 内核(下载自 kernel.org),一切正常
回复 支持 反对

使用道具 举报

发表于 2009-3-29 19:24:26 | 显示全部楼层
我记得 180.3x 开始就可以正常编译了啊

我现在用的是 185.13(x86) 驱动 + 2.6.29 内核(下载自 kernel.org),一切正常
回复 支持 反对

使用道具 举报

发表于 2009-3-29 19:33:44 | 显示全部楼层
185.13也试过了,出现的是同样的内容。
回复 支持 反对

使用道具 举报

发表于 2009-4-1 19:09:01 | 显示全部楼层
没办法用了土办法,先是安装了linux-source
然后cd到/usr/src/linux-source-2.6.29/
执行命令:依次执行“make prepare” “make scripts”
然后 sudo ./nvidia-installer --kernel-source-path=/usr/src/linux-source-2.6.29
编译顺利完成。
但是仍然装不上去。
/var/log/nvidia-installer.log内容是:
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most
       frequently when this kernel module was built against the wrong or
       improperly configured kernel sources, with a version of gcc that differs
       from the one used to build the target kernel, or if a driver such as
       rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
       obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
       installed in this system is not supported by this NVIDIA Linux graphics
       driver release.

       Please see the log entries 'Kernel module load error' and 'Kernel
       messages' at the end of the file '/var/log/nvidia-installer.log' for
       more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
   -1 Invalid module format
回复 支持 反对

使用道具 举报

发表于 2009-4-1 19:43:07 | 显示全部楼层
从kernel.org 上面下载的source 自己编译内核,生成内核和头文件包,180.44 ,没有任何问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-1 23:52:18 | 显示全部楼层
编译时间太长,而且占用磁盘太多300m,还是暂时用2.6.28
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表