nVidia + Debian

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
karol
Posty: 2
Rejestracja: 10 listopada 2006, 22:13

nVidia + Debian

Post autor: karol »

Właśnie zainstalowałem Debian (wcześniej kożystałem z Auroxa) mam prośbe:

Mógłby ktoś napisać bardzo szczegółowo opis instalacji sterowników nVidi w debianie ?

Próbowałem przez instalator nVidi oficjalny ze strony, ale wyskakjue mi, że nie mam "kernel source" kolega powiedział mi, że musze kompilować jądro !!

Nie ma innego sposobu ?
Instalacja jakiejś paczki ?
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

karol pisze:Próbowałem przez instalator nVidi oficjalny ze strony, ale wyskakjue mi, że nie mam "kernel source" kolega powiedział mi, że musze kompilować jądro !!
Nigdy nie instalowałem nvidi ale wątpię żeby trzeba było kompilować jądro. Spróbuj zainstalować najnowsze jądro z repo. W synaptic wpisz kernel-image, a dalej se poradzisz.


Pozdrawiam!
karol
Posty: 2
Rejestracja: 10 listopada 2006, 22:13

Post autor: karol »

w synaptic pokazuje ze mam juz zainstalowany :(
ale /usr/src/ mam pusty

jeszcze oprocz tego kernel-image-(wersja)
mam kernel-image-(wersja)-smp

czy mam to zainstalowac ?
KarolOssowski
Posty: 92
Rejestracja: 25 czerwca 2006, 19:59
Lokalizacja: Warszawa

Post autor: KarolOssowski »

wystarczy skompilowac moduł:
http://www.wonder.pl/index.php/DebianSargeNvidia
1szy sposób, z tym że pamiętaj o zmianie wersji kernela (hint: `uname -a`)
chyl-o
Junior Member
Posty: 621
Rejestracja: 24 maja 2006, 21:06
Lokalizacja: Lublin

Post autor: chyl-o »

karol pisze:Mógłby ktoś napisać bardzo szczegółowo opis instalacji sterowników nVidi w debianie ?
http://czadman.dug.net.pl/debian/articl ... ebian.html
blasq
Posty: 77
Rejestracja: 12 września 2006, 15:12

Post autor: blasq »

Ja mam inny problem, robie zgodnie z instrukcją tutaj:
opis instalacji
ale gdy dochodzę do:

Kod: Zaznacz cały

m-a build nvidia-kernel
to wyskakuje mi bład. oto log:
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
if [ -e patch-stamp ]; then \
dpatch deapply-all ; \
rm -rf patch-stamp debian/patched ; \
fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/lib/modules/2.6.16-2-686/build -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.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 -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.0.3
Detected compiler version : /bin/sh: gcc-4.0: command not found

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.

The compiler that will be used to compile this module has been
determined from:
1) the CC environment variable
2) that specified in
/lib/modules/2.6.16-2-686/build/include/linux/compile.h
3) gcc
Using compiler gcc-4.0 version /bin/sh: gcc-4.0: command not found
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.0" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.16-2-686/build KBUILD_PARAMS="-C /lib/modules/2.6.16-2-686/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
Your kernel was configured to include rivafb support!

The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.

*** Failed rivafb sanity check. Bailing out! ***

make[2]: *** [rivafb-sanity-check] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
o co chodzi?
dodi
Beginner
Posty: 137
Rejestracja: 24 maja 2006, 19:00

Post autor: dodi »

Napisane jak byk !

Kod: Zaznacz cały

....
[Detected compiler version : /bin/sh: gcc-4.0: command not found
....
Pozdrawiam :-)
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

blasq pisze:The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.
Wywal rivafb z kernela ]
leonid
Posty: 86
Rejestracja: 21 stycznia 2007, 18:34
Lokalizacja: Stolyca

Post autor: leonid »

Wystarczy skompilować jądro, a potem odpalić binarkę Nvidii. Inaczej nie robiłem ,ale podobno można dociągnąć prekompilowane pakiety.
blasq
Posty: 77
Rejestracja: 12 września 2006, 15:12

Post autor: blasq »

wziąłem sie wiec za uzupełnienie gcc i wywalenie rivafb z kernela
wpisując

Kod: Zaznacz cały

apt-get install gcc
okazuje sie ze jest to najnowsza wersja
natomiast gdy mimo wszystko chce przeinstalowac i dodaje --reinstall
odpowiada, że gcc cannot be downloaded

oczywiscie przez to nie mogę też skonfigurować jądra bez gcc..
ODPOWIEDZ