[obsolet] Nvidia und aptosid kernel 2.6.38

Started by towo, 2011/03/15, 10:01:51

Previous topic - Next topic

wenger

Ein etwas älterer Rechner hat ein GeForce4 Ti 4200AGP.
Wenn ich die nvidia source legacy 173xxx so wie im Wiki beschrieben einrichte erhalte ich beim bau des modules immer eine Fehlermeldung, dass der Bau des Modules abgebrochen wird.
ich hänge mal das log von /var/cache/modass/ an.
in Version steht: 173.14.28-0~frickel.4

/usr/bin/make  -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
test -f debian/control || cp debian/control.template debian/control
dh_testdir
dh_testroot
/usr/bin/make LINUXDIR=/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686  clean
make[2]: Entering directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
rm -rf *.o *.ko .depend .*.flags .*.d .*.cmd *.mod.c .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
dh_quilt_unpatch || quilt --quiltrc /dev/null pop -af
dh_clean debian/control debian/install
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
sh debian/prep-modules /usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686
sed 's/#KVERS#/2.6.38-1.slh.2-aptosid-686/g' debian/install.template > debian/install
touch configure-stamp
dh_prep
dh_quilt_patch
Wende Patch use-nv-kernel.o.ARCH.patch an
patching file Makefile.kbuild

Wende Patch conditionally-include-linux_version.h.patch an
patching file nv-linux.h

Wende Patch AUTOCONF_INCLUDED.patch an
patching file nv-linux.h

Jetzt in Patch AUTOCONF_INCLUDED.patch
/usr/bin/make LINUXDIR=/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686
make[1]: Entering directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
make -C /usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686  M=`/bin/pwd` modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686'
 CC [M]  /usr/src/modules/nvidia-kernel-legacy-173xx/nv.o
In file included from include/linux/bitops.h:22:0,
                from include/linux/kernel.h:17,
                from include/linux/sched.h:55,
                from include/linux/utsname.h:35,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h: In function 'set_bit':
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h:64:6: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h: In function 'clear_bit':
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h:102:6: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h: In function 'change_bit':
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/bitops.h:178:6: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/kernel.h:17:0,
                from include/linux/sched.h:55,
                from include/linux/utsname.h:35,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:49:26: warning: signed and unsigned type in conditional expression
In file included from include/linux/list.h:7:0,
                from include/linux/preempt.h:11,
                from include/linux/spinlock.h:50,
                from include/linux/seqlock.h:29,
                from include/linux/time.h:8,
                from include/linux/timex.h:56,
                from include/linux/sched.h:57,
                from include/linux/utsname.h:35,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:57:19: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/preempt.h:11:0,
                from include/linux/spinlock.h:50,
                from include/linux/seqlock.h:29,
                from include/linux/time.h:8,
                from include/linux/timex.h:56,
                from include/linux/sched.h:57,
                from include/linux/utsname.h:35,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/list.h: In function 'list_del':
include/linux/list.h:107:16: warning: pointer of type 'void *' used in arithmetic
include/linux/list.h:108:16: warning: pointer of type 'void *' used in arithmetic
include/linux/list.h: In function 'hlist_del':
include/linux/list.h:602:12: warning: pointer of type 'void *' used in arithmetic
include/linux/list.h:603:13: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/sched.h:82:0,
                from include/linux/utsname.h:35,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/rculist.h: In function 'list_del_rcu':
include/linux/rculist.h:112:16: warning: pointer of type 'void *' used in arithmetic
include/linux/rculist.h: In function 'list_replace_rcu':
include/linux/rculist.h:158:14: warning: pointer of type 'void *' used in arithmetic
include/linux/rculist.h: In function 'hlist_del_rcu':
include/linux/rculist.h:312:13: warning: pointer of type 'void *' used in arithmetic
include/linux/rculist.h: In function 'hlist_replace_rcu':
include/linux/rculist.h:332:15: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/utsname.h:35:0,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:29,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/sched.h: In function 'object_is_on_stack':
include/linux/sched.h:2317:41: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/rculist_bl.h:7:0,
                from include/linux/dcache.h:7,
                from include/linux/fs.h:383,
                from include/linux/poll.h:12,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:82,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/list_bl.h: In function 'hlist_bl_del':
include/linux/list_bl.h:105:12: warning: pointer of type 'void *' used in arithmetic
include/linux/list_bl.h:106:13: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/dcache.h:7:0,
                from include/linux/fs.h:383,
                from include/linux/poll.h:12,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:82,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
include/linux/rculist_bl.h: In function 'hlist_bl_del_rcu':
include/linux/rculist_bl.h:76:13: warning: pointer of type 'void *' used in arithmetic
In file included from /usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/uaccess.h:571:0,
                from include/linux/poll.h:14,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:82,
                from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/uaccess_32.h: In function 'copy_from_user':
