You are not logged in.
I'm currently using the standard, compiled kernel from the linux package, but I'm planning to switch to a custom-compiled kernel, like linux-ck. I'm not sure what I need to do before switching.
I figured that I probably need to generate a list of kernel modules that need to be reinstalled and recompiled with dkms support, but I'm not sure how I should do that. Also, are there any other things I'd need to do?
Offline
How are you building the kernel? If you are using a package (e.g., from repo-ck) or a PKGBUILD, you don't need to do any of the above, just install the packages.
If you are building manually, then you do need to build the modules as well, but this is a standard part of the build/install covered by the kernel's makefile. But if you don't use a package/PKGBUILD, you will need to manually trigger the dkms rebuilds.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
How are you building the kernel? If you are using a package (e.g., from repo-ck) or a PKGBUILD, you don't need to do any of the above, just install the packages.
If you are building manually, then you do need to build the modules as well, but this is a standard part of the build/install covered by the kernel's makefile. But if you don't use a package/PKGBUILD, you will need to manually trigger the dkms rebuilds.
Thanks. I understand this part, but my main concern is that some of my drivers (e.g. my NVIDIA driver) are installed as binary packages, and IIRC I'll have to reinstall them as DKMS packages to work with custom kernels. I'm not sure how to find all binary kernel module packages that I'd have to replace, though.
Offline
Ok, again how are you building or obtaining the new kernel? Repo-ck contains nvidia packages for the ck kernel.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Ok, again how are you building or obtaining the new kernel? Repo-ck contains nvidia packages for the ck kernel.
I'm just going to use a PKGBUILD from the AUR, not a big fan of extra repositories.
Offline
Thanks. I understand this part, but my main concern is that some of my drivers (e.g. my NVIDIA driver) are installed as binary packages, and IIRC I'll have to reinstall them as DKMS packages to work with custom kernels. I'm not sure how to find all binary kernel module packages that I'd have to replace, though.
How hard is it to look at which packages you have installed that depend on the "linux" package? (Hint: pacman -Qi linux ==> Required By)
Is your nvidia driver installed without using pacman, or something?
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
xuanrui wrote:Thanks. I understand this part, but my main concern is that some of my drivers (e.g. my NVIDIA driver) are installed as binary packages, and IIRC I'll have to reinstall them as DKMS packages to work with custom kernels. I'm not sure how to find all binary kernel module packages that I'd have to replace, though.
How hard is it to look at which packages you have installed that depend on the "linux" package? (Hint: pacman -Qi linux ==> Required By)
Is your nvidia driver installed without using pacman, or something?
> How hard is it to look at which packages you have installed that depend on the "linux" package? (Hint: pacman -Qi linux ==> Required By)
Oops. Good catch, I was being stupid. I'd usually use pactree, but you got it.
> Is your nvidia driver installed without using pacman, or something?
No, it is installed with pacman, but if the Wiki is correct then the "nvidia" package is a built binary and only works with linux and linux-lts kernels.
Last edited by xuanrui (2019-02-18 02:51:36)
Offline
Which is precisely why I noted that repo-ck includes a nvidia package built for the ck kernel. If you are building your own ck kernel, then you'll have to rebuild your own nvidia package for it too. And the PKGBUILD for nvidia-ck (and several other nvidia driver versions to build for ck) is in the AUR.
Last edited by Trilby (2019-02-18 02:54:07)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Which is precisely why I noted that repo-ck includes a nvidia package built for the ck kernel. If you are building your own ck kernel, then you'll have to rebuild your own nvidia package for it too.
I'm fine with (and actually prefer) building my own kernel modules, but thanks for the pointers :-)
Offline
> How hard is it to look at which packages you have installed that depend on the "linux" package? (Hint: pacman -Qi linux ==> Required By)
Oops. Good catch, I was being stupid. I'd usually use pactree, but you got it.
> Is your nvidia driver installed without using pacman, or something?
No, it is installed with pacman, but if the Wiki is correct then the "nvidia" package is a built binary and only works with linux and linux-lts kernels.
Right, and since it is installed by pacman, pacman can be used to find the dependency links as mentioned above! Which was my point.
But now that you mention it, no, "nvidia" does not work with the linux-lts kernel, "nvidia" is built exclusively for the "linux" kernel and "nvidia-lts" is built for the "linux-lts" kernel.
Much like "nvidia-ck" is an AUR package that works with the AUR package for the "linux-ck" kernel. Though you are of course free to install the official repository package for "nvidia-dkms" instead.
EDIT: obvious typo "linux-lts => "linux-ck"
Last edited by eschwartz (2019-02-18 03:22:29)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
xuanrui wrote:> How hard is it to look at which packages you have installed that depend on the "linux" package? (Hint: pacman -Qi linux ==> Required By)
Oops. Good catch, I was being stupid. I'd usually use pactree, but you got it.
> Is your nvidia driver installed without using pacman, or something?
No, it is installed with pacman, but if the Wiki is correct then the "nvidia" package is a built binary and only works with linux and linux-lts kernels.
Right, and since it is installed by pacman, pacman can be used to find the dependency links as mentioned above! Which was my point.
But now that you mention it, no, "nvidia" does not work with the linux-lts kernel, "nvidia" is built exclusively for the "linux" kernel and "nvidia-lts" is built for the "linux-lts" kernel.
Much like "nvidia-ck" is an AUR package that works with the AUR package for the "linux-lts" kernel. Though you are of course free to install the official repository package for "nvidia-dkms" instead.
Thanks for pointing that out I've never used "linux-lts" but now I know something about it XD
Turns out I also had the VirtualBox host modules, which I replaced with "virtualbox-host-dkms". I think I'm be all set now. Thanks!
Offline