LinuxSir.cn,穿越时空的Linuxsir!

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

求gentoo linux 2007.0版本nvidia 7300显卡安装方法[问题解决]

[复制链接]
发表于 2007-7-13 15:03:58 | 显示全部楼层 |阅读模式
我的显示器是三星226bw,目前的分辨率是1024*768,看起来实在是别扭,希望通过安装显卡驱动支持高分辨率的显示1680*1050,看过一些文章也实过,以前能emerge 的nvidia的那些驱动程序现在已经不行了。希望能够得到解决。

emerge nvidia-drivers
信息:

* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.

!!! ERROR: x11-drivers/nvidia-drivers-1.0.8776-r1 failed.
Call stack:
  ebuild.sh, line 1637:   Called dyn_setup
  ebuild.sh, line 704:   Called qa_call 'pkg_setup'
  ebuild.sh, line 44:   Called pkg_setup
  nvidia-drivers-1.0.8776-r1.ebuild, line 116:   Called linux-mod_pkg_setup
  linux-mod.eclass, line 464:   Called linux-info_pkg_setup
  linux-info.eclass, line 554:   Called die

!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.8776-r1/temp/build.log'.
发表于 2007-7-13 16:15:39 | 显示全部楼层
你是不能emerge nvidia-drivers 还是怎么回事?
系统情况和出错信息贴一下?
回复 支持 反对

使用道具 举报

发表于 2007-7-13 16:34:04 | 显示全部楼层
你需要编译安装一个内核
http://zh.gentoo-wiki.com/HOWTO_Compile_Kernel
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-13 16:35:12 | 显示全部楼层
我的内核是2.6.19的还需要更新到20么?
回复 支持 反对

使用道具 举报

发表于 2007-7-13 16:59:24 | 显示全部楼层
Post by xiqiwang
我的内核是2.6.19的还需要更新到20么?



2.6.19或者以后的都可以.
你需要把/usr/src/linux link到当前内核的source
就是版主贴的howto的 安装内核源代码 那部分


/usr/src $ ls -l
lrwxrwxrwx  1 root root   22 2007-07-10 06:00 linux -> linux-2.6.21-gentoo-r3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-13 19:59:54 | 显示全部楼层
emerge nivdia-drivers 已经成功了!但是接下来modprobe nvidia 失败

FATAL:Module nvidia not found.
回复 支持 反对

使用道具 举报

发表于 2007-7-13 20:50:58 | 显示全部楼层
用新内核启动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-13 22:24:03 | 显示全部楼层
Post by zhllg
用新内核启动

用新内核启动后modprobe nvidia
提示错误
FATAL:Error instreing nvidia (/lib/modules/2.6.20-gentoo-r8/video/nvidia.ko):No such device
回复 支持 反对

使用道具 举报

发表于 2007-7-13 22:37:16 | 显示全部楼层
Post by xiqiwang
用新内核启动后modprobe nvidia
提示错误
FATAL:Error instreing nvidia (/lib/modules/2.6.20-gentoo-r8/video/nvidia.ko):No such device

你把 ls -l /usr/src/linux 和 uname -a 两个命令的输出贴上来看看?

还有 emerge -pv nvidia-drivers 的信息
如果你用新版本的内核启动了的话,还有可能就是这个nvidia-drivers版本的驱动不支持7300.

再有就是
http://zh.gentoo-wiki.com/index. ... s&variant=zh-tw
When I attempt to load the kernel module I receive a "no such device"

Copied From Gentoo.org Guide

This usually occurs when you don't have a matching video card. Make sure that you have an nVidia-powered graphical card (you can double-check this using lspci).

If you are confident that you have an nVidia card, check your BIOS and see if the directive Assign IRQ to VGA is set.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-13 23:19:13 | 显示全部楼层
Look at the message :

localhost / # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 22 Jul 13 21:49 /usr/src/linux -> linux-2.6.20-gentoo-r8

localhost / # uname -a
Linux localhost 2.6.20-gentoo-r8 #1 SMP Fri Jul 13 21:22:21 CST 2007 i686 Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz GenuineIntel GNU/Linux

localhost / # emerge -pv nvidia-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-drivers/nvidia-drivers-1.0.8776-r1  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
回复 支持 反对

使用道具 举报

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

本版积分规则

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