LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zxy

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

[复制链接]
发表于 2009-4-2 00:07:35 | 显示全部楼层
我还停留在 2.6.24, 173.14
回复 支持 反对

使用道具 举报

发表于 2009-4-2 13:59:15 | 显示全部楼层
Post by mingyou;1968590
没办法用了土办法,先是安装了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

这次更改了命令,编译顺利通过,安装过程中也没有报错。
命令为:
  1. sudo ./NVIDIA-Linux-x86_64-180.44-pkg2.run -k $(uname -r) --kernel-source-path=/usr/src/linux-source-2.6.29
复制代码

但是startx时出错:Invalid module format .
郁闷死了。
在2.6.26内核下,编译非常顺利,运行也非常顺利。
回复 支持 反对

使用道具 举报

发表于 2009-4-6 12:23:48 | 显示全部楼层
关注,换了amd64的 系统,我也碰到 这个问题了。。。不能编译,头文件 和 内核都是自己编译的。
2.6.29.1的内核
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-4-6 15:56:35 | 显示全部楼层
我重新编译内核后,就可以正常编译180.44了,编译后使用正常 。。。应该是当初编译内核的 时候有些选项没弄好。。
回复 支持 反对

使用道具 举报

发表于 2009-4-7 11:33:29 | 显示全部楼层
-0-$ dpkg -l |grep linux-headers-`uname -r`
ii  linux-headers-2.6.29-1-686           2.6.29-1                   Header files for Linux 2.6.29-1-686
-0-$ ls /home/wkt/packages/NVIDIA-Linux-x86-180.44-pkg1.run -l
-rw-r--r-- 1 wkt wkt 22023516 03-24 23:39 /home/wkt/packages/NVIDIA-Linux-x86-180.44-pkg1.run

我的也无法编译通过!
回复 支持 反对

使用道具 举报

发表于 2009-4-7 13:55:20 | 显示全部楼层
-0-$ dpkg -l |grep linux-headers-`uname -r`
ii  linux-headers-2.6.29-1-686           2.6.29-1                   Header files for Linux 2.6.29-1-686
-0-$ ls /home/wkt/packages/NVIDIA-Linux-x86-180.44-pkg1.run -l
-rw-r--r-- 1 wkt wkt 22023516 03-24 23:39 /home/wkt/packages/NVIDIA-Linux-x86-180.44-pkg1.run

我的也无法编译通过!
回复 支持 反对

使用道具 举报

发表于 2009-4-10 10:26:43 | 显示全部楼层
有没有人试过用sidux源里的2.6.29内核和头文件来编译nvidia驱动?
回复 支持 反对

使用道具 举报

发表于 2009-4-10 12:52:57 | 显示全部楼层
哈哈,加了sidux的源和linux-image及linux-headers后,终于编译成功了。
真是谢谢sidux了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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