LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   nvidia drivers riva tnt2 (https://www.linuxquestions.org/questions/suse-opensuse-60/nvidia-drivers-riva-tnt2-374027/)

daedalus12 10-17-2005 03:08 PM

nvidia drivers riva tnt2
 
i have a riva tnt 2 agp card. i want to enable 3d acceleration. i downloaded the nvidia patch using yast. after that the boot up failed to go into graphical interface so i loaded the old xorg.conf. how do i enable 3d acceleration.

thanks
swen

daedalus12 10-17-2005 03:10 PM

i also downloaded the file from nvidia.com and tried compiling it. but the compilation fails. /var/log/nvidia-installer-log contains this:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Oct 18 01:34:40 2005

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
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
7676). As part of installing this driver (version: 1.0-6629), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> 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: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.13-15-default/source'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
WARNING: Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.13-15-defau
lt/source SYSOUT=/lib/modules/2.6.13-15-default/build'...
Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!

*** Failed rivafb module sanity check, but continuing! ***


NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.13-15-default/build KBUILD_VERBOSE
=1 -C /lib/modules/2.6.13-15-default/source SUBDIRS=/tmp/selfgz12156/NVIDIA-
Linux-x86-1.0-6629-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.13-15-default/build \
KBUILD_SRC=/usr/src/linux-2.6.13-15 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1
/usr/src/nv" \
-f /usr/src/linux-2.6.13-15/Makefile modules
mkdir -p /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_ver
sions
make -f /usr/src/linux-2.6.13-15/scripts/Makefile.build obj=/tmp/selfgz12156
/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz12156/NV
IDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.0.2/include -D__KERNE
L__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.13-15/include -I/tmp/selfgz121
56/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototy
pes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasin
g -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mp
referred-stack-boundary=2 -fno-unit-at-a-time -march=i586 -mregparm=3 -Iincl
ude/asm-i386/mach-default -I/usr/src/linux-2.6.13-15/include/asm-i386/mach-d
efault -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz12156/NV
IDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wsw
itch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar
-Werror -O -fno-common -MD -Wno-cast-qual -
Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -
D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_V
ERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86
-UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR
_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DMODULE
-DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz12156/NVIDIA-L
inux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz12156/NVIDIA-Linux-x8
6-1.0-6629-pkg1/usr/src/nv/nv.c
In file included from /usr/src/linux-2.6.13-15/include/linux/list.h:7,
from /usr/src/linux-2.6.13-15/include/linux/wait.h:23,
from include2/asm/semaphore.h:41,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:20,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv-linux.h:52,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
/usr/src/linux-2.6.13-15/include/linux/prefetch.h: In function ‘prefetch_r
ange’:
/usr/src/linux-2.6.13-15/include/linux/prefetch.h:62: warning: pointer of ty
pe ‘void *’ used in arithmetic
In file included from /usr/src/linux-2.6.13-15/include/linux/dmapool.h:14,
from /usr/src/linux-2.6.13-15/include/linux/pci.h:870,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv-linux.h:75,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
include2/asm/io.h: In function ‘check_signature’:
include2/asm/io.h:253: warning: wrong type argument to increment
In file included from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-linux.h:203:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-linux.h:231:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:223:5: warni
ng: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nvidia_init_module’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:930: warning
: ‘pm_register’ is deprecated (declared at /usr/src/linux-2.6.13-15/incl
ude/linux/pm.h:107)
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nvidia_exit_module’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1051: warnin
g: ‘pm_unregister’ is deprecated (declared at /usr/src/linux-2.6.13-15/i
nclude/linux/pm.h:112)
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1097:5: warn
ing: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘_get_phys_address’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: warnin
g: passing argument 1 of ‘pmd_offset’ from incompatible pointer type
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nv_agp_init’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2991: error:
implicit declaration of function ‘inter_module_get’
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: warnin
g: ‘inter_module_put’ is deprecated (declared at /usr/src/linux-2.6.13-1
5/include/linux/module.h:573)
make[4]: *** [/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.
o] Error 1
make[3]: *** [_module_/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.


any ideas???

mac57 10-18-2005 03:13 PM

I can't solve your problem directly, but I can suggest to you that there is little point in going down the path you are following. I too have a Riva TNT card, an "STB nVidia TNT 16 MB" card that came with my older Dell XPS-R450 (in this case an AGP card, as AGP had just debutted at the time I bought the PC). After extensive trial and error, I found that the Linux nVidia drivers available directly from the nVidia site work just fine with it. Support for the RIVA TNT is included up to and including 71.67. They dropped the RIVA TNT support in all releases following that. So, you should be able to simply use the stock drivers available from nVidia, installing in the usual way, and all is well.

Or is it? Well, not really. You don't get a lot of 3D acceleration from the RIVA TNT. To give you an idea, after I spent hours trolling through the nVidia driver archive, and trying out each one in turn, the best I could do was with 44.96, where I got a pathetic glxgears score of 262! On top of that, none of the "real" 3D stuff (tuxracer, 3D screen savers, etc.) would run at any decent speed at all, and a lot of 2D stuff seemed unnaturally slow.

After much more trial and error, I eventually dropped back to the basic "nv" driver. The system was more responsive using this than it was with the supposedly "accelerated" driver. You get little gain, and no small amount of pain when you use the "accelerated" driver. In my experience, it wasn't worth the trouble.

My advice? Stick with the nv driver, or get yourself a new video card whose hardware is much more capable than the RIVA TNT. I eventually took this course, and purchased an excellent and inexpensive little card: a Chaintech GeForce 5200. You can one of these for either $49.99 for the analog RGB only version, or $79.99 for the RGB and DVI version. I bought the RGB/DVI version so I could use DVI with LCD displays.

With everything else the same, just replacing the RIVA TNT with the GeForce 5200 (and re-installing the accelerated driver of course) my glxgears score jumped up to 1212! The system runs perceptably faster now, and 3D performance is very good.

This mid performance, low cost GeForce card makes a real difference. You can get one from TigerDirect.com at the prices I have quoted - that is where I got mine (no, I have no affiliation with them - just a satisfied customer).

daedalus12 10-19-2005 06:32 AM

thanx for the advice. anyways i did manage to compile the drivers and it works fine the first time i boot to init 5 from init 3. but then when i restart the system i get no graphical display? any ideas??

mac57 10-19-2005 07:22 PM

Sorry, no wisdom to offer there. All I can do is wish you good luck I'm afraid!

atlaika 10-19-2005 07:42 PM

I had the same problem about a year ago with Riva TNT2 on SimplyMepis. I never found a solution and saw several people saying it could not be done. And that I shoud just leave it with the “nv” driver.
In the mean time I myself upgraded to GeForce 5200 which works with ease.
Sorry I know this is not really any help but for what it is worth I spent hours looking for a solution and did not find one.
But then that was a year ago so who knows.

moronikos 10-19-2005 10:51 PM

Quote:

Originally posted by daedalus12
thanx for the advice. anyways i did manage to compile the drivers and it works fine the first time i boot to init 5 from init 3. but then when i restart the system i get no graphical display? any ideas??
Yeah, SUSE directions are poor for installing manually. I have a GeForce2 which is relegated to "legacy" by nVidia. After installing the driver manually, do the usual "sax2 -m 0=nvidia". Then copy the following code into your /etc/rc.d/boot.local file:

Code:

error() {
  echo "$(basename $0): fatal error, $1 failed"
  exit 1
}

if [ ! -c /dev/.devfsd ]; then
  for i in 0 1 2 3 4 5 6 7; do
      node="/dev/nvidia$i"
      rm -f $node
      mknod $node c 195 $i || error "mknod \"$node\""
      chmod 0666 $node    || error "chmod \"$node\""
  done
  node="/dev/nvidiactl"
  rm -f $node       
  mknod $node c 195 255    || error "mknod \"$node\""
  chmod 0666 $node        || error "chmod \"$node\""
fi

if [ -d /etc/udev/devices ]; then
  for i in 0 1 2 3 4 5 6 7; do
      node="/etc/udev/devices/nvidia$i"
      rm -f $node
      mknod $node c 195 $i || error "mknod \"$node\""
      chmod 0666 $node    || error "chmod \"$node\""
  done
  node="/etc/udev/devices/nvidiactl"
  rm -f $node       
  mknod $node c 195 255    || error "mknod \"$node\""
  chmod 0666 $node        || error "chmod \"$node\""
fi

If you unpack the nVidia source code you will find that this script is in ./usr/src/nv/makedevices.sh

I used the 7174 version driver.

daedalus12 10-20-2005 03:17 AM

yeah thanx for the help. i got it to work doing exactly that . found this script thingy in some other forum and now no probs. anyways thanx for ur help....


All times are GMT -5. The time now is 08:11 PM.