LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2003, 02:38 AM   #1
Sata
LQ Newbie
 
Registered: May 2003
Location: Costa Rica
Distribution: Red Hat 9
Posts: 7

Rep: Reputation: 0
Unhappy GeForce4 - RH9 Please Help Me


Hi, im having quite a problem installing the drivers to my NVIDIA card. I have searched through all this forum, the NVIDIA linux forum, half of the internet pages mentioning a graphics card, and the Holy Bible but i still cant get it to work.

Ill start with my distribution and graphic card specs:
distribution:
Red Hat 9
kernel 2.4.20-8
source in: /usr/src/linux-2.4.20-8
symlinks to kernel in: /usr/src/linux AND /usr/src/linux-2.4

graphics card:
PalitDaytona GeForce4 MX440 64MB SDR AGP8x w/TV-out

Here is what I've done so far:
I downloaded NVchooser.sh and it said:
[root@carmiol root]# /downloads/NVchooser.sh
Please download and install the following files:
NVIDIA_kernel-1.0-2960.src.rpm
NVIDIA_GLX-1.0-2960.i386.rpm
[root@carmiol root]#

I downloaded those files. When I "installed" the kernel file it said:
[root@carmiol root]# rpm -ivh /downloads/NVIDIA_kernel-1.0-4191.src.rpm
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
1:NVIDIA_kernel ########################################### [100%]
[root@carmiol root]#

which was wierd (the buildmeister thing). However the rpm created a file named NVIDIA_kernel-1.0-2960.tar.gz in /usr/src/redhat/SOURCES

I untared the file and proceded to 'make install' the file and it throws the following (sorry for the long code):
[root@carmiol 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.20-8/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: 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_R2baf18f2' makes pointer from integer without a cast
nv.c:1392: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1392: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1409: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1409: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1409: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1440: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1440: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1440: too few arguments to function `remap_page_range_R2baf18f2'
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
[root@carmiol NVIDIA_kernel-1.0-2960]#


I have also tried with other driver files but i get a whole range of errors. Please, help me!!! Any help welcome. BTW, im kinda
 
Old 05-02-2003, 03:38 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
try this, it sorted me out

http://download.nvidia.com/XFree86/L...6-1.0-4363.run

make sure you quit x before trying
 
Old 05-02-2003, 12:07 PM   #3
Sata
LQ Newbie
 
Registered: May 2003
Location: Costa Rica
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
no good

Thanks for the quick reply, however it didn't worked. I downloaded the script, exited X (init 3) and runned the script. It said there was no problem. Then I modified the /etc/X11/XF86Config file. I didn't had to add the Load "glx" thing in the Module section because it was already there. I erased Load "dri" but there was no Load "GLcore" (it said it not always there). Then I changed the driver to "nvidia" in the Device section, saved and exited. Rebooted and X fails to start. It gives an error and after about 10 seconds it freezes completely. There's no thing I can do but reboot and change the config file to how it was initially. Here are the last lines of the log file:

(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xD0000000
(--) NVIDIA(0): MMIO registers at 0xDE000000
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found


Any ideas?
 
Old 05-02-2003, 01:37 PM   #4
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
1. Make sure the driver exists (nvidia.o)

/lib/modules/2.4.20/kernel/drivers/video/nvidia.o

Your location may vary slightly (.../kernel/video/nvidia.o)

2. Check your /etc/X11/XF86Config to see that the screen section and the server section refer to the new driver as well (nvidia vs vesa or whatever)

from my XF86Config:

# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
Identifier "GeForce 4 440MX"
Driver "nvidia"
VideoRam 65536
# Insert Clocks lines here if appropriate
EndSection

Section "Screen"
Identifier "Screen 1"
Device "GeForce 4 440MX"
Monitor "My Monitor"

Section "ServerLayout"

# The Identifier line must be present
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"

See how the device loads the driver, the screen loads the device, and the server loads the screen. You may need to change the name of the device in the screen section so it matches the whats in the device section as the identifier.

HTH
 
Old 05-03-2003, 10:46 AM   #5
Sata
LQ Newbie
 
Registered: May 2003
Location: Costa Rica
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy :(

I checked the directory you said and the file nvidia.o was there . I then checked the XF86Config file and it was referenced well too. Thanks for the help anyway. Anybody has any more ideas??
 
Old 05-03-2003, 02:30 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
See if you have the following line in your /etc/modules.conf file:

alias char-major-195 nvidia

If not, add it - then restart x
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tv out geForce4 problem i_mudra Linux - Hardware 1 08-19-2003 02:37 PM
Geforce4 and wine linuxturtle Linux - General 4 08-13-2003 01:41 AM
configuring X/geforce4 snocked Slackware 3 03-02-2003 10:24 PM
Geforce4 tv-out? pk21 Linux - General 2 12-24-2002 01:39 PM
GeForce4 and Mandrake 8.2 Spinning Hat Linux - General 8 08-19-2002 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration