Tim Gesekus wrote:
> Hmm. da er ja das Kernelmodul neu uebersetzen muss, muessen
> diese Kernelsourcen installiert sein. Sieh mal nach ob es ein
> rpm-Packet fuer die Kernelsourcen gibt. Brauchst du auch fuer
> die tgz Packete, wenn ich mich richtig erinnere.
Wie angek�ndigt habe ich die Installation nun mit den
tar.gz-Paketen ausprobiert. Hat aber auch nicht geklkappt:
zomtec:~ # cd /usr/src/packages/BUILD/NVIDIA_kernel-0.9-4
zomtec:/usr/src/packages/BUILD/NVIDIA_kernel-0.9-4 # make
rm -f nv.o os-interface.o os-registry.o Module-linux NVdriver
cc -c -Wall -Wunknown-pragmas -Wno-multichar -O -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DUNIX -DLINUX -DNV4_HW -DNT
RM -DRM20 -D_X86_=1 -Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -I. nv.c
cc -c -Wall -Wunknown-pragmas -Wno-multichar -O -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DUNIX -DLINUX -DNV4_HW -DNT
RM -DRM20 -D_X86_=1 -Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -I. os-interface.c
ld -r -o Module-linux nv.o os-interface.o os-registry.o
ld -r -o NVdriver Module-linux Module-nvkernel
size NVdriver
text data bss dec hex filename
311679 26560 40 338279 52967 NVdriver
./install.sh
make[1]: Entering directory
`/usr/src/packages/BUILD/NVIDIA_kernel-0.9-4'
make[1]: `NVdriver' is up to date.
make[1]: Leaving directory `/usr/src/packages/BUILD/NVIDIA_kernel-0.9-4'
./NVdriver: unresolved symbol tqueue_lock
Error loading kernel driver
Check build
make: *** [install] Error 1
zomtec:/usr/src/packages/BUILD/NVIDIA_kernel-0.9-4 #
Bei der Installation der RPM kommt die Fehlermeldung
error: failed dependencies:
kernel >= 2.2.0 is needed by NVIDIA_kernel-0.9-4
und nun bei tar.gz
Error loading kernel driver
Es ist wahrscheinlich anzunehmen, dass beide Fehlermeldungen
dieselbe Ursache haben.
Um dieser �u�erst unangenehmen Ursache auf die Spur zu kommen,
werde ich hier ein paar Informationen in den Raum setzen, die
eventuelle helfen k�nnten.
Ich habe bei der Installation die Anleitung von Nvidia
http://www.nvidia.com/Products/OpenLinuxDwn.nsf/xfree86_40bld094FAQ
befolgt.
Da steht nun unter anderem unter "Troubleshooting"
Lots of places can cause problems when updating to XFree86 4.0.
Many of the libraries and modules are updated and changed
from XFree86 3.3.x that most distributions are shipping.
Make sure you have run xf86config and have the X server working
properly with the included nv_drv.o module. Make sure the Device
section is referencing nv instead of vga or some other driver.
Man soll also sicherstellen, dass X sauber mit dem Modul
nv_drv.o l�uft.
Ist das durch /sbin/lsmod herauszukriegen?
Dar�berhinaus soll man sicherstellen, dass die Sektion
Device nv statt vga oder so benutzt.
Seit dem Update auf XFree86 4.0 und der Konfiguration mit SAX2
wird vom System nicht mehr die
Datei /etc/XF86Config benutzt, sondern /etc/X11/XF86Config.
Ist es richtig? Das mu� so sein, da:
Nachdem ich auf XFree86 upgedatet habe, hat mein R�dchen
nicht mehr funktioniert. So guckte ich in /etc/XF86Config
nach, ob da noch ZAxisMapping 4 5 in section Pointer steht.
das war nicht der Fall. So habe ich ZAxisMapping 4 5
manuell eingef�gt. Danach X neu gestartet, R�dchen ausprobiert,
es funktionierte nicht. Da kam bei mir der Verdacht auf, dass
/etc/XF86Config keine Bedeutung mehr spielt. So habe ich
nach einer anderen XF86Config gesucht und bin f�ndig geworden,
n�mlich /etc/X11/XF86Config. Dort habe ich dann unter
section "InputDevice"
Option "ZAxisMapping" "4 5"
eingef�gt, X neu gestartet und schon hat das R�dchen wieder
funktioniert.
Also ist jetzt wohl /etc/X11/XF86Config f�r das System relevant.
Aber jetzt zur�ck zu "Make sure the Device
section is referencing nv instead of vga or some other driver."
Folgendes steht in /etc/X11/XF86Config
Section "Device"
BoardName "GEFORCE256"
BusID "1:0:0"
Driver "nv"
Identifier "Device[0]"
VendorName "Nvidia"
EndSection
Also hat alles seine Richtigkeit, da nv benutzt wird.
Impliziert das, dass X das Modul nv_drv.o geladen hat?
Oder wie �berpr�ft man das?
Hat vielleicht folgendes mit der L�sung meines Problems
zu tun? (Quelle:
http://www.nvidia.com/Products/OpenLinuxDwn.nsf/xfree86_40bld094FAQ):
8.0 Frequently asked questions (the FAQ)
8.1 Kernel problems
8.1.1 I can't build the kernel module! There's tons of compile
errors!
So far, this seems to be caused by one of two issues:
1.You need to change our kernel Makefile DEFINE= line to
include the symbol -D_LOOSE_KERNEL_NAMES
2.Have you patched your kernel? If so, the patch may be incomplete.
It's really important that the headers be consistent when
doing a build, otherwise these kinds of problems can happen.
8.1.3 I get unresolved references when I attempt to insmod the kernel
module
This problem comes from having a mis-configured system.
The problem is most likely that the currently-running kernel does
not match the headers describing it in /usr/include/linux/config.h
(which runs through a symlink)
Danke im Voraus f�r Hilfe.
Gruss
Eduard
---------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org