LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2020, 04:27 PM   #16
Rita G.
Member
 
Registered: Jan 2008
Posts: 157

Original Poster
Rep: Reputation: 25

Thanks Richard,
Doesn’t work . . .
I did it over and over again and I keep getting the same ‘error’.

ERROR: unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA GPU(s) , or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries ‘Kernel module load error’ and ‘Kernel messages’ at the end of the file ‘/var/log/nvidia-installer.log’ for more information.
 
Old 10-08-2020, 05:26 PM   #17
slackerz
Member
 
Registered: Aug 2020
Posts: 73

Rep: Reputation: 23
You can't load any Kernel module/driver without knowing something about the sources that the module was built against. Whatever the nvidia modules are, I suspect that you're trying to load into Kernel 4.4 (the Slackware-14.2 kernel) and this is too old now. For now, install this 5.4 LTS kernel and see if nvidia.ko loads.

https://slackware.pkgs.org/current/s..._64-1.txz.html
https://slackware.pkgs.org/current/s..._64-1.txz.html
https://slackware.pkgs.org/current/s...rch-1.txz.html
 
Old 10-08-2020, 05:59 PM   #18
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by slackerz View Post
You can't load any Kernel module/driver without knowing something about the sources that the module was built against. Whatever the nvidia modules are, I suspect that you're trying to load into Kernel 4.4 (the Slackware-14.2 kernel) and this is too old now. For now, install this 5.4 LTS kernel and see if nvidia.ko loads.
Just out of curiosity: Is this a problem with the specific nVidia driver the OP mentioned? What is the latest 4.x kernel known to work?

Back on topic: I would extend the suggestion someone else made about level "3" by setting that up in the "id" record in /etc/inittab until such time as the nVidia driver is loading/working when "startx" is used to bring up X11. Once it's working, change /etc/inittab back to use level "4". If for no other reason than to avoid having to manually kill a non-functioning X11 time after time.
 
Old 10-08-2020, 06:07 PM   #19
slackerz
Member
 
Registered: Aug 2020
Posts: 73

Rep: Reputation: 23
Quote:
Originally Posted by rnturn View Post
Just out of curiosity: Is this a problem with the specific nVidia driver the OP mentioned? What is the latest 4.x kernel known to work?

Back on topic: I would extend the suggestion someone else made about level "3" by setting that up in the "id" record in /etc/inittab until such time as the nVidia driver is loading/working when "startx" is used to bring up X11. Once it's working, change /etc/inittab back to use level "4". If for no other reason than to avoid having to manually kill a non-functioning X11 time after time.
You can load the module at boot or do it manually. It doesn't matter either way. The point being that the module has to be compatible with the kernel.
Again, this has nothing to do with X11.
 
Old 10-09-2020, 03:33 AM   #20
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by slackerz View Post
You can load the module at boot or do it manually. It doesn't matter either way. The point being that the module has to be compatible with the kernel.
Again, this has nothing to do with X11.
Ah. I got the impression that there was a build problem that was resulting in a bad module that wasn't loading for some reason. I've stuck with stock kernels for ages and rebuild the driver via nVidia's ".run" file when the kernel is updated. For me, working in level 3 is more convenient and then change the run level when all the sausage making is done.

Cheers...
 
Old 10-09-2020, 06:08 AM   #21
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Am I right in assuming that when you use the NVIDIA-foo.run installer from Runlevel 3 it completes without error? If that is true then it would appear the installer may be installing to the wrong kernel, not the one actually in use. It would not complete if it didn't build the nvidia.ko module and place it in "/lib/modules/<kernel version>.

So can you verify that your bootloader (or the boot item you select) points to a kernel that has the source (and headers if you don't build your own kernel) in "/usr/src/linux" and also the same kernel version in "/lib/modules"? I know it seems a bit of a pain, but I think there must be some mismatch for the module to build and install but not be found afterwards. In any case it would be worth eliminating that possibility.
 
  


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
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
Lost panel in Gnome -- now I'm completely lost! webwench Linux - Newbie 3 04-30-2005 01:38 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 09:01 AM
C++ templates + linked lists... lost.. very lost.. exodist Programming 2 05-12-2004 11:04 PM

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

All times are GMT -5. The time now is 04:38 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