nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   RH9 NVIDIA-Kernel-Module (http://www.nvnews.net/vbulletin/showthread.php?t=19610)

StrolchHD 10-16-03 04:49 AM

RH9 NVIDIA-Kernel-Module
 
Hello,

i have a problem with the NVIDIA-Kernel.
My Configuration is:
Intel P4, 2.4 GHz
NVIDIA Geforce4 Ti
Red Hat 9
Kernel 2.4.20-20.9

I will install with the NVIDIA-Linux-x86-1.0-4496-pkg2.run.

Now the installer break the installion with this message:
No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)?
But on the ftp-site does exists a kernel-module.

Now i load the NVIDIA_kernel-1.0-3123.tar.gz. The make does write this error-messages:

[root@Linux_Strolch NVIDIA_kernel-1.0-3123]# make
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/lib/modules/2.4.20-20.9/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-20.9/build/include/linux/vmalloc.h:8,
from nv-linux.h:57,
from nv.c:14:
/lib/modules/2.4.20-20.9/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-20.9/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1305: warning: passing arg 1 of `remap_page_range_Rc414bdc2' makes pointer
from integer without a cast
nv.c:1305: incompatible type for argument 4 of `remap_page_range_Rc414bdc2'
nv.c:1305: too few arguments to function `remap_page_range_Rc414bdc2'
nv.c:1322: warning: passing arg 1 of `remap_page_range_Rc414bdc2' makes pointer
from integer without a cast
nv.c:1322: incompatible type for argument 4 of `remap_page_range_Rc414bdc2'
nv.c:1322: too few arguments to function `remap_page_range_Rc414bdc2'
nv.c:1353: warning: passing arg 1 of `remap_page_range_Rc414bdc2' makes pointer
from integer without a cast
nv.c:1353: incompatible type for argument 4 of `remap_page_range_Rc414bdc2'
nv.c:1353: too few arguments to function `remap_page_range_Rc414bdc2'
nv.c: In function `nv_get_phys_address':
nv.c:2182: warning: implicit declaration of function `pte_offset'
nv.c:2182: invalid type argument of `unary *'
make: *** [nv.o] Fehler 1

Whats wrong with NVIDIA. I try 3 days with this NVIDIA-Problem and need very important the GL-Driver.

I'am a new Linux-User and jump 3 times today out the window :-).

Thanks help and sorry for this english.

Matthias

LordMorgul 10-19-03 05:25 AM

Forget trying to use the 3123 driver, focus on the new driver using the installer as it is much simpler to get working.

You did not mention if the installer finds a module on the nvidia ftp or not? If it does not, then the installer tries to compile one for you, did you let it do this?

If the installer fails, it tells you about a log file:
/var/log/nvidia-installer.log

Post this file on the forum for additional help.

If you're familiar with rpms and rebuilding them, feel free to grab the src rpms and go for it.

ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4496/

egis 10-19-03 03:20 PM

I can't speak for StrolchHD, but I take it his installer didn't want to work at all, and neither did mine :(

it fails to recognize the kernel, it fails the download and it fails the compilation. I use the same kernel.

I don't know if I'm as new to linux as strolch, but I sure have no idea how to build own rpms.

Here's my log file:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Oct 19 22:03:37 2003

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usrnvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Oct 19 22:03:37 2003

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: Unable to find the kernel header files for the currently running kernel.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: Unable to find the kernel header files for the currently running kernel.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

egis 10-19-03 03:35 PM

ok, about five minutes later, I got it working

for me, installing the kernel_source rpm did the trick, let's just hope strolch's problem is as simple...

dwricha 10-20-03 12:23 AM

I'm having the same exact problem, after going to the RHN and using the up2date and got everything that it offered , I'm faced with the error about my nvidia drivers. I go back to nvidia's website and download all files that I see that pertain to my kernel. I don't know what you mean by "installed the kernel_source " to make it work. I tried reinstalling and now I'm getting error "cannot execute binary file". Don't know where to go from there. I've read, and I've searched and problem still not resolved.

I found this on Nvidia's website and this is exactly what's happening to me.

Q: My X server fails to start, and my XFree86.log file contains the error, *(EE) NVIDIA
(0): Failed to initialized the NVIDIA kernel module!"

A: Nothing will work if the NVIDIA kernel module doesn't function properly. etc,etc.

How exactly do you cd into the directory with the new kernel module and doing 'insmod ./nvidia.o ?

Will someone please give me a detailed description on fixing this so I can get out of windoze???

LordMorgul 10-20-03 12:49 AM

Your first problem is that you cannot build the nvidia driver without the source code for your kernel present on the machine.

type:
uname -r

note the exact number shown.

type:
rpm -qa | grep kernel

If you don't see a 'kernel-source' with your exact number shown, then go to redhat's ftp site, get an rpm package called:
kernel-source-<version number here>.i386.rpm

install that rpm after you download it, if you don't have the right number, it won't do you any good.

rpm -Uvh kernel-source-<vers>.i386.rpm

Try to install the nvidia driver again using the .run installer.

Quote:

I tried reinstalling and now I'm getting error "cannot execute binary file".
What did you try reinstalling? If you cannot execute the nvidia installer, change the permissions to allow you do so so.

chmod u+x nvidia*.run

You should not update your kernel from redhat's up2date without also updating the kernel-source, and keep in mind when you do you will have to reinstall this driver for nvidia.

dwricha 10-20-03 12:55 AM

I would have to go back to Redhat and get "kernel-source"? Wouldn't that have been included when I used the up2date? I'll do that right now. How long are you going to be on your computer?

LordMorgul 10-20-03 01:03 AM

It is included on the original cds, and will ONLY be updated by up2date if you installed it in the first place, which is not always the case (and I believe is not the default for some reason).

I will be here for at least 3 hours.

If you have the latest kernel, you can get the latest matching kernel-source from ftp://updates.redhat.com

(fixed url)

dwricha 10-20-03 01:10 AM

I went to Redhat's site and download the "kernel-source" (2.4.20-9)
I just finished burning the file to cd and now I'm going to try what you suggested. I'll let you know what happens.
BTW, I tried reinstalling the "NVIDIA-Linux-x86-1.0-4496-pkg2.run and that's when I got the error, "can't execute binaries".

dwricha 10-20-03 01:52 AM

Tried installing, "preparing 100%, package already installed. Tried the other, package already installed. Any other suggestions???

LordMorgul 10-20-03 02:10 AM

Quote:

preparing 100%, package already installed. Tried the other, package already installed
You should have only one kernel-source package installed, that perfectly matches your current running kernel version. This is the simplest and cleanest way to get things going.

What does:

uname -r

report your kernel version is? Do you have that exact kernel-source rpm installed?

Do you still have the can't execute problem, or does the installer now attempt to work and fail? If so post the /var/log/nvidia-installer.log

dwricha 10-20-03 02:20 AM

uname -r reports:
2.4.20-20.9

I have a dual boot os on separate hard drives and I'm switching back and forward between the 2 because I have no internet access with linux since using the up2date. Don't know how to post my /var/log/nvidia-installer.log file.
sorry to be such a pain. It's 3:15 here on the east coast and I'd hate to have to write it all down right now.


All times are GMT -5. The time now is 12:10 AM.

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