Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
PP133
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 192

PostPosted: Thu Mar 01, 2007 2:06 am    Post subject: nvidia-drivers Reply with quote

Hey peeps, I'm trying to setup my nvidia drivers as shown in http://www.gentoo.org/doc/en/nvidia-guide.xml. First off, I noticed that there is no "nvidia-drivers" port, I did an
Code:
emerge -s nvidia
and found what I'm assuming is the equivalent, x11-drivers/nvidia-drivers. So I emerged x11-drivers/nvidia-drivers and got some questionable output (mostly questionable cause I don't know what I'm doing :) ):

Code:

Baleeted linux # emerge x11-drivers/nvidia-drivers
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-1.0.8776 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking NVIDIA-Linux-x86-1.0-8776-pkg0.run ;-)
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.19-gentoo-r5
 * Checking for MTRR support ...                                                                                                                         [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-1.0-8776-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-8776..............................................................................................................................
 * Applying NVIDIA_glx-defines.patch ...                                                                                                                 [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                                                                                [ ok ]
 * Converting Makefile.kbuild to use M= instead of SUBDIRS= ...                                                                                          [ ok ]
 * Applying NVIDIA_kernel-2.6.19.patch ...                                                                                                               [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/nvidia-drivers-1.0.8776/work/NVIDIA-Linux-x86-1.0-8776-pkg0/usr/src/nv ...
 * Preparing nvidia module

NVIDIA: calling KBUILD...
make CC=i686-pc-linux-gnu-gcc  KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/nvidia-drivers-1.0.8776/work/NVIDIA-Linux-x86-1.0-8776-pkg0/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /var/tmp/portage/nvidia-drivers-1.0.8776/work/NVIDIA-Linux-x86-1.0-8776-pkg0/usr/src/nv/.tmp_versions
rm -f /var/tmp/portage/nvidia-drivers-1.0.8776/work/NVIDIA-Linux-x86-1.0-8776-pkg0/usr/src/nv/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-2.6.19-gentoo-r5/Module.symvers
           is missing; modules will have no dependencies and modversions.


I cut off the rest for brevity. In the end it looks like it worked, no obvious error messages. But when I try to go further in the guide, specifically
Code:

# lsmod | grep nvidia && rmmod nvidia
# modprobe nvidia


I get this
Code:

Baleeted linux # lsmod | grep nvidia && rmmod nvidia
Baleeted linux # modprobe nvidia
FATAL: Module nvidia not found.


I'm not sure what happened, but I'm guessing that the emerge didn't go as well as I thought it did. Please let me know what I can do to fix this. Thanks in advance!
_________________
-Paul
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 01, 2007 2:10 am    Post subject: Reply with quote

Hello, first of all, can you output this command plz :

Code:

#cd /usr/src
# ls -la


Code:

# cd /usr/src/linux
# ls -la


I think that your problem is this : Emerge doesn't find your .config file, or you have an invalide symbolic link.
Back to top
View user's profile Send private message
PP133
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 192

PostPosted: Thu Mar 01, 2007 2:47 am    Post subject: Reply with quote

Hey, thanks for the quick reply. Here's what you asked for:

Code:

Baleeted linux # cd /usr/src
Baleeted src # ls -la
total 12
drwxr-xr-x  3 root root 4096 Feb 26 08:29 .
drwxr-xr-x 16 root root 4096 Feb 26 07:14 ..
-rw-r--r--  1 root root    0 Feb 26 03:04 .keep
lrwxrwxrwx  1 root root   22 Feb 26 08:29 linux -> linux-2.6.19-gentoo-r5
drwxr-xr-x 19 root root 4096 Feb 27 11:30 linux-2.6.19-gentoo-r5

_________________
-Paul
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 01, 2007 3:39 am    Post subject: Reply with quote

Good, your symbolic link point to the right kernel.

But, do you have a .config in /usr/src/linux ?

Code:

cd /usr/src/linux
ls -la


Output the result.
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Thu Mar 01, 2007 4:00 am    Post subject: Reply with quote

d2_racing wrote:
But, do you have a .config in /usr/src/linux ?


The ebuild complains if you don't have one and won't install (or it did as of last version of the drivers).

It looks like the module loader can't find the nvidia module... are you running the same kernel as is in your /usr/src/linux?
Back to top
View user's profile Send private message
PP133
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 192

PostPosted: Thu Mar 01, 2007 5:02 am    Post subject: Reply with quote

d2_racing wrote:
Good, your symbolic link point to the right kernel.

But, do you have a .config in /usr/src/linux ?

Code:

cd /usr/src/linux
ls -la


Output the result.



Code:

Baleeted linux # ls -la
total 436
drwxr-xr-x 19 root root  4096 Feb 27 11:30 .
drwxr-xr-x  3 root root  4096 Feb 26 08:29 ..
-rw-r--r--  1 root root 33329 Feb 27 11:30 .config
-rw-r--r--  1 root root 33329 Feb 27 11:24 .config.old
-rw-r--r--  1 root root   547 Feb 26 08:28 .gitignore
-rw-r--r--  1 root root 18693 Feb 26 08:28 COPYING
-rw-r--r--  1 root root 90307 Feb 26 08:28 CREDITS
drwxr-xr-x 60 root root  4096 Feb 26 08:28 Documentation
-rw-r--r--  1 root root  1262 Feb 26 08:28 Kbuild
-rw-r--r--  1 root root 76067 Feb 26 08:28 MAINTAINERS
-rw-r--r--  1 root root 50194 Feb 26 08:28 Makefile
-rw-r--r--  1 root root 16538 Feb 26 08:28 README
-rw-r--r--  1 root root  3065 Feb 26 08:28 REPORTING-BUGS
drwxr-xr-x 27 root root  4096 Feb 26 08:28 arch
drwxr-xr-x  2 root root  4096 Feb 26 08:28 block
drwxr-xr-x  2 root root  4096 Feb 26 08:28 crypto
drwxr-xr-x 62 root root  4096 Feb 26 08:28 drivers
drwxr-xr-x 64 root root  4096 Feb 26 08:28 fs
drwxr-xr-x 43 root root  4096 Feb 26 08:50 include
drwxr-xr-x  2 root root  4096 Feb 26 08:29 init
drwxr-xr-x  2 root root  4096 Feb 26 08:29 ipc
drwxr-xr-x  5 root root  4096 Feb 26 08:29 kernel
drwxr-xr-x  5 root root  4096 Feb 26 08:29 lib
drwxr-xr-x  2 root root  4096 Feb 26 08:29 mm
drwxr-xr-x 37 root root  4096 Feb 26 08:29 net
-rw-r--r--  1 root root    52 Feb 26 08:28 patches.txt
drwxr-xr-x  9 root root  4096 Feb 26 08:50 scripts
drwxr-xr-x  4 root root  4096 Feb 26 08:29 security
drwxr-xr-x 17 root root  4096 Feb 26 08:29 sound
drwxr-xr-x  2 root root  4096 Feb 26 08:29 usr

_________________
-Paul
Back to top
View user's profile Send private message
PP133
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 192

PostPosted: Thu Mar 01, 2007 5:03 am    Post subject: Reply with quote

ttuegel wrote:
d2_racing wrote:
But, do you have a .config in /usr/src/linux ?


The ebuild complains if you don't have one and won't install (or it did as of last version of the drivers).

It looks like the module loader can't find the nvidia module... are you running the same kernel as is in your /usr/src/linux?


I'm not entirely sure. How can I check?
_________________
-Paul
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Thu Mar 01, 2007 5:10 am    Post subject: Reply with quote

Check the output of
Code:
emerge --info

The second line, where it says "System uname: ". If you are using the same kernel as you have in /usr/src/linux, go ahead an post the output from emerge --info here. If you are _not_ using the same kernel, go ahead and configure/build/install a new kernel from the sources in /usr/src/linux.
Back to top
View user's profile Send private message
PP133
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 192

PostPosted: Thu Mar 01, 2007 5:15 am    Post subject: Reply with quote

ttuegel wrote:
Check the output of
Code:
emerge --info

The second line, where it says "System uname: ". If you are using the same kernel as you have in /usr/src/linux, go ahead an post the output from emerge --info here. If you are _not_ using the same kernel, go ahead and configure/build/install a new kernel from the sources in /usr/src/linux.


Oh, looks like that might be it:

Code:

Baleeted ~ # ls /usr/src/linux
linux/                  linux-2.6.19-gentoo-r5/


Code:

Baleeted ~ # emerge --info
Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz

_________________
-Paul
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Thu Mar 01, 2007 1:17 pm    Post subject: Reply with quote

Yup, just go ahead and build and install the new one (2.6.19-gentoo-r5). After you build it, but before you reboot, you'll want to rebuild any packages with kernel modules, like nvidia-drivers, alsa-driver, etc., but that's about it. There's a section of the handbook that will tell you how to set up your new kernel if you're not familiar with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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