nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   Can't load kernel module(nvidia.ko) on 8.0R (http://www.nvnews.net/vbulletin/showthread.php?t=142081)

cervo 12-02-09 01:21 PM

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.

rhurlin 12-02-09 02:06 PM

Re: Can't load kernel module(nvidia.ko) on 8.0R
 
Quote:

Originally Posted by cervo (Post 2134934)
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.

cervo 12-02-09 03:05 PM

Re: Can't load kernel module(nvidia.ko) on 8.0R
 
Quote:

Originally Posted by rhurlin (Post 2134985)
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.

rhurlin 12-02-09 03:35 PM

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.

cervo 12-02-09 08:20 PM

Re: Can't load kernel module(nvidia.ko) on 8.0R
 
Quote:

Originally Posted by rhurlin (Post 2135025)
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#

rnejdl 12-02-09 08:23 PM

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

cervo 12-03-09 10:36 AM

Re: Can't load kernel module(nvidia.ko) on 8.0R
 
Quote:

Originally Posted by rnejdl (Post 2135173)
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#

pdegoeje 12-03-09 04:08 PM

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.

cervo 12-04-09 12:53 PM

Re: Can't load kernel module(nvidia.ko) on 8.0R
 
Quote:

Originally Posted by pdegoeje (Post 2135858)
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.


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

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