|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
KLD nvidia-modeset.ko: depends on kernel - not available or version mismatch
Hello,
I am using FreeBSD -current since a few weeks with nvidia driver. It was working correctly since I update with pkg update && pkg upgrade 4 or 5 days ago. I've set "nvidia_load" and "nvidia-modeset_load" to my loader.conf and set "linux_enable" in my rc.conf. Now, if I try to start X with nvidia driver, here's what I'll get from Xorg.log : [ 33.729] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. [...] And here is what dmesg says about it : KLD nvidia-modeset.ko: depends on kernel - not available or version mismatch linker_load_file: /boot/modules/nvidia-modeset.ko - unsupported file type |
|
|||
You have to rebuild /usr/ports/x11/nvidia-driver from ports, I think.
Here, for now I load it by the commands: kdlload /boot/modules/nvidia.ko kldload /boot/modules/nvidia-modeset.ko Which for now fail in loader.conf, and without both, produce a blank Xorg. But this workaround works... should be not too difficult. Of course, YMMV ...took me a few hours of harried guesswork...
__________________
FreeBSD 13-STABLE |
|
|||
Good, I'll build it then and I come back to tell you if it changed anything.
kldload gives the same result as when it loads at boot time. The error message is coming from dmesg anyway so it's the same I load during boot or after boot. |
|
|||
No, even built from ports, the problem is still the same.
I tried to don't load them in boot time, I commented the two lines then reboot. I tried to load them after with the kldload command with the path from root as you did but the message is exactly the same. In case you ask, of course I uninstalled the package nvidia-driver from the repositories. I suppose it won't let me install a built package if it is already installed, eventually build and make the package but it will stop at the moment when it tries to install it so yes, I uninstalled it before to run "make -C /usr/ports/x11/nvidia-driver install clean clean-depends". Last edited by Adrien2002; 22nd May 2017 at 04:16 PM. |
|
|||
Ok I found the solution to my problem, I simply built an up to date FreeBSD kernel from sources. I don't know how to update the kernel the normal way, I got used to do it like that with NetBSD and it worked so I guess it's cool.
Oh and I was able to uncomment the two nvidia_load from loader.conf, they work now. |
|
|||
Once in a while, or once so far, I advocate to the mailing lists that this/these procedures go into /usr/src/UPDATING and/or the pkg-message ...
__________________
FreeBSD 13-STABLE |
|
|||
So when on FreeBSD, to update the kernel, you can only fetch it already built or build it by yourself as on other BSD instead of using a "pkg" like command to fetch it from repositories as on GNU/Linux, right ?
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom kernel version vs newvers.sh mismatch? | bsdperson | FreeBSD Installation and Upgrading | 4 | 7th November 2012 07:31 PM |
library mismatch for snapshots epdfview | IdOp | OpenBSD Packages and Ports | 10 | 24th May 2011 03:36 PM |
Ports Version associated with FreeBSD version | rtwingfield | FreeBSD Ports and Packages | 4 | 7th June 2010 11:00 PM |
kernel version 0?? | Stellar | OpenBSD General | 5 | 30th August 2009 11:07 PM |
gem Collisions, duplex mismatch? | tad1214 | FreeBSD General | 1 | 8th July 2008 02:32 AM |