Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
drbenway
n00b
n00b


Joined: 26 Jan 2006
Posts: 56

PostPosted: Thu Mar 30, 2006 5:48 pm    Post subject: Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes Reply with quote

Hi people.

Kernel 2.6.16 and the Nvidia graphics and nforce sound drivers are not compatible. If you try to install them you will not be able to build the kernel module.

There is however a patch for each driver.

Nvidia graphics - http://www.nvnews.net/vbulletin/showthread.php?t=62021

Nforce (nvsound) - https://bugs.gentoo.org/show_bug.cgi?id=119284
-> Just click on the fix link, then copy the text into a file (call it something.diff) then use the same technique as mentioned in the Nvidia graphics link to patch the driver
-> even though it says GCC 4.1 patch it also works with GCC 3.5 (i am using 3.5)

I hope this helps someone, I stopped using SUSE purely due to the fact the NFORCE driver didn't work, i am so happy that i moved to Gentoo !

Cheers
Back to top
View user's profile Send private message
alexiadeath
n00b
n00b


Joined: 29 Mar 2006
Posts: 30
Location: EST

PostPosted: Thu Mar 30, 2006 6:24 pm    Post subject: Reply with quote

8O well the 8174 nvidia-kernel ebuild compiled for me. But it would not start. dmesg screamed about client not supporting versioning and thats it. The stuff I tried between 6299 and this did not even compile.
Back to top
View user's profile Send private message
drbenway
n00b
n00b


Joined: 26 Jan 2006
Posts: 56

PostPosted: Fri Mar 31, 2006 4:28 pm    Post subject: Reply with quote

Hi.

The guide is meant to work with the latest binary driver from nvidia.com not the ebuild.

Have a go with the latest driver.
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Sun Apr 09, 2006 3:51 pm    Post subject: Reply with quote

I found creating a custom installer, just like they suggested for the Nvidia Graphics drivers, a nice solution for when I do happen to need to reinstall the nvsound drivers on the 2.6.16xxx series kernels.
Thought I'd share my example of how I went about it, as it's slightly different than the way you'd do it for the graphics drivers:

NOTE: I did all of this from an empty directory called /tmp/NFORCE, where I moved the NFORCE-Linux-x86-1.0-0310-pkg1 folder into, that had been previously patched...
Code:

sh NFORCE-Linux-x86-1.0-0310-pkg1/usr/bin/makeself.sh --bzip2 \
--target-os Linux --target-arch x86 \
NFORCE-Linux-x86-1.0-0310-pkg1 \
NFORCE-Linux-x86-1.0-0310-pkg0-custom.run \
"NFORCE Advanced Sound Driver for Linux-x86 1.0-0310" \
./nforce-installer


You can change the "NFORCE Advanced Sound Driver" part to whatever you wish, as I was just in a hurry and came up with that :P

Thanks for the info on the fixes as well, drbenway :)
Back to top
View user's profile Send private message
drbenway
n00b
n00b


Joined: 26 Jan 2006
Posts: 56

PostPosted: Wed Apr 12, 2006 9:48 am    Post subject: Reply with quote

Hi.

Just to update you......

The Good :-

Nvidia have released a new nvidia driver that works in kernel 2.6.16 (without patching).

http://www.nvidia.com/object/linux_display_ia32_1.0-8756.html

The Bad:-

- It seems to make the refresh rate stuck at 70 hz (intead of 85), any i do cannot change the refresh rate.

I have reverted to the previous driver and the patch, but please try the new one and see if it works for you.

Cheers
Back to top
View user's profile Send private message
KpR2000
n00b
n00b


Joined: 18 Aug 2003
Posts: 55

PostPosted: Wed Apr 12, 2006 2:47 pm    Post subject: Re: Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes Reply with quote

drbenway wrote:

-> even though it says GCC 4.1 patch it also works with GCC 3.5 (i am using 3.5)


patched successfully. But nvsound module does still _not_ work with gcc-3.4.5 and kernel 2.6.16. Should I upgrade gcc to version 3.5? Would it helps?
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Wed Apr 12, 2006 5:54 pm    Post subject: Re: Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes Reply with quote

KpR2000 wrote:
drbenway wrote:

-> even though it says GCC 4.1 patch it also works with GCC 3.5 (i am using 3.5)


patched successfully. But nvsound module does still _not_ work with gcc-3.4.5 and kernel 2.6.16. Should I upgrade gcc to version 3.5? Would it helps?

INvsound is working with gcc 3.4.5 just fine for me. Sounds like you may have something misconfigured or such... I dunno.
Back to top
View user's profile Send private message
andrei.neagu
n00b
n00b


Joined: 13 Apr 2006
Posts: 3
Location: Germany

PostPosted: Thu Apr 13, 2006 2:08 pm    Post subject: nvidia driver installer Reply with quote

Hi all,
I just finished installing gentoo but i have a problem installing the nvidia driver. I've downloaded the newest driver from nvidia and i run it but i got an error message that sas the driver isent kopiled with the same gcc version as the kernel, and that nvidia.ko can't be loaded.
This cant be pausible because i didnt do any update what so ever. To be sure, because i am a complet novice with gentoo, i got the latest kernel source 2.6.15-gentoo-r1 and installed it. After all that i tried installing the nvidia driver but i got the same error. I read the nvidia FAQ for this problem, but i dont know how to set IGNORE_CC_MISMATCH... .
Back to top
View user's profile Send private message
drbenway
n00b
n00b


Joined: 26 Jan 2006
Posts: 56

PostPosted: Thu Apr 13, 2006 4:16 pm    Post subject: Reply with quote

Hi andrei.neagu.

I sounds like either

1) Maybe gcc has been upgraded since you compiled the kernel? - most likely

You can check this by comparing these 2 values:-

cat /proc/version -> will tell you what version of gcc was used to compile the kernel
gcc -v -> will tell you what your default gcc version is

- make sure they match, if not recompile the kernel and try again.

2) Or the kernel source dir is incorrect - ie /usr/src/linux is pointing to the incorrect place?
Back to top
View user's profile Send private message
andrei.neagu
n00b
n00b


Joined: 13 Apr 2006
Posts: 3
Location: Germany

PostPosted: Sat Apr 15, 2006 2:15 pm    Post subject: Reply with quote

well tanks.
The gcc version is 3.3.5
and in the /proc/version is the same thing and the link is good it points to /usr/src/linux-2.6.15-gentoo-r1.
Well i updated the the gcc to 3.4.5 and rekompiled the kernel.
On gcc -v i get 3.4.5
but in proc/version the gcc version is 3.3.5
and the nvidia driver stil dosen't work.
how do you update the /proc/version or shoudn't it be done automaticly?
thanks.
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Sat Apr 15, 2006 5:32 pm    Post subject: Reply with quote

Try running a: gcc-config -l

Like this:
Code:

HyperonMX1 / # gcc-config -l
 [1] i686-pc-linux-gnu-3.3.5 *
 [2] i686-pc-linux-gnu-3.4.5


I believe the example above is how your current gcc profile is setup, as it lists gcc-3.3.5 as being active.
To switch profiles, use something like:
Code:

gcc-config 2

Where the number '2' is the number of your gcc-3.4.5 profile.
Remember to do an env-update && source /etc/profile afterwards.

Run gcc-config -l again to make sure it did switch profiles, and then prune your old gcc version like so:
Code:

emerge -P gcc


I have no idea if that will fix your problem though, but at least that gets you running with the newer gcc :)
Back to top
View user's profile Send private message
andrei.neagu
n00b
n00b


Joined: 13 Apr 2006
Posts: 3
Location: Germany

PostPosted: Sun Apr 16, 2006 2:24 pm    Post subject: Reply with quote

well tanks
I will reinstall everything again, i did some experiments in grub and now my pc dont even boot.
so il try it again.
thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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