Hello
I am struggling with getting Kernel 5.4 working with rocky & particularly NVIDIA.
I need to get 5.4 working as the Rocky
I need to get 5.4 working as the Rocky 4.18 kernel does have a couple of drivers that I need.
I have no problem installing the 5.4 LT kernel using the method below.
At reboot, the 5.4 stops on a black screen and no commands can move to a terminal command. This is where I presume where the NVIDIA drivers should load, but don’t because that are not associated to this kernel.
In the list of boot kernels, I see 4.18 & 5.4 but when I load 4.18, 5.4 is not in the list of available kernels.
When you did install kernel from ELRepo, you did see that the name of the package is not ‘kernel’.
Ask: dnf list installed kernel\*
ELRepo builds additional modules for RHEL kernels, because Red Hat does not include some in the kernel.
ELRepo does not build separate modules for their LT and ML kernels, because they already include modules as they do build those kernels and hence choose what those have. However, they don’t include the NVidia’s module.
You need a version/distribution of NVidia’s driver that you “compile” into kernel module on your system. Some RPMs (not ELRepo) have that via ‘dkms’ – compile during boot, if kernel does not have the module yet. I don’t know whether any of those can compile for LT or ML. Then there is that NVidia’s binary blob (not managed RPM). It might compile. It does for RHEL 9 that does have 5.** kernel. Ugly, but when it is that or nothing …
Thank you for replying. The line above does the trick … But I think I am in over my head. I have already broken a system trying to do this. I see that Rocky 9 will be out soon, maybe I am better waiting for the official 5.4 kernel in the hope that this build will have the stex driver I need?
This is a bit of an old subject but I got lost in a rabbit hole of kernel versions when updates appeared.
So this time, as I am not a linux master, I want to keep as close to the roadmap as possible.
Apparently the stex driver has been removed from RHEL8 (therefore Rocky Linux 8). You can ask ELRepo to provide the driver (as a kmod package) for EL8 via ELRepo’s bug tracker.
Can’t I try on 8.6? I have just searched kmod installl (as I have never done this before) and not found much . Will the driver show up with something like
Toracat, a thousand thank yous for all this. I installed the rpm and the disk mounts perfectly on 8.6. I will share this thread on the Promise forum (I don’t understand why Promise did not do this themselves).
Many thanks
Christopher
From what I understand, the NVIDIA drivers are built for each kernel. Any kernel change means that you have to rebuild the NVIDIA drivers as explained above. There is meant to be a function that does this automatically but it has never worked for me. You can check that this is true because you should have your old kernel build in the startup list and I would expect your NVIDIA card to work with that build.
All kernel modules are built for a specific version of kernel. Most modules do come with kernel, so we don’t have to worry about them. It is the additional modules that we have to add.
Primary method is to install new kernel and install/build the additional module made for the new version (before boot to new kernel)
There are tools (akmod, dkms?) that during boot detect that kernel lacks module and build it on the spot. Should work for graphics, won’t work for storage driver since one cannot access the storage without the driver.
ELRepo approach. RHEL kernels within point updates, e.g. all the 4.18.0-372*, are so similar that same module works with all of them if the version string dependency is stripped from the module. That is how ELRepo builds additional kernel modules. The kernels of next point update will require a new/rebuilt module.