Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia Geforce FX 5200 Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gjz010
n00b
n00b


Joined: 25 May 2013
Posts: 8

PostPosted: Sat May 25, 2013 8:13 am    Post subject: Nvidia Geforce FX 5200 Problem Reply with quote

Code:
#emerge nvidia-drivers
#modprobe nvidia

It says
Quote:
modprobe: ERROR: could not insert 'nvidia': Exec format error

Then I downloaded and installed NVIDIA.run,
Code:
#sh ./NVIDIA.run -k $(uname -r)

But it says
Quote:
ERROR: Neither the '/lib/modules/3.7.10-gentoo/build/include/linux/version.h'
nor the
'/lib/modules/3.7.10-gentoo/build/include/generated/uapi/linux/version.h
' kernel header file exists. The most likely reason for this is that
the kernel source files in '/lib/modules/3.7.10-gentoo/build' have not
been configured.

Quote:
# lspci |grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation NV34 [GeForce FX 5200] (rev a1)


Quote:
# emerge nvidia-drivers
!!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf'

* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


* IMPORTANT: 4 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-173.14.36
* NVIDIA-Linux-x86-173.14.36-pkg0.run SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/3.7.10-gentoo/build
* Found sources for kernel version:
* 3.7.10-gentoo
* 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-173.14.36 failed (setup phase):
* Kernel not configured; no .config found in /lib/modules/3.7.10-gentoo/build
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* nvidia-drivers-173.14.36.ebuild, line 189: Called linux-mod_pkg_setup
* linux-mod.eclass, line 562: Called require_configured_kernel
* linux-info.eclass, line 294: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-173.14.36'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-173.14.36'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-173.14.36, Log file:

>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/temp/build.log'

* Messages for package x11-drivers/nvidia-drivers-173.14.36:

* 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-173.14.36 failed (setup phase):
* Kernel not configured; no .config found in /lib/modules/3.7.10-gentoo/build
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* nvidia-drivers-173.14.36.ebuild, line 189: Called linux-mod_pkg_setup
* linux-mod.eclass, line 562: Called require_configured_kernel
* linux-info.eclass, line 294: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-173.14.36'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-173.14.36'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.36/work/'


Quote:
# emerge --info =x11-drivers/nvidia-drivers-173.84.36
!!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf'
Portage 2.1.11.55 (default/linux/x86/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-i686-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.1
KiB Mem: 899508 total, 16976 free
KiB Swap: 1308668 total, 934564 free
Timestamp of tree: Sat, 11 May 2013 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.3-r3, 3.2.3-r2
dev-util/cmake: 2.8.10.2-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/"
LANG="zh_CN.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cn.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

What should I do?

---edit---
I tried
Code:
#genkernel all
#emerge nvidia-drivers
#startx

It says:No screens found.


Last edited by gjz010 on Sun May 26, 2013 8:29 am; edited 3 times in total
Back to top
View user's profile Send private message
gjz010
n00b
n00b


Joined: 25 May 2013
Posts: 8

PostPosted: Sat May 25, 2013 11:39 am    Post subject: Reply with quote

No Answer?
Hopefully there is something helpful.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Sat May 25, 2013 11:57 am    Post subject: Reply with quote

gjz010,

Welcome to Gentoo.

Please do not reply to your own posts until they have a response from another user.
There is a forums search to find unanswered posts and you unanswered question no longer appears.
To add more information to an unanswered post - edit the post instead.

It appears you are trying to use an old nVidia driver that is not compatible with your kernel. There was a kernel change at 3.7 that broke the binary blob drivers. The drivers have been fixed in recent versions and changes have been back ported to most older versions.

You must not use the *.run file. The nvidia-drivers ebuild unpacks the code and in some versions at least, patches the 'glue' code so that the *.run file works on Gentoo.

We need to know more about your system to advise which nvidia-drivers you should use. We know you have the 3.7.10-gentoo kernel but what is your video card?

lspci will show that. Please post the VGA line.

-- edit --

The Gentoo community, of which you are a part, is a world wide community. Please allow 24 hours before 'bumping' a thread, this gives everyone a chance to see it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gjz010
n00b
n00b


Joined: 25 May 2013
Posts: 8

PostPosted: Sun May 26, 2013 5:19 am    Post subject: Reply with quote

NeddySeagoon wrote:
gjz010,

Welcome to Gentoo.

Please do not reply to your own posts until they have a response from another user.
There is a forums search to find unanswered posts and you unanswered question no longer appears.
To add more information to an unanswered post - edit the post instead.

It appears you are trying to use an old nVidia driver that is not compatible with your kernel. There was a kernel change at 3.7 that broke the binary blob drivers. The drivers have been fixed in recent versions and changes have been back ported to most older versions.

You must not use the *.run file. The nvidia-drivers ebuild unpacks the code and in some versions at least, patches the 'glue' code so that the *.run file works on Gentoo.

We need to know more about your system to advise which nvidia-drivers you should use. We know you have the 3.7.10-gentoo kernel but what is your video card?

lspci will show that. Please post the VGA line.

-- edit --

The Gentoo community, of which you are a part, is a world wide community. Please allow 24 hours before 'bumping' a thread, this gives everyone a chance to see it.

Thank you for your advice.I've edited the information in my post,and the result that I tried to emerge.
I need your help.Thanks!
Back to top
View user's profile Send private message
white_tiger
n00b
n00b


Joined: 04 Oct 2011
Posts: 33

PostPosted: Sun May 26, 2013 8:35 am    Post subject: Reply with quote

I read you use genkernel oke so that should be fine.

After you emerged nvidia-drivers did you configure /etc/X11/xorg.conf by running the command "nvidia-xconfig" (as root)?

If so or when you did the config yourself and it does not work, what is the output of "cat /etc/X11/xorg.conf"?

One question:
Why do you have two make.conf files? the one in /etc/portage/make.conf should be oke.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Sun May 26, 2013 10:10 am    Post subject: Reply with quote

gjz010,

Code:
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"


This tells that the /usr/src/linux symlink, that out of kernel modules, like nvidia, use to find the kernel to build against is pointing to an unconfigured kernel. That probably means its not the one you are running. Even if nvida were to build, it would build for the wrong kernel version and still not be available to you.

Compare the kernel versions reported by
Code:
uname -r
which is your running kernel and
Code:
readlink /usr/src/linux
which is where the symlink points. If they are different, use
Code:
eselect kernel
to fix the symlink to point to your running kernel version.

Until recently, make.conf was kept in /etc. Its now been moved to /etc/portage. You need to merge your two make.conf files into the one in /etc/portage and remove /etc/make.conf
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gjz010
n00b
n00b


Joined: 25 May 2013
Posts: 8

PostPosted: Sun May 26, 2013 11:44 am    Post subject: Reply with quote

Thank you.But I solved it on my own.
Code:
#genkernel all
#emerge nvidia-drivers
#modprobe nvidia
#nvidia-xconfig
#startx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum