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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-20-02, 07:27 PM   #1
oceansoul
Guest
 
Posts: n/a
Default 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!

  Reply With Quote
Old 11-20-02, 11:11 PM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 01-23-03, 08:34 PM   #3
nywst
Registered User
 
Join Date: Jan 2003
Posts: 7
Default doesn't work

I got the same error after I got the .config in /usr/src/linux.
Any idea? Thnx.
nywst is offline   Reply With Quote
Old 01-24-03, 07:57 AM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 01-27-03, 03:15 PM   #5
nywst
Registered User
 
Join Date: Jan 2003
Posts: 7
Default try 3123?

What does this mean? Thnx.
nywst is offline   Reply With Quote
Old 01-27-03, 04:40 PM   #6
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 01-27-03, 05:49 PM   #7
nywst
Registered User
 
Join Date: Jan 2003
Posts: 7
Default doesn't work also

Still the same error.
I tried other old drivers, the same errors also.

Thnx anyway.
nywst is offline   Reply With Quote
Old 01-27-03, 08:10 PM   #8
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote

Old 01-27-03, 09:27 PM   #9
nywst
Registered User
 
Join Date: Jan 2003
Posts: 7
Default 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.
nywst is offline   Reply With Quote
Old 03-18-03, 07:02 AM   #10
docbofh
Registered User
 
Join Date: Mar 2003
Location: london
Posts: 1
Post 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
docbofh 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
304.79 Beta & PhysX 9.12.0613 xavier2k5 NVIDIA Windows Graphics Drivers 1 07-03-12 03:00 PM
What You Can Expect From GeForce GRID News Latest Tech And Game Headlines 0 06-04-12 04:20 PM
Nvidia GeForce 301.42 WHQL drivers DSC NVIDIA Windows Graphics Drivers 5 05-29-12 10:12 PM
Enhance Max Payne 3, Diablo III with GeForce R300 Drivers News Latest Tech And Game Headlines 0 05-22-12 06:30 PM
Gainward Unleashes the Sexy GeForce GTX 670 Phantom Graphics Card, Also launches the News Latest Tech And Game Headlines 0 05-10-12 09:28 AM

All times are GMT -5. The time now is 06:43 AM.


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