Sterowniki NVIDI (legacy) do RIVA TNT2 Model 64

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
Fredi
Posty: 2
Rejestracja: 12 lipca 2007, 11:07

Sterowniki NVIDI (legacy) do RIVA TNT2 Model 64

Post autor: Fredi »

Siedzie nad tym już któryś dzień i w końcu dochodze do wniosku, że jednak sam sobie z tym nie porawdze. Mam problem z zainstalowaniem sterowników do starej karty graficznej NVidi.

Karta graficzna : NVIDIA RIVA TNT2 Model 64
Kernel : 2.6.21-2-686
Sterowniki: NVIDIA-Linux-x86-1.0-7184-pkg1.run (legacy)

Robie wszystko zgodnie z tym opisem Kaka'i ale mimo to ciągle wyskakują mi błedy. Przeszukałem to forum i dowiedziałem się, że najprawdopodobniej problem tkwi w paravirtualization kernela (cokolwiek to jest).
Próbowalem też zastosowac poradę z tej strony.

Kod: Zaznacz cały

1. Go to the directory where you have your unpacked driver (the one with nvidia-installer file)
2. cd usr/src/nv/
3. open with your favourite editor Makefile.kbuild and just after line 77 that should read something like this :

EXTRA_CFLAGS += -Wall -Wimplicit -Wreturn-type....bla bla bla....

add the following two lines:
PARAVIRT_OPS := $(shell grep "D paravirt_ops" /boot/System.map-$(shell uname -r) | colrm 9)
EXTRA_LDFLAGS := --defsym paravirt_ops=0x$(PARAVIRT_OPS)

4. change back to the directory of nvidia-installer ( cd ../../../ ) and run it ( ./nvidia-installer )
Jednak nie dało to żadnego rezulatu.

Zamieszczam nvidia-installer.log

Kod: Zaznacz cały

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Aug 10 00:35:01 2007

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : 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
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  force tls               : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  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              : [url]ftp://download.nvidia.com[/url]
  RPM file list           : (not specified)

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 ([url]ftp://download.nvidia.com[/url])? (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.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.21-2-686/build'
-> Kernel output path: '/lib/modules/2.6.21-2-686/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> 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.21-2-686/bu
   ild SYSOUT=/lib/modules/2.6.21-2-686/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.21-2-686/build SUBDIRS=/hom
   e/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";	\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)
   mkdir -p /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_versions
   rm -f /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_versions/*
   make -f scripts/Makefile.build obj=/home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg
   1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /home/fredi/NVIDIA-
   Linux-x86-1.0-7184-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.nv.o.d  
   -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL__ -I
   include  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
   -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -msoft-float -mre
   gparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -ffree
   standing -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL
   _FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-pr
   otector -Wdeclaration-after-statement -Wno-pointer-sign -I/home/fredi/NVIDIA
   -Linux-x86-1.0-7184-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch 
   -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -W
   error -O -fno-common -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE
   _KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NA
   MES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PA
   TCHLEVEL=7184  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86      -UD
   EBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_
   PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV
   _PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRES
   ENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_P
   RESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D
   "KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/fredi/NVIDIA-Linux-x86-1.0-7
   184-pkg1/usr/src/nv/.tmp_nv.o /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr
   /src/nv/nv.c
   In file included from /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/
   nv.c:14:
   /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv-linux.h:17:26: erro
   r: linux/config.h: Nie ma takiego pliku ani katalogu
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/
   nv-linux.h:19,
                    from /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/
   nv.c:14:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: At top level:
   /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:93: warning: 'kme
   m_cache_t' is deprecated
   /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: In function 'nv_
   kern_open':
   /home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:1764: warning: pa
   ssing argument 2 of 'request_irq' from incompatible pointer type
   make[3]: *** [/home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.o] Bł
   ąd 1
   make[2]: *** [_module_/home/fredi/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv]
   Błąd 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Błąd 1
   make: *** [module] Błąd 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 [url]www.nvidia.com[/url].
Awatar użytkownika
Spass
Beginner
Posty: 181
Rejestracja: 09 maja 2007, 16:25

Post autor: Spass »

Spróbuj zainstalować sterownik w wersji 1.0-7185. Masz zainstalowane linux-headers i linux-kbuild?
Fredi
Posty: 2
Rejestracja: 12 lipca 2007, 11:07

Post autor: Fredi »

Nie wiem jak to się stało, że przeoczyłem nowsze sterowniki :shock: Po zmodyfikowaniu Makefile.kbuild wszystko śmiga jak należy. Dzięki za pomoc.
ODPOWIEDZ