DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default 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
Reply With Quote
  #2   (View Single Post)  
Old 22nd May 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 283
Default

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 12.0-CURRENT
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default

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.
Reply With Quote
  #4   (View Single Post)  
Old 22nd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default

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.
Reply With Quote
  #5   (View Single Post)  
Old 22nd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default

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.
Reply With Quote
  #6   (View Single Post)  
Old 23rd May 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 283
Default

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 12.0-CURRENT
Reply With Quote
  #7   (View Single Post)  
Old 23rd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default

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 ?
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 07:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick