Solved Failing to update 15.1 with legacy Nvidia through pkgbase


Hi guys,

I followed this guide:


But I tested it twice and at the reboot I get a kernel panic just before to run the Nvidia driver and the graphical session.
In this machine I use xlibre instead of X.org, I wonder if the combo nvidia + xlibre doesn't work with 15.1... 🤔

Did I miss any special instruction to upgrade with pkgbase and Nvidia? 🤷‍♂️

Thanks... 🙏
 
Last edited:
Probably, you forgot to upgrade kmods packages.
Do you use freebsd-update or pkgbase?
Didn't well read the title.

Deactivate the loading of this driver, then upgrade. After that, upgrade specifically the FreeBSD-ports-kmods repo: pkg upgrade -fr FreeBSD-ports-kmods

Post:
pkg info -aE | grep nvidia
 
Hi Emrion , I followed the instructions, and at point 4 it recommends a similar command:

Code:
pkg upgrade -r FreeBSD-ports-kmods

However, when I ran that command, it updated only the generic DRM driver and not any Nvidia or Xlibre related packages.

I read that someone disabled to load the GPU module (AMD) on rc.conf, I didn't have any issue with Intel for instance.
 
Use the force flag (-f). Then, post the package names of the nvidia drivers.
It may be the xlibre fault or not. You have to dig a little to make a point.
 
I've got this reply from T-Aoki on the #Fediverse:

Currently, NVIDIA-related kmods are NOT built on kmod repo except x11/nvidia-kmod, and waiting for admins of kmod builders to look into why.

So building x11/nvidia-kmod* and graphics/nvidia-drm-*-kmod* that you have locally is recommended.

Don't forget to make /usr/src (at least, /usr/src/sys) to be 100% in sync with your running kernel at least you're using graphics/nvidia-drm-*-kmod*.
This is because it depends on LinuxKPI and KBI of LinuxKPI are fragile unlike other parts.

OTOH, x11/nvidia-kmod* are relatively robust on kernel updates.
It was before I've started maintaining it, but at a minor version upgrades (forgot which it was), I've once forgot to rebuild x11/nvidia-driver (at the moment, x11/nvidia-kmod* weren't yet splitted out from it), but xorg started as if I've NOT forgotton to rebuild it.

I think I'll wait another month... 🤔
 
If it is just a matter to compile some ports, it's not complicated. You should try. With git you fetch the ports collection. You'll find all the informations in the handbook:

And, if you don't have yet the sources:
git clone --branch releng/15.1 https://git.FreeBSD.org/src.git /usr/src

That said, I'm not convinced. I have an old nvidia card which work well under 15.1-RELEASE. No compilation was done, just the right choice of the nvidia drivers. Well, I dont use xlibre.
 
I have an old Nvidia too (gx970m) and even though today I got some updates, I got again the kernel panic. I start to believe the problem is Xlibre.
 
I removed xlibre and installed xorg, but the kernel continue to go in panic.

I don't understand how to upgrade to 15.1, I am very confused... 😩
 
Eventually I compiled the following packages from Ports, not sure what were the ones necessary thus I did all of them:

Code:
nvidia-drm-66-kmod-580-580.173.02.1501000_1 NVIDIA DRM Kernel Module
nvidia-kmod-580-580.173.02.1501000 NVIDIA graphics driver kernel module
xlibre-nvidia-driver-580-580.173.02 NVIDIA graphics driver userland

Maybe I could spare to do the Xlibre one since is not a kernel module... 🤔
 
Eventually I compiled the following packages from Ports, not sure what were the ones necessary thus I did all of them:

Code:
nvidia-drm-66-kmod-580-580.173.02.1501000_1 NVIDIA DRM Kernel Module
nvidia-kmod-580-580.173.02.1501000 NVIDIA graphics driver kernel module
xlibre-nvidia-driver-580-580.173.02 NVIDIA graphics driver userland

Maybe I could spare to do the Xlibre one since is not a kernel module... 🤔
The only difference within xorg flavor (default) and xlibre flavor of x11/nvidia-driver* is just which to depend upon x11-servers/xorg-server or x11-servers/xlibre-server.

And even if it actually works, NVIDIA doesn't (yet?) state supports for XLibre, as far as I could hear until now. So if any issue happenes only on XLibre, fixes needed to be done by XLibre side.
 
The only difference within xorg flavor (default) and xlibre flavor of x11/nvidia-driver* is just which to depend upon x11-servers/xorg-server or x11-servers/xlibre-server.

And even if it actually works, NVIDIA doesn't (yet?) state supports for XLibre, as far as I could hear until now. So if any issue happenes only on XLibre, fixes needed to be done by XLibre side.

It works with Xlibre too. I am using Xlibre on this Laptop with an Nvdia discrete mGPU.
However I as wrote you on the Fediverse, I would prefer the installer handling these missing bits, I understand that historically FreeBSD users love have control over the OS, but these 'mechanics' steps that must be done regardless I'd like to have them delegated, so after the upgrade, when I boot the computer, it just works as expected.
 
Back
Top