Problem mit dem Treibermodul von Nvidia / Kernelreinigung

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
Benutzeravatar
Dark-Kamui
Beiträge: 439
Registriert: 16.12.2002 20:20:42
Wohnort: Rosenheim (Oberbayern)

Problem mit dem Treibermodul von Nvidia / Kernelreinigung

Beitrag von Dark-Kamui » 17.06.2003 14:37:52

Tja so schnell kann es gehen und schon läuft das KDE nicht mehr.
Also ich habe mir aus dem Source von 2.4.21 nochmal ein Kernel übersetzt weil ich beim ersten übersetzen vergessen habe die SCSI Emulation für meinen Brenner zu bauen.
Jetzt nach dem Neubooten findet er beide Kernels mehre Module nicht mehr, u.a. auch das Nvidia Modul. Wenn ich dann versuche das Modul wieder neuzumachen bricht er mir mit einer schlecht formatierten, nicht schlüsseligen Meldung ab.
Da ich blöderweise das Kernel ohne Debian Mitteln übersetzt habe, habe ich jetzt das Problem wie mach das ganze wieder sauber so das ich wieder neuaufsetzen kann?
Unter /lib/modules die Module rauswerfen, aus /boot das Kernel und aus Lilo der Eintrag und was noch?
Gruss David
Nyx: Athlon64 3000+ | 512MB RAM | ATI Radeon 9800Pro 128MB
Raziel: PentiumM 1,3GHz | 512MB RAM | Intel 855GM
Prometeus: Pentium3 666MHz | 384MB RAM | Nvidia Geforce2MX

Benutzeravatar
suntsu
Beiträge: 2947
Registriert: 03.05.2002 10:45:12
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: schweiz
Kontaktdaten:

Beitrag von suntsu » 17.06.2003 15:49:17

cp /boot/config_old /usr/src/linux

cd /usr/src/linux

make menuconfig

make-kpkg kernel-image --revision=angepasst.1

cd ..

dpgk -i kernel-image-angepasst_i386.deb

Hier wirst du gefragt ob du die alten Module verschieben willst(z.B. nach /lib/modules/2..4.21.old)(inst. wird abgebrochen, kommt nur bei gleicher kernel-version)

nocheinmal dpgk -i kernel-image-angepasst_i386.deb

Ein paar Fragen beantworten(Bootdisk erstellen, Lilo einrichten(zu empfelen)).

booten

fertig.

gruss
manuel

Benutzeravatar
feltel
Webmaster
Beiträge: 10477
Registriert: 20.12.2001 13:08:23
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Leipzig, Germany
Kontaktdaten:

Beitrag von feltel » 17.06.2003 15:52:36

suntsu hat geschrieben:cp /boot/config_old /usr/src/linux
nicht ganz :wink:

Code: Alles auswählen

cp /boot/config-DEINE_KERNEL_VERSION /usr/src/linux/.config

Benutzeravatar
Dark-Kamui
Beiträge: 439
Registriert: 16.12.2002 20:20:42
Wohnort: Rosenheim (Oberbayern)

Beitrag von Dark-Kamui » 17.06.2003 16:51:04

Naja die alte Config wollte ich jetzt nicht übernehmen. Mit dem Conf File von 2.4.18-bf2.4 habe ich beim 2.4.21 von Kernel.org irgendwie nur probleme gehabt beim make bzImage.

P.S.
Wie kriege ich eigentlich Tux in den Bootvorgang?
Gruss David
Nyx: Athlon64 3000+ | 512MB RAM | ATI Radeon 9800Pro 128MB
Raziel: PentiumM 1,3GHz | 512MB RAM | Intel 855GM
Prometeus: Pentium3 666MHz | 384MB RAM | Nvidia Geforce2MX

Benutzeravatar
Dark-Kamui
Beiträge: 439
Registriert: 16.12.2002 20:20:42
Wohnort: Rosenheim (Oberbayern)

Beitrag von Dark-Kamui » 17.06.2003 21:02:04

# make install
cd usr/src/nv; make install
make[1]: Entering directory `/usr/src/NVIDIA-Linux-x86-1.0-4363/usr/src/nv'
/bin/sh: -c: line 1: syntax error near unexpected token `Debian'
/bin/sh: -c: line 1: `if [ -z ]; then if [ (Debian) != (Debian) ]; then echo " "; echo "You appear to be compiling the NVIDIA kernel module with "; echo "a compiler different from the one that was used to compile "; echo "the running kernel. This may be perfectly fine, but there "; echo "are cases where this can lead to unexpected behaviour and "; echo "system crashes. "; echo " "; echo "If you know what you are doing and want to override this "; echo "check, you can do so by setting IGNORE_CC_MISMATCH. "; echo " "; echo "In any other case, set the CC environment variable to the "; echo "name of the compiler that was used to compile the kernel. "; echo " "; echo -en "\033[1;31m"; echo -e "*** Failed cc sanity check. Bailing out! ***"; echo -en "\033[0m"; exit 1; fi fi'
make[1]: *** [gcc-check] Fehler 2
make[1]: Leaving directory `/usr/src/NVIDIA-Linux-x86-1.0-4363/usr/src/nv'
make: *** [kernel_module_install] Fehler 2
Ich glaube ich kriege langsam ne Krise mit dem Nvidia-Treiber. Warum zickt das Teil nur so rum. :roll: Kernel komplett neu übersetzt, Treiber von Nvidia auch frisch entpackt und dann kommt das ... Kenn jemand das Problem? Ich werde aus dem komischen Buchstabensalat nicht wirklich schlau.
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jun 17 21:04:24 2003

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
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

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 (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel include path: '/lib/modules/2.4.21/build/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.21/bu
ild/include'...
/bin/sh: -c: line 1: syntax error near unexpected token `Debian'
/bin/sh: -c: line 1: `if [ -z 0 ]; then if [ (Debian) != (Debian) ]; then
echo " "; echo "Y
ou appear to be compiling the NVIDIA kernel module with "; echo "a compil
er different from the one that was used to compile "; echo "the running ker
nel. This may be perfectly fine, but there "; echo "are cases where this c
an lead to unexpected behaviour and "; echo "system crashes.
"; echo "
"; echo "If you know what you are doing and want to ov
erride this "; echo "check, you can do so by setting IGNORE_CC_MISMATCH.
"; echo " "
; echo "In any other case, set the CC environment variable to the "; echo
"name of the compiler that was used to compile the kernel. "; echo "

"; echo -en "\033[1;31m"; echo -e "*** Failed cc sanity check.
Bailing out! ***"; echo -en "\033[0m"; exit 1; fi fi'
make: *** [gcc-check] Fehler 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 http://www.nvidia.com.
Edit: Hier noch das Log vom missglückten Installer.
Gruss David
Nyx: Athlon64 3000+ | 512MB RAM | ATI Radeon 9800Pro 128MB
Raziel: PentiumM 1,3GHz | 512MB RAM | Intel 855GM
Prometeus: Pentium3 666MHz | 384MB RAM | Nvidia Geforce2MX

cyrus-tc
Beiträge: 10
Registriert: 16.06.2003 22:36:06

Beitrag von cyrus-tc » 18.06.2003 08:55:21

http://www.debianforum.de/forum/viewtopic.php?t=9279

Das Problem wird schon in diesem Thread diskutiert... vielleicht hilft dir der weiter...
MfG,
Benny

Keine Macht der TCPA / TCG!

Benutzeravatar
Dark-Kamui
Beiträge: 439
Registriert: 16.12.2002 20:20:42
Wohnort: Rosenheim (Oberbayern)

Beitrag von Dark-Kamui » 18.06.2003 12:54:43

Ok jetzt habe ich kapiert woran es liegt. Der 2.4.21 kann zwar durch den GCC3.3 übersetzt werden nur ist Nvidia mit ihren Treiber noch nicht soweit. Jetzt habe ich den symbolischen Link von GCC3.3 auf GCC3.2.
Danke nochmal auf den Hinweis auf den anderen Thread, war zwar nicht 100%ig der gleiche Sachverhalt aber dennoch hat es bei mir den richtigen Denkanstoss gegeben, danke nochmal.
Gruss David
Nyx: Athlon64 3000+ | 512MB RAM | ATI Radeon 9800Pro 128MB
Raziel: PentiumM 1,3GHz | 512MB RAM | Intel 855GM
Prometeus: Pentium3 666MHz | 384MB RAM | Nvidia Geforce2MX

Antworten