nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Enabling GeForce with RH Advanced server 2.1 (http://www.nvnews.net/vbulletin/showthread.php?t=4285)

oceansoul 11-20-02 07:27 PM

Enabling GeForce with RH Advanced server 2.1
 
Hi,

I am having trouble getting the NVIDIA drivers working with a Redhat Advanced server 2.1. I am installing on a Toshiba TE2100 laptop with GeForce4 420.

RH AS 2.1 ships with kernel 2.4.9.

I have run the NVchooser scripts with the following output:

./NVchooser.sh: [: 21/\: integer expression expected
./NVchooser.sh: [: 21/\: integer expression expected
Please download and install the following files:
NVIDIA_kernel-1.0-2960.src.rpm
NVIDIA_GLX-1.0-2960.i386.rpm

I cose to use the gz file with the make install option. When I do I get the following error:

[root@dhcppc5 NVIDIA_kernel-1.0-2960]# make install
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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/lib/modules/2.4.9-e.3/build/include -Wno-cast-qual nv.c
In file included from nv.c:63:
/lib/modules/2.4.9-e.3/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.9-e.3/build/include/linux/highmem.h:19: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1392: warning: passing arg 1 of `remap_page_range_R1664b601' makes pointer from integer without a cast
nv.c:1392: incompatible type for argument 4 of `remap_page_range_R1664b601'
nv.c:1392: too few arguments to function `remap_page_range_R1664b601'
nv.c:1409: warning: passing arg 1 of `remap_page_range_R1664b601' makes pointer from integer without a cast
nv.c:1409: incompatible type for argument 4 of `remap_page_range_R1664b601'
nv.c:1409: too few arguments to function `remap_page_range_R1664b601'
nv.c:1440: warning: passing arg 1 of `remap_page_range_R1664b601' makes pointer from integer without a cast
nv.c:1440: incompatible type for argument 4 of `remap_page_range_R1664b601'
nv.c:1440: too few arguments to function `remap_page_range_R1664b601'
nv.c: In function `nv_get_phys_address':
nv.c:2276: warning: implicit declaration of function `pte_offset'
nv.c:2276: invalid type argument of `unary *'
make: *** [nv.o] Error 1

help!

:confused:

bwkaz 11-20-02 11:11 PM

I have no idea whether AS is different from normal RedHat in this regard, but normally, you have to choose a config file that matches your kernel's setup (processor type, features, anything extra you chose on the kernel like -smp), copy it to /usr/src/linux/.config, go into /usr/src/linux, run make mrproper oldconfig dep, and then re-try the nVidia driver. Do a make clean in the NVIDIA_kernel-whatever directory first, just to make sure the slate is clean.

nywst 01-23-03 08:34 PM

doesn't work
 
I got the same error after I got the .config in /usr/src/linux.
Any idea? Thnx.

bwkaz 01-24-03 07:57 AM

Hmm... maybe try 3123? I don't know if that'll work for sure or not, it's just a guess.

If all else fails, if you can find your way around C, you can look for the remap_page_range function, and modify the nv.c code to call it properly.

nywst 01-27-03 03:15 PM

try 3123?
 
What does this mean? Thnx.

bwkaz 01-27-03 04:40 PM

3123 is a later driver revision. The above errors came from driver 2960, so instead of getting the 2960 drivers, get the 3123 ones.

From here:

http://www.nvidia.com/view.asp?IO=linux_display_archive

4191 has issues, so I'd stay away from that one if you can.

nywst 01-27-03 05:49 PM

doesn't work also
 
Still the same error.
I tried other old drivers, the same errors also.

Thnx anyway.

bwkaz 01-27-03 08:10 PM

Is there any way you can change kernels? Try a standard Linus kernel off kernel.org, using the .config from your current kernel?

The problem appears to be that RedHat changed the semantics (or maybe just the syntax) of certain kernel functions, which the nVidia kernel module uses. I know kernel 2.4.19 and 2.4.20 both work with the release 3123 drivers.

nywst 01-27-03 09:27 PM

don't want to do so...
 
'cause I try to setup this laptop as part of Oracle RAC, non default kernel might cause Oracle problems.

Thanks.

docbofh 03-18-03 07:02 AM

There is a way...
 
Grab the patch from minion.de (you want the 2.5/2.4-rmap patch).

The macros that you need are included in the KERNEL_2_5 sections, but you can't just compile as KERNEL_2_5 cos loads of other things then break.

hand-edit nv-linux.h and look for the REMAP_PAGE_RANGE macro

For kernel2.5 this has an extra "vma".
Copy that #define line to outside the
#ifdef KERNEL_2_5

Also remove the
#define REMAP_PAGE_RANGE from the #else section that matches the KERNEL_2_5.

Your goal is to get REMAP_PAGE_RANGE defined as remap_page_range(vma, ## a)

There are a couple of other places that this is changed, but you may not have to edit them as well (this worked for me on AS 2.1 with just changing that one


All times are GMT -5. The time now is 01:56 PM.

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