/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686/arch/x86/include/asm/uaccess_32.h:209:6: warning: comparison between signed and unsigned integer expressions
In file included from /usr/src/modules/nvidia-kernel-legacy-173xx/nv.c:13:0:
/usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h: At top level:
/usr/src/modules/nvidia-kernel-legacy-173xx/nv-linux.h:88:75: fatal error: linux/smp_lock.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[3]: *** [/usr/src/modules/nvidia-kernel-legacy-173xx/nv.o] Fehler 1
make[2]: *** [_module_/usr/src/modules/nvidia-kernel-legacy-173xx] Fehler 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-1.slh.2-aptosid-686'
make[1]: *** [modules] Fehler 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel-legacy-173xx'
make: *** [build-stamp] Fehler 2
Entschuldigung ist etwas lang.
Danke für die Mühe
Peter

towo

2 Möglichkeiten

1. Installier den aktuellen Frickel Kernel
2. cd /usr/src/modules/nvidia-kernel-legacy-173xx
nv-linux.h in eienem Editor öffnen
Zeile 84
#include linux/smp_lock.h
löschen.
speichern
cd /usr/src
tar -cvjf nvidia-kernel-legacy-173xx.tar.bz2 modules/nvidia-kernel-legacy-173xx/*
rm -rf modules/nvidia-kernel-legacy-173xx
m-a a-i nvidie-kernel-legacy-173xx-source

Große Freude zeigen, du bist nun ein Hacker ;)
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

toga

hallo towo,

würde auch gern hacker nach Methode 2 werden, aber:

/usr/src/modules

ist leer!

Ansonsten läuft legacy-173xx mit 2.6.37-3.slh.3-aptosid-686 natürlich auch prima.

Grüße,

toga

toga

sorry wg. doppelpost - find grad nix, wo ich das löschen kann

Grüße,

toga

towo

Dann erweitern wir einfach mal die Anleitung:

cd /usr/src
unp nvidia-kernel-legacy-173xx.tar.bz2

dann weiter wie Oben.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

wenger

Hallo towo,
das hat etwas gedauert, da aptosid.de nicht erreichbar war und ich erst jetzt einen Weg hierher gefunden habe.
Ich hatte zuerst die gleichen Probleme wie toga, dann habe ich einfach die erste Methode gewählt und Deinen kernel installiert, geht. Herzlichen Dank.
Zur Beförderung zum Hacker hat es alerdings nicht wirklich gereicht.
Peter

BlueAptosid

Im englischen Forum hab ich einen kommentar von "drb" gelesen, das es jetzt auch wieder mit dem normalen aptosid-kernel klappt.

"drb" As I said above, nvidia appears to have removed the offending line and I've installed nvidia 270.41.03 in 2.6.38-3.slh.4

Habe es getestet und es klappt wider.

Danke towo für die Lösung zwischen durch.

gruß Jürgen

bluelupo

Hi BlueAptosid,
du meinst die propietären NVIADIA Treiber? Welche nvidia-Pakete hast du auf deinen System installiert?

BlueAptosid

ja die nVidia Treiber die über das nicht gesupportete script s g f x i instaliert werden. Wobei ich aber diesmal noch mit dem Programm für nVidia x Server Settings Probleme beim abspeichern habe. Es speichert nichts und beendet sich sofort. Hab dann halt das alte xorg.conf zurückgespielt. Ich hoffe dir ist damit geholfen.

holgerix

Danke towo, mit deinem Kernel läuft mein Nvidia-Chip.
Gruß
Holger :D

towo

Der läuft auch mit dem aptosid-kernel, mittlerweile.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

holgerix

Quote from: "towo"Der läuft auch mit dem aptosid-kernel, mittlerweile.

Auch wenn ich den NVIDIA-Treiber nutzen will?
Hab ich zumindest (als alter Mausschubser) nicht hinbekommen :oops:

Gruß
Holger

towo

Den Nvidia-Treiber kann man nicht mit Mausschubsen installieren.
Wenn man den Treiber nach Handbuch installiert, sehe ich Dein Problem nicht.
Sid hat mittlerweile die aktuelle Nvidia-Version, diese hat kein Problem mit fehlendem BKL.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

holgerix

Quote from: "towo"Den Nvidia-Treiber kann man nicht mit Mausschubsen installieren.

Naja, musste nicht so wörtlich nehmen, so ganz fremd ist mir die Konsole nicht........
deinen Kernel zu verwenden war für mich leichter und schneller, da Frauchen den Läppi zum Arbeiten nutzt. :?
Gruß
Holger

Sprinter1

hab heute einen alten Rechner nach Handbuch neu aufgesetzt mit NVidia GeForce FX5500.
Hat alles völlig problemlos geklappt mit neustem aptosid kernel und legacy Treiber aus sid

Host/Kernel/OS  "andreaspc" running Linux 2.6.38-6.slh.1-aptosid-686 i686 [ aptosid 2011-01 Γῆρας - kde-lite - (201102051540) ]
CPU Info        AMD Athlon XP 2400+ clocked at [ 1997.043 MHz ]                                                                          
Videocard       nVidia NV34 [GeForce FX 5500]  X.Org 1.10.1  [ 1280x1024@50.0hz ]                                                        
Processes 111 | Uptime 2:59 | Memory 280.4/502.5MB | HDD Size 41GB (8%used) | GLX Renderer GeForce FX 5500/AGP/SSE/3DNOW! | GLX Version 2.1.2 NVIDIA 173.14.30 | Client Shell | Infobash v3.36


Die Performance ist erstaunlich gut für die alte Kiste. Arbeitsflächen Effekte sind kein Problem.

Sprinter