Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
drbenway
n00b
n00b
Posts: 56
Joined: Thu Jan 26, 2006 1:05 pm

Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes

  • Quote

Post by drbenway » Thu Mar 30, 2006 5:48 pm

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) - http://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
Top
alexiadeath
n00b
n00b
Posts: 30
Joined: Wed Mar 29, 2006 11:53 am
Location: EST

  • Quote

Post by alexiadeath » Thu Mar 30, 2006 6:24 pm

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.
Top
drbenway
n00b
n00b
Posts: 56
Joined: Thu Jan 26, 2006 1:05 pm

  • Quote

Post by drbenway » Fri Mar 31, 2006 4:28 pm

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.
Top
Mousee
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Mon Mar 29, 2004 7:14 am
Location: Illinois, USA

  • Quote

Post by Mousee » Sun Apr 09, 2006 3:51 pm

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: Select all

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 :)
Top
drbenway
n00b
n00b
Posts: 56
Joined: Thu Jan 26, 2006 1:05 pm

  • Quote

Post by drbenway » Wed Apr 12, 2006 9:48 am

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_disp ... -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
Top
KpR2000
n00b
n00b
Posts: 55
Joined: Mon Aug 18, 2003 5:04 pm

Re: Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes

  • Quote

Post by KpR2000 » Wed Apr 12, 2006 2:47 pm

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?
Top
Mousee
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Mon Mar 29, 2004 7:14 am
Location: Illinois, USA

Re: Kernel 2.6.16 - Nvidia and Nvsound drivers - fixes

  • Quote

Post by Mousee » Wed Apr 12, 2006 5:54 pm

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.
Top
andrei.neagu
n00b
n00b
Posts: 3
Joined: Thu Apr 13, 2006 1:47 pm
Location: Germany

nvidia driver installer

  • Quote

Post by andrei.neagu » Thu Apr 13, 2006 2:08 pm

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... .
Top
drbenway
n00b
n00b
Posts: 56
Joined: Thu Jan 26, 2006 1:05 pm

  • Quote

Post by drbenway » Thu Apr 13, 2006 4:16 pm

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?
Top
andrei.neagu
n00b
n00b
Posts: 3
Joined: Thu Apr 13, 2006 1:47 pm
Location: Germany

  • Quote

Post by andrei.neagu » Sat Apr 15, 2006 2:15 pm

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.
Top
Mousee
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Mon Mar 29, 2004 7:14 am
Location: Illinois, USA

  • Quote

Post by Mousee » Sat Apr 15, 2006 5:32 pm

Try running a: gcc-config -l

Like this:

Code: Select all

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: Select all

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: Select all

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 :)
Top
andrei.neagu
n00b
n00b
Posts: 3
Joined: Thu Apr 13, 2006 1:47 pm
Location: Germany

  • Quote

Post by andrei.neagu » Sun Apr 16, 2006 2:24 pm

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
Top
Post Reply

12 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy