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 08-14-2022, 10:45 AM   #1
drew_gui
LQ Newbie
 
Registered: Dec 2021
Distribution: Slackware64 15.0
Posts: 22

Rep: Reputation: Disabled
kernel upgrade procedure with nvidia-kernel


I'm running proprietary nvidia drivers on Slackware 15 multilib (so nvidia-driver and nvidia-kernel from slackbuilds.org)

If I was to upgrade my kernel, I assume this would break nvidia, as my modules would need to be upgraded as well. Can i just rebuild the package from the slackbuild and reinstall once im running the newer kernel? Is it necessary to uninstall nvidia-kernel before the kernel upgrade takes place?
 
Old 08-14-2022, 10:58 AM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,116

Rep: Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289
Each time you change your kernel you need to re-install the Nvidia driver.
I have always uninstalled the Nvidia driver, than installed the new kernel, then re-installed the Nvidia driver. If you are using the driver from .SBo, you'll need to rebuild both the Nvidia kernel module and then the driver.
Instructions for the .SBo driver and kernel module are available on each appropriate page at .Sbo.
http://www.slackbuilds.org/result/?s...nvidia&sv=15.0
If you try the package directly from Nvidia (which is both the Nvidia kernel module and the driver in one package) installation instructions are available under the heading, "additional information."
https://www.nvidia.com/en-us/drivers/unix/

Last edited by cwizardone; 08-14-2022 at 11:09 AM.
 
1 members found this post helpful.
Old 08-14-2022, 11:03 AM   #3
drew_gui
LQ Newbie
 
Registered: Dec 2021
Distribution: Slackware64 15.0
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quick clear response, thank you, I hadn't considered that I would need to reinstall nvidia-driver as well
 
Old 08-14-2022, 12:05 PM   #4
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Quote:
Originally Posted by cwizardone View Post
Each time you change your kernel you need to re-install the Nvidia driver.
I have always uninstalled the Nvidia driver, than installed the new kernel, then re-installed the Nvidia driver.
I do this also.
 
1 members found this post helpful.
Old 08-14-2022, 12:10 PM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
You are using the SlackBuilds.org nvidia-kernel and nvidia-driver?
As long as you stick with the same version of the NVIDIA run file, there is no need to recompile or re-install the nvidia-driver package. You can compile nvidia-kernel for multiple kernels that you have installed on your computer as long as all of them are for the same NVIDIA version that the nvidia-driver was also built from.

Summarizing: if you install a new kernel, then before your reboot you compile a new nvidia-kernel package, and install that.

You'll have to explicitly tell the nvidia-kernel.SlackBuild script that it should not compile for the running kernel but for the new kernel that you just installed. For instance if NVIDIA version is 515.65.01 and your new kernel is 5.18.17:

Code:
export KERNEL=5.18.17; ./nvidia-kernel.SlackBuild
installpkg /tmp/nvidia-kernel-515.65.01_5.18.17-x86_64-1_SBo.t?z
Using 'installpkg' allows you to have multiple nvidia-kernel packages installed for all the kernels that you can boot from on your computer.
 
1 members found this post helpful.
Old 08-14-2022, 03:18 PM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,116

Rep: Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289Reputation: 7289
Quote:
Originally Posted by Windu View Post
You are using the SlackBuilds.org nvidia-kernel and nvidia-driver?
As long as you stick with the same version of the NVIDIA run file, there is no need to recompile or re-install the nvidia-driver package.......
That has not been my experience.
 
Old 08-14-2022, 03:41 PM   #7
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Quote:
Originally Posted by cwizardone View Post
That has not been my experience.
Different experience then. I never recompile or even re-install nvidia-driver when the NVIDIA version stays the same. Just compile and install a new nvidia-kernel and reboot. Works all the time.
 
Old 08-14-2022, 06:37 PM   #8
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 163

Rep: Reputation: 154Reputation: 154
I use driver version 390.xxx, and I have just been installing it using the nvidia .run file. When I upgrade the kernel (on 15.0, not current), I boot to run level 3 with the huge kernel, do my mkinitrd stuff, boot to generic, the re-compile nvidia using the .run file, and then I'm off to X via startx.

The .run file always tells me there is a previous driver installed (whether its the same version or not), and rebuilds whatever it needs to rebuild (kernel portions, driver).

I've never gone the SBo route.
 
Old 08-14-2022, 07:20 PM   #9
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
the .run file is much easier for me... I'm on -current and kernel upgrades are common for me. I'm always in runlevel 3 so i just su - then sh <nvidia .run file> and follow the prompts. it's snazzy.
I dont un-install the old Nvidia driver unless i meet problems which is rarely

Last edited by Regnad Kcin; 08-14-2022 at 07:30 PM.
 
Old 08-14-2022, 08:58 PM   #10
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 916

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
With the nvidia .run file on -current (where kernel version changes often), I use and recommend DKMS (development/dkms at SBo). Once installed, you can enable dkms support when running the nvidia installer. Now, whenever a new kernel version is installed, do nothing - just reboot, at which time the driver will be rebuilt for you (provided you've edited rc.modules.local, as described in the README).

chris
 
2 members found this post helpful.
Old 08-15-2022, 08:23 AM   #11
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 163

Rep: Reputation: 154Reputation: 154
The last couple of times I've upgraded my kernel on 15.0, the nvidia .run file has offered to add the rebuild to the DKMS settings for me. (I had installed DKMS for something else that insisted needed it - I think it was the motherboard sensors module for my ASUS mobo.)

Since I have not yet spent time to figure out how to use DKMS properly, I've told nvidia not to do that. Sticking to the "if it works, don't fix it" policy.
 
1 members found this post helpful.
Old 08-15-2022, 10:45 AM   #12
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,547

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
The "-K" option is nice, btw. It'll only build the kernel module (for the current kernel) and not reinstall everything else, which means your last known-good kernel also has video card drivers. (This was useful when 5.19 wouldn't boot.) I clean things out and uninstall drivers every other kernel or so, when I know the new kernel boots, or if there's a new video card driver.
 
1 members found this post helpful.
Old 08-15-2022, 03:11 PM   #13
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 569

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by chrisretusn View Post
I do this also.
Same here.
Step 1. Compile new kernel, headers, modules and install/reboot
Step 2. Compile latest nvidia kernel and driver.
Step 3. ???
Step 4. Profit!
 
  


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] Stretch raid1 on /boot partition and kernel upgrade procedure jsep Debian 1 12-30-2017 03:58 PM
[SOLVED] is my nvidia driver working fine? what's the standard procedure portia Slackware 11 05-05-2011 03:13 AM
kernel upgrade procedure Ibrahimbazar Linux - Kernel 2 05-29-2006 08:16 AM
RedHat AS 3.2 to 3.4 upgrade procedure dollster31 Linux - Software 1 02-16-2005 04:26 PM
I need to upgrade to a recent Squid version, I need a Step by step procedure mfeoli Linux - Newbie 4 01-14-2004 10:14 AM

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

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