LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-09-2014, 04:16 AM   #1
cgorac
Member
 
Registered: Oct 2009
Posts: 146

Rep: Reputation: 87
kernel 3.14.3 and NVIDIA driver


Just upgraded to the latest updates from the repo, including kernel 3.14.3, and now NVIDIA Linux driver won't install any more. The error reported by the driver installer is "GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_lock_nested'". I was able to temporarily fix the problem through patching it to change MODULE_LICENCE("NVIDIA") strings to MODULE_LICENSE("GPL") throughout the driver source code, and driver got built and installed then. Obviously, this is wrong thing to do, so I'm wondering what is the proper approach here?

Thanks.
 
Old 05-09-2014, 04:48 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
which version of the NVIdia driver?
You know there are a lot of NVidia driver available
 
Old 05-09-2014, 04:48 AM   #3
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
For newer kernels, the Nvidia driver packages available on SBo may not build because of some changes.

What the maintainers usually do, is checking out how the Archlinux folks got it to build with the use of a patch and then, they mod the said Arch patch to fit Slackware.

That's what I needed to do for my laptop.

Please note that the scripts provided on SBo are done in such a manner that the vdpau part of the Nvidia driver is installed by a separate package to avoid some X breakages. And that's something you wont avoid if you just run the bare .run file.

If you are familiar with git, you can have a look at the git repo of Archlinux and check out the commits for the Nvidia driver you need.

For example, I need the 304.xx series driver since my 6 years old laptop has a "legacy supported" graphic card.

There's a interesting thread here on LQ about this particular driver :

http://www.linuxquestions.org/questi...xx-4175458722/

If you need help for a newer card, the git method is still valid IMHO.
 
Old 05-09-2014, 05:16 AM   #4
cgorac
Member
 
Registered: Oct 2009
Posts: 146

Original Poster
Rep: Reputation: 87
Quote:
Originally Posted by willysr View Post
which version of the NVIdia driver?
You know there are a lot of NVidia driver available
Tried several versions: latest long (331.67) and short (334.21) lived branch versions, as well as latest beta (337.19) version of the driver, and all have this problem.

(Please note also that I'm not using SBo NVIDIA driver install script, am instead installing "directly", by executing .run file provided by NVIDIA.)
 
Old 05-09-2014, 05:22 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
Try 337.12
it should work with 3.14.3
http://rglinuxtech.com/?p=1096
 
Old 05-09-2014, 05:28 AM   #6
cgorac
Member
 
Registered: Oct 2009
Posts: 146

Original Poster
Rep: Reputation: 87
Quote:
Originally Posted by willysr View Post
Try 337.12
it should work with 3.14.3
http://rglinuxtech.com/?p=1096
It doesn't work, same problem as mentioned above.
 
Old 05-09-2014, 05:46 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
Hm... the author on that blog mentioned that he successfully install the NVIdia driver on his machine (not a slackware, but it doesn't really matter actually).
I don't have the GPU that is supported by those drivers, so i can't confirm it.
 
Old 05-09-2014, 06:42 AM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Most likely it's about a debug option in the config of current kernel...

I have a NVIDIA GeForce 210 in my home computer, so I will post in short time my solution, because for sure I will have that problem too...

Now, I want to say THANKS! to OP, because I do not updated yet the system and I know what to expect.

An finally Gulp!

Last edited by Darth Vader; 05-09-2014 at 06:44 AM.
 
Old 05-09-2014, 08:54 AM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,153

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
I installed the new kernel late last night (my time) and was not able to build any of the of the following NVIDIA drivers, 325.15, 331.49 and 331.67.

There was also a new step in building, that is, trying to build, the last two. Something about building a kernel memory module.

Last edited by cwizardone; 05-09-2014 at 08:57 AM.
 
Old 05-09-2014, 09:57 AM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
lucky me then
304.121 works OK with Linux Kernel 3.14.3
 
Old 05-09-2014, 10:13 AM   #11
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,153

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
Quote:
Originally Posted by willysr View Post
lucky me then
304.121 works OK with Linux Kernel 3.14.3
304.121??!!
Just how old is your graphics card? (Said tongue-in-cheek)

Last edited by cwizardone; 05-09-2014 at 10:18 AM.
 
Old 05-09-2014, 01:56 PM   #12
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
It's not the best GPU out there, but i'm not a gamer so it still works for me
I'm kinda lazy to upgrade PC components, so i would rather build a new one, but usually i wait until the current one is really broken or unusable then i would buy a new one hehe
The exception is adding new drive which i already did this year, so i have plenty of space for multiple VMs to work with
 
1 members found this post helpful.
Old 05-09-2014, 02:43 PM   #13
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
OK, I confirm the fail of the kernel module building, in the latest NVIDIA drivers.

Suspecting that is Yet Another Linus Kick Right In The Face Of Closed Source Drivers(tm), I made a strong hand rebuild of kernel, with just a option changed:

CONFIG_DEBUG_KERNEL=n


The kernel built without debug support works fine, also All NVIDIA Stars builds fine and works fine...

So, the dirty way is: do it like me (no debug support on rebuilt kernel) or fake the driver as GPL.

BUT, I believe that is the time to ask P.V. a question: While I understand that a kernel with debug support is very fine for him, or for a kernel developer, most likely, why Slackware ship a debug enabled kernel as default, considering that the typical slacker is eventually an fine connoisseur of the noble art of BASH scripting language?
 
Old 05-09-2014, 02:59 PM   #14
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
Which kernel are you using?
I think you are running a huge kernel which built everything inside the kernel
Try switching to generic kernel (don't forget to create initrd to support your filesystems) and reinstall nvidia driver
It should work out of the box
 
Old 05-09-2014, 02:59 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Slackware's latest current kernel is labeled for the 3.12 Kernel series.

If you want to update the kernel properly to a newer edition you need to run "make oldconfig" with the proper 3.12 configuration file renamed as .config and select the defaults, then use "make menuconfig" to further customize it before building and installing it.

Patrick ships what he feels he needs to for a broad audience of users, admins, and developers, and leaves the rest up to you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA kernel module version is different from NVIDIA driver lalik Linux - Newbie 2 09-16-2010 03:32 PM
Nvidia Driver will not install for Dual Screen LCD - Driver is mde for Xen Kernel isinkaye Linux - Software 1 02-20-2010 04:31 AM
Kernel 2.6.8 Nvidia Driver Thoron Debian 1 05-05-2005 10:05 PM
Nvidia driver and Kernel 2.6.3 jriis Debian 6 04-15-2004 03:00 AM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration