LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-06-2016, 06:07 PM   #1
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
Cannot get Nvidia driver to compile and load on current 32-bit


I have tried everything I can tink of but I have not been able to get the Nvidia driver to compile and install on a 32bit machine with current.

It is not SMP just a bog standard 32bit machine. Worked fine with Slackware 14.1 32 bit.

I get ERROR: Could not insert 'nvidia': Unknown symbol in module or unknown parameter (see dmesg)

There is nothing in dmesg about it so I am stumped.

Any suggestions
 
Old 04-06-2016, 06:20 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Perhaps this thread will help.
 
Old 04-07-2016, 12:57 PM   #3
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
This patch

https://github.com/manjaro/packages-...n-symbol.patch

and this procedure

You need to rebuilt your kernel using this mtrr.patch in order to build NVidia 304.131

go to /usr/src/linux-4.4.6
patch -p1 < /path/to/mtrr.patch
cp /boot/config-huge-4.4.6 .config
make oldconfig
make bzImage
cp arch/x86/boot/bzImage /boot/vmlinuz-huge-4.4.6
/sbin/lilo -v
reboot

After that, you can reinstall NVidia driver again.

Fixed it for me.

I guess it should work for the other kernals but I did not try as I had installed the huge to see if it was only smp that was having problems.



Thanks for the advice
 
Old 04-07-2016, 06:36 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
It is nice when things work again!

Quote:
make bzImage
On the dual core CPU box where I have been rebuilding the generic-smp-4.4 kernel, I find that adding '-j3' cuts down the compile time.
Code:
make -j3 bzImage
Quote:
cp arch/x86/boot/bzImage /boot/vmlinuz-huge-4.4.6
After copying the rebuilt kernel into place, you can also do 'make clean' to save some space and clean the source tree.
 
Old 04-07-2016, 09:05 PM   #5
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I wonder if the -j option would have any effect on a single core processor?

This old box has sadly but one core

I wonder if they ever even made any 32bit smp processors ?

Just looked it up and the Intel Core family and the Dual Core Xeon LV would appear to be 32bit

As far as I can tell AMD went straight to 64bit and never looked back

I found on this one anyway just by running the compile at the command prompt instead of the gui it ran a heck of a lot faster. Or it seemed to anyway

Yes a make clean is probably a good idea.

This really should be fixed by Nvidia or I guess in the kernal source code if that stuff is no longer needed

Although I did not really look into what exactly all that stuff was being used for.

Not everyone wants to patch and build a kernal just to load a driver.
 
Old 04-17-2016, 12:09 PM   #6
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Does anyone know if this has been fixed in the 4.7 kernel ?
 
Old 04-17-2016, 12:27 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
nope, we need to wait for updates from NVidia since this is not kernel's fault. It's NVidia that should update their drivers
 
Old 04-17-2016, 12:45 PM   #8
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Not much hope of that in this case it is the legacy driver that is causing problems.


Linux Display Driver - x86

Version: 304.131
Release Date: 2015.11.16
Operating System: Linux 32-bit

has not been updated for a while.

Maybe they will fix but I would not hold my breath

I wonder if the fix still works for 4.7

Takes a while to compile and then if it does not work have to go back to 4.6

Last edited by TarFile; 04-17-2016 at 01:04 PM.
 
Old 04-17-2016, 06:36 PM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
I wonder if the fix still works for 4.7
Works for me with the latest 4.4.7 kernel in 14.2-RC2.
 
Old 04-17-2016, 09:26 PM   #10
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
well that sounds hopeful I think I'll try one on a VM as it's about 10 times faster than the actual 32bit hardware

I hope Nvidia fixes it soon I hate to waste time recompiling the kernel for one fix
 
Old 04-18-2016, 03:23 PM   #11
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Well it worked for me too

I did make one in a VM but I think because I gave the VM 2 cpu's and it was running the SMP kernel it did not work. I am not sure about that as I thought I told it to build using the huge_4.4.7 config files That should work but the build of nividia drivers complained about a mismatch of some type.

I rebuilt it on the actual machine and it worked
 
  


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
[SOLVED] OpenJDK compile fails on 32-bit current canadensis Slackware 5 03-07-2016 08:31 AM
[SOLVED] can't compile nvidia in slackware current marbangens Slackware 4 04-10-2013 10:33 PM
Linux 2.6.25, Slack-current, and nvidia compile error spaceballs Slackware 6 04-19-2008 06:57 PM
which nvidia driver do I need 32 bit or 64 bit? dv502 Linux - Hardware 2 09-17-2007 08:25 AM
nvidia driver 'missing' after ~current and running sh NVIDIA soylentgreen Slackware 13 03-26-2007 09:17 PM

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

All times are GMT -5. The time now is 03:47 PM.

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