Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-02-09, 01:21 PM   #1
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Question Can't load kernel module(nvidia.ko) on 8.0R

Hello,

I have a problem.

I have installed FreeBSD 8.0R.
And I have installed nvidia driver(190.36) from latest ports.

But the OS can not load nvidia kernel module(nvidia.ko).

Error message is

% kldload nvidia.ko
KLD nvidia.ko: depends on kernel - not available or version mismatch

What's happen?


I have tried other driver version( i.e. 190.42, 195.22).
But I have same error message.
cervo is offline   Reply With Quote
Old 12-02-09, 02:06 PM   #2
rhurlin
FreeBSD in Science
 
rhurlin's Avatar
 
Join Date: Jan 2007
Location: Northeim, Germany
Posts: 22
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

Quote:
Originally Posted by cervo View Post
Hello,

I have a problem.

I have installed FreeBSD 8.0R.
And I have installed nvidia driver(190.36) from latest ports.

But the OS can not load nvidia kernel module(nvidia.ko).

Error message is

% kldload nvidia.ko
KLD nvidia.ko: depends on kernel - not available or version mismatch

What's happen?


I have tried other driver version( i.e. 190.42, 195.22).
But I have same error message.
Version 190.36 is not from latest ports, it is 185.18.36. Do you mean direct install from nvidia site?

Try to set 'nvidia_load="YES"' in /boot/loader.conf and reboot. Then kldstat should show the loaded module nvidia.ko.
rhurlin is offline   Reply With Quote
Old 12-02-09, 03:05 PM   #3
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

Quote:
Originally Posted by rhurlin View Post
Version 190.36 is not from latest ports, it is 185.18.36. Do you mean direct install from nvidia site?

Try to set 'nvidia_load="YES"' in /boot/loader.conf and reboot. Then kldstat should show the loaded module nvidia.ko.
rhurlin, thank you for your reply.

I made a mistake. The version is 185.18.36.
I have installed the driver from latest ports.

But I tried other version(such as 190.42 and 195.22) too.

And I have already set 'nvidia_load="YES"' in /boot/loader.conf.

There is no 'nvidia.ko' in the message of kldstat.
cervo is offline   Reply With Quote
Old 12-02-09, 03:35 PM   #4
rhurlin
FreeBSD in Science
 
rhurlin's Avatar
 
Join Date: Jan 2007
Location: Northeim, Germany
Posts: 22
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

I have seen this behaviour several times before. For me the following steps did work:

1. Completely deleting the nvidia-driver, e.g. pkg_delete nvidia-driver
2. Compiling of original xorg ports: portupgrade -f libGL libGLU libglut
3. Then installing the nvidia driver again
4. REBOOT

Afterwards the module should be loaded, see kldstat ...

Loading the driver with kldload does not work for me.
Hope this helps.
rhurlin is offline   Reply With Quote
Old 12-02-09, 08:20 PM   #5
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

Quote:
Originally Posted by rhurlin View Post
I have seen this behaviour several times before. For me the following steps did work:

1. Completely deleting the nvidia-driver, e.g. pkg_delete nvidia-driver
2. Compiling of original xorg ports: portupgrade -f libGL libGLU libglut
3. Then installing the nvidia driver again
4. REBOOT

Afterwards the module should be loaded, see kldstat ...

Loading the driver with kldload does not work for me.
Hope this helps.

rhurlin, thank you for your reply again.

I have tried to do your suggestion.
But I sill have the trouble.

(I had already clean installed the OS(FreeBSD), ports(xorg etc.) and nvidia driver).

my kldstat messages are as follows,

mypc# ls
linker.hints nvidia.ko
mypc# kldstat
Id Refs Address Size Name
1 13 0xc0400000 b6dfe0 kernel
2 2 0xc0f6e000 2d8e4 linux.ko
3 1 0xc7281000 8000 linprocfs.ko
mypc# kldload -v ./nvidia.ko
KLD nvidia.ko: depends on kernel - not available or version mismatch
kldload: can't load ./nvidia.ko: File exists
mypc# kldstat
Id Refs Address Size Name
1 13 0xc0400000 b6dfe0 kernel
2 2 0xc0f6e000 2d8e4 linux.ko
3 1 0xc7281000 8000 linprocfs.ko
mypc#
cervo is offline   Reply With Quote
Old 12-02-09, 08:23 PM   #6
rnejdl
Registered User
 
Join Date: Nov 2007
Location: Dallas, TX
Posts: 96
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

A few things to try:

Can you provide the following info:

pkg_info -Ix nvidia

ls -al /boot/modules

Have you recompiled your kernel at all recently? Are you indeed installing from the ports or not ? A while back, the NVIDIA drivers wouldn't install on 8 without the port as they did a version check that was disabled as part of the ports.

Rusty Nejdl
http://networking.ringofsaturn.com
rnejdl is offline   Reply With Quote
Old 12-03-09, 10:36 AM   #7
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

Quote:
Originally Posted by rnejdl View Post
A few things to try:

Can you provide the following info:

pkg_info -Ix nvidia

ls -al /boot/modules

Have you recompiled your kernel at all recently? Are you indeed installing from the ports or not ? A while back, the NVIDIA drivers wouldn't install on 8 without the port as they did a version check that was disabled as part of the ports.

Rusty Nejdl
http://networking.ringofsaturn.com

Nejdl, thank you for your reply.

I don't recompile the kernel of 8.0R.
I use original GENERIC kernel of 8.0R.

And I update ports tree every day( I perform portsnap command).
I use latest ports version.

In the case of installing other version of nvidia driver(such as 190.xx or 195.xx),
I have edited nv-freebsd.h by text editor(I removed version check part).


I have performed following work.

mypc# pkg_info -Ix nvidia
nvidia-driver-185.18.36 NVidia graphics card binary drivers for hardware OpenGL
ren

mypc# ls -la /boot/modules/
total 9830
drwxr-xr-x 2 root wheel 512 Dec 3 03:57 .
drwxr-xr-x 8 root wheel 1024 Dec 3 03:57 ..
-rw-r--r-- 1 root wheel 36 Dec 3 03:57 linker.hints
-r-xr-xr-x 1 root wheel 10039785 Dec 3 03:57 nvidia.ko
mypc#
cervo is offline   Reply With Quote
Old 12-03-09, 04:08 PM   #8
pdegoeje
Registered User
 
Join Date: Oct 2005
Posts: 2
Default Re: Can't load kernel module(nvidia.ko) on 8.0R

Most likely your kernel sources are not in sync with the running kernel. Make sure you checked out (and compiled against) RELENG_8_0 sources.
pdegoeje is offline   Reply With Quote

Old 12-04-09, 12:53 PM   #9
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Talking Re: Can't load kernel module(nvidia.ko) on 8.0R

Quote:
Originally Posted by pdegoeje View Post
Most likely your kernel sources are not in sync with the running kernel. Make sure you checked out (and compiled against) RELENG_8_0 sources.
Pdegoeje, thank you for your advice.

That's right!
The problem is solved for your advice.

I had updated the src-tree to RELENG_8.
I did not know relations of src-tree and the nvidia driver kernel module.


Rhurlin, Nejdl, Pdegoeje

I'm grateful for your help.
cervo is offline   Reply With Quote
Reply


Thread Tools

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


All times are GMT -5. The time now is 11:35 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.