Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
patch nvidia + kernel 2.6
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Sun Oct 26, 2003 3:53 pm    Post subject: patch nvidia + kernel 2.6 Reply with quote

i install 2.6 and i install those package following the readme:
NVIDIA-Linux-x86-1.0-4496-pkg0.run (nvidia)
NVIDIA-Linux-x86-1.0-4496-pkg#.tar.gz (minion.de)
NVIDIA_kernel-1.0-4496-2.6.diff (minion.de)

but i haven't be able to make it work and the nvidia-installer.log doesn't help me neither:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Oct 24 23:38:58 2003

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/lib/modules/2.6.0-test8/build'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make KERNDIR=/lib/modules/2.6.0-test8/build mod
ule'...
make[1]: Entering directory `/usr/src/linux-2.6.0-test8'
make[1]: *** No rule to make target `appli/Xfree/patch'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.0-test8'
nvidia.ko failed to build!
make: *** [module] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

thx for help
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun Oct 26, 2003 4:18 pm    Post subject: Reply with quote

have you tried simply doing

Code:
emerge nvidia-kernel nvidia-glx


?

It automagically detects that you're using 2.6 and applies the minion patches for you.

Really, it works seamlessly.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sun Oct 26, 2003 5:22 pm    Post subject: Reply with quote

I got a similar problem: nvidia + 2.6 hates me :-(

This is my latest error:
Code:
glxgears: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

That little libGL.so.1 is ruin my day. I can't run X as a ordinary user, I have to be root - but when I'm logged in as root, I can start X without any problem. I can't do anything glx-related at all anymore....

If I try to do a emerge nvidia-kernel nvidia-glx I get this:

Code:
Calculating dependencies ...done!
>>> emerge (1 of 2) media-video/nvidia-kernel-1.0.4496-r3 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-4496-pkg0.run
 * Please verify that your /usr/src/linux symlink is pointing
 * to your current kernel sources, and that you did run:
 *
 *   # make dep
 
!!! ERROR: media-video/nvidia-kernel-1.0.4496-r3 failed.
!!! Function check_version_h, Line 42, Exitcode 0
!!! /usr/src/linux symlink not setup!


I suppose that error message has something to do with a not working linking of /usr/src/linux - but I've tried to change it myself now, but without any result....

I've read SOMETHING about this - but I can't find it again. I've searched the forums the entire afternoon, but I havn't come up with anything...
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 26, 2003 5:28 pm    Post subject: Reply with quote

Moved from Desktop Environments.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun Oct 26, 2003 6:55 pm    Post subject: Reply with quote

you have to set up /usr/src/linux as a symlink to /usr/src/*yourcurrentkernel*

so, if you're using kernel 2.6.0-test8, it should be pointing to /usr/src/linux-2.6.0-test8

do this by deleting the existing symlink, and then putting the new one in

Code:
rm /usr/src/linux
ln -s /usr/src/linux-2.6.0-test8 /usr/src/linux


replacing 2.6.0-test8 with whatever your kernel is.

remember you need to remerge nvidia-glx and nvidia-kernel.


ps- why can't you start x as a normal user? what happens?
Back to top
View user's profile Send private message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Sun Oct 26, 2003 7:19 pm    Post subject: Reply with quote

thx shame on me , :oops: i shoot myself in my feet sorry .
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sun Oct 26, 2003 8:14 pm    Post subject: Reply with quote

lbrtuk wrote:
you have to set up /usr/src/linux as a symlink to /usr/src/*yourcurrentkernel*

so, if you're using kernel 2.6.0-test8, it should be pointing to /usr/src/linux-2.6.0-test8

do this by deleting the existing symlink, and then putting the new one in

Code:
rm /usr/src/linux
ln -s /usr/src/linux-2.6.0-test8 /usr/src/linux


replacing 2.6.0-test8 with whatever your kernel is.

remember you need to remerge nvidia-glx and nvidia-kernel.


ps- why can't you start x as a normal user? what happens?


well, let's make a nice copy-paste from the XF86-log :-)
Code:
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!


that's the entire issue. I have re-emerged xfree today, updated my entire system etc. etc., but still. it hates me.
If I can make my xmms work with alsa, I will try to emerge nvidia-kernel and nvidia-glx, but I refuse to do this without any loud music in the background :-)

ooh, btw, your tip about linking worked :-)
I tried to relink using ln -sf and tried to overwrite my old link, but I didn't have any success at all.

wow...(this became a quite long message...) - I emerged nvidia-kernel nvidia-glx without any problem at all :-D

wish me good luck, I'm gonna try to start X as a user :-)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun Oct 26, 2003 8:40 pm    Post subject: Reply with quote

retribrute wrote:

well, let's make a nice copy-paste from the XF86-log :-)
Code:
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!


that's the entire issue. I have re-emerged xfree today, updated my entire system etc. etc., but still. it hates me.
If I can make my xmms work with alsa, I will try to emerge nvidia-kernel and nvidia-glx, but I refuse to do this without any loud music in the background :-)


Well, here's a problem, obviously. X is trying to do stuff with dri. dri (direct rendering interface) is a thing used by some drivers (opensource ati, 3dfx etc.). But nvidia binaries don't do dri. They do their own thing.

So, it could be that you have in your XF86Config a line loading the dri module.

If you're still having troubles take it out. It ain't needed.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sun Oct 26, 2003 8:44 pm    Post subject: Reply with quote

probably stating the incomprehensibly obvious here, but have you tried opengl-update nvidia?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun Oct 26, 2003 8:47 pm    Post subject: Reply with quote

He didn't have nvidia-glx installed properly, so it wouldn't have helped.

Plus at the end of the ebuild of nvidia-glx it automatically runs opengl-update.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sun Oct 26, 2003 8:57 pm    Post subject: Reply with quote

lbrtuk wrote:
retribrute wrote:

well, let's make a nice copy-paste from the XF86-log :-)
Code:
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!


that's the entire issue. I have re-emerged xfree today, updated my entire system etc. etc., but still. it hates me.
If I can make my xmms work with alsa, I will try to emerge nvidia-kernel and nvidia-glx, but I refuse to do this without any loud music in the background :-)


Well, here's a problem, obviously. X is trying to do stuff with dri. dri (direct rendering interface) is a thing used by some drivers (opensource ati, 3dfx etc.). But nvidia binaries don't do dri. They do their own thing.

So, it could be that you have in your XF86Config a line loading the dri module.

If you're still having troubles take it out. It ain't needed.


everything (almost) worked again when I removed the dri-line - but the nvidia-glx hates me :-(

I had to remove the glx-line too, but I can atleast use my own desktop (and I don't have to ssh -X localhost to check my email... :-D).
I have emerged nvidia-glx a few times this evening, and I have also done the opengl-update nvidia... :-/

I think I'm going for a extensive nvidia-glx solving issue hunt on this forum... :-D
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun Oct 26, 2003 11:53 pm    Post subject: Reply with quote

Keep in mind that nvidia-glx and nvidia-kernel have to be the same version.

Plus remember that the driver has to be inserted into the kernel before you load X.

Code:
modprobe nvidia
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Mon Oct 27, 2003 7:26 am    Post subject: Reply with quote

doesnt have to be modprobed into the kernel for me, it just loads automatically...
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Mon Oct 27, 2003 10:12 am    Post subject: Reply with quote

lbrtuk wrote:
Keep in mind that nvidia-glx and nvidia-kernel have to be the same version.

Plus remember that the driver has to be inserted into the kernel before you load X.
Code:
modprobe nvidia


I thought of that earlier this night - here is the output.
Code:
oscar@oblivion oscar $ lsmod
Module                  Size  Used by
nvidia               1701900  -


It IS loaded, but now I can't kill it. The GLX still doesn't work....
gaah....

But hey - I can start X as a ordinary user :-D
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Mon Oct 27, 2003 2:35 pm    Post subject: Reply with quote

Does your XF86Config file have GLX module? Make sure it does not have a # in front of it.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Mon Oct 27, 2003 4:25 pm    Post subject: Reply with quote

jaska wrote:
Does your XF86Config file have GLX module? Make sure it does not have a # in front of it.


Copied straight out out /var/log/XFree86.0.log:
Code:
(EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)


...although I've installed the nvidia-glx a few times...

:-)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
Antenagora
n00b
n00b


Joined: 24 Sep 2003
Posts: 21
Location: ITALIA

PostPosted: Mon Oct 27, 2003 4:44 pm    Post subject: Reply with quote

the module is named :

nvidia

not

NVIDIA

perhaps this is your' problem; let me know cheeers ;)
_________________
Slack since 3.2 FreeBSD since 4.1 Gentoo since 1.4
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Mon Oct 27, 2003 5:22 pm    Post subject: Reply with quote

Antenagora wrote:
the module is named :

nvidia

not

NVIDIA

perhaps this is your' problem; let me know cheeers ;)


when I loaded the module (by hand, can't remember why) I did it like this:
Code:
modprobe nvidia


no caps, not anything out of the ordinary. a good point is though that the majority of the content in XFree86.0.log is written in caps :-)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Tue Oct 28, 2003 5:23 pm    Post subject: Reply with quote

something must have gotten messed up.

nvidia-glx works fine my end on 2.60 test 9

have you tried:
opengl-update

??
HTH
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Tue Oct 28, 2003 9:21 pm    Post subject: Reply with quote

irf2003 wrote:
something must have gotten messed up.

nvidia-glx works fine my end on 2.60 test 9

have you tried:
opengl-update

??
HTH


I can always try again - although I have some....errrhh....backup to download before I can kill X :-)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Tue Oct 28, 2003 9:49 pm    Post subject: Reply with quote

I re-emerged nvidia-kernel, nvidia-glx, ran a opengl-update nvidia twice etc. etc. - still nothing :-(
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Wed Oct 29, 2003 11:17 am    Post subject: Reply with quote

Hi

Can you post the "Device"- and "Module"-Section of your XF86Config?
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Wed Oct 29, 2003 2:31 pm    Post subject: Reply with quote

"I re-emerged nvidia-kernel, nvidia-glx, ran a opengl-update nvidia twice etc. etc. - still nothing"
hmm.
before we proceed any further, can you confirm that
/usr/src/linux point to your working kernel
if not do the following:-
rm /usr/src/linux
ln -sf /usr/src/linux-2.6.0-test9 /usr/src/linux
where "linux-2.6.0-test9" is the name of the directory
containing your working kernel.
then do:
emerge nvidia-kernel
emerge nvidia-glx
make sure that /etc/modules.autoload.d/kernel-2.6
contains the following line:
nvidia
Reboot, and do let us know whether the above solves your problem
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Thu Oct 30, 2003 12:04 am    Post subject: Reply with quote

irf2003 wrote:
"I re-emerged nvidia-kernel, nvidia-glx, ran a opengl-update nvidia twice etc. etc. - still nothing"
hmm.
before we proceed any further, can you confirm that
/usr/src/linux point to your working kernel
if not do the following:-
rm /usr/src/linux
ln -sf /usr/src/linux-2.6.0-test9 /usr/src/linux
where "linux-2.6.0-test9" is the name of the directory
containing your working kernel.
then do:
emerge nvidia-kernel
emerge nvidia-glx
make sure that /etc/modules.autoload.d/kernel-2.6
contains the following line:
nvidia
Reboot, and do let us know whether the above solves your problem


I removed my softlinking to /usr/src/linux, remade that link, I emerged nvidia-kernel and nvidia-glx, I added nvidia to the kernel-2.6 autoload (it wasn't there before...), rebooted.

I watched the boot sequence - and noticed that when my computer started to calculate the module dependencies, the nvidia modules wasn't loaded like it should - it failed.
...and X can't find the glx-drivers.[/quote]
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Thu Oct 30, 2003 3:35 pm    Post subject: Reply with quote

OK
modprobe nvidia
the above should take care of it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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