LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo 安装nvidia驱动无法将模块载入

[复制链接]
发表于 2008-6-2 10:34:08 | 显示全部楼层 |阅读模式
我使用的是gentoo liveDVD 2008 beta2 amd64版本的。 USE=“-qt3 -qt4 -arts -kde X dbus gtk gnome hal avahi alsa" 我的显卡是七彩虹 8600gt GD3 白金版
  按照gentoo官方的nvidia驱动安装手册 我可以成功的emerge nvidia-drivers 但是在modprobe nvidia 他说我有一个ko文件不是标准模块形式,所以无法插入模块 我用dmeg 查看
dmesg显示 nvidia disgree symbol module structure

我在nvidia 官方网站下载了一个64位linux的 驱动。但是在我运行那个驱动的安装程序以后 他报错说与我的内核不匹配 然后安装不能。
请问一下 我将如何才能解决这个问题呢?

PS 我的cpu是amd5000+ 我想问一下我的make.conf 设置里面 MAKEOPTS的值 应该是j2 还是j3啊?
发表于 2008-6-2 18:46:16 | 显示全部楼层
双核应该是j3  建议楼主贴一下emerge --info内容
回复 支持 反对

使用道具 举报

发表于 2008-6-2 19:52:57 | 显示全部楼层
LZ是不是用了nvidiafb?
回复 支持 反对

使用道具 举报

发表于 2008-6-2 21:06:33 | 显示全部楼层
运行的内核文件在/boot下
编译时使用的内核源代码在/usr/src/linux下,两者版本要一致
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-3 22:46:13 | 显示全部楼层
when i run "modprobe nvidia" the terminal displays this :FATAL: Error inserting nvidia (/lib/modules/2.6.24-gentoo-r5/video/nvidia.ko): Invalid module format

when i run dmesg the terminal displays this : nvidia: disagrees about version of symbol struct_module


when i run "emerge --info" the terminal displays this:
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Timestamp of tree: Tue, 05 Feb 2008 04:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avahi berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


and when i run ls -l /usr/src/linux  the terminal displays this:
lrwxrwxrwx 1 root root 22 Jun  3 22:32 /usr/src/linux -> linux-2.6.24-gentoo-r5

and when i config the menuconfig, i did not choose the framebuffer support.

what should i do then?
回复 支持 反对

使用道具 举报

发表于 2008-6-4 00:12:12 | 显示全部楼层
重新编译内核,然后重新编译nvidia驱动,用新内核启动系统,再加载nvidia,一般就ok了。
你那就报错就是内核和模块不匹配。
回复 支持 反对

使用道具 举报

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

本版积分规则

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