LINUX.ORG.RU

Не устанавливаются драйвера NVIDIA


0

1

Всем доброго времени суток, купил пощную тачку на работу, установил centos 5.5, пытаюсь установить драйвера на nvidia gtx465 скаченые с офф сайта, пишит вот что : ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.

Скажу сразу, я в линксе только начинающий, а про то, что тут говорят, kernel-source и kernel-devel у меня установленны... а почему тогда он это пишит ? Помогите пожалуйста начинающему линуксойду... Тьма тьмущая прочел инфы в гугле, пробовал переустановить центос заного со ВСЕМИ галками, думал что чего то не доставил... не помогло...

Ответ на: комментарий от madgnu

[root@pc87 ~]# dmesg | tail
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
eth0: no IPv6 routers present
mtrr: type mismatch for e5c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for e5800000,400000 old: write-back new: write-combining
mtrr: type mismatch for e5000000,800000 old: write-back new: write-combining
mtrr: type mismatch for e5c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for e5800000,400000 old: write-back new: write-combining
mtrr: type mismatch for e5000000,800000 old: write-back new: write-combining

DENtist43
() автор топика
Ответ на: комментарий от DENtist43

так. cделай modprobe nvidia

и если после этого иксы не запустятся — смотри вывод dmesg на предмет ошибок этого модуля.

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

Я вынужден на 2 часа отъехать, жена заждалась...
Так что попробую чуть позже, если ты сегоня уже не сможешь отписатся... большая просьба не бросать меня ))))) без тебя не разберуся ;)))

Спасибо тебе большое за подсказки !!!
Как приеду, проверю что скажешь и отпишусь.

DENtist43
() автор топика
Ответ на: комментарий от madgnu

[root@pc87 ~]# modprobe nvidia
FATAL: Module nvidia not found.


startx по прежнему не запускается...

[root@pc87 ~]# dmesg | tail
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
eth0: no IPv6 routers present
mtrr: type mismatch for e5c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for e5800000,400000 old: write-back new: write-combining
mtrr: type mismatch for e5000000,800000 old: write-back new: write-combining
mtrr: type mismatch for e5c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for e5800000,400000 old: write-back new: write-combining
mtrr: type mismatch for e5000000,800000 old: write-back new: write-combining

DENtist43
() автор топика
Ответ на: комментарий от DENtist43

так, есть ли в /usr/src/kernels хидеры, соответствующие работающему ядру?

покажи вывод ls -ld /usr/src/kernels/$(uname -r)

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

[root@pc87 ~]# ls -ld /usr/src/kernels/$(uname-r)
-bash: uname-r: команда не найдена
drwxr-xr-x 5 root root 4096 Окт 20 18:18 /usr/src/kernels/

DENtist43
() автор топика
Ответ на: комментарий от madgnu

[root@pc87 ~]# ls -ld /usr/src/kernels/$(uname -r)
ls: /usr/src/kernels/2.6.18-194.17.1.el5.centos.plusPAE: Нет такого файла или каталога

DENtist43
() автор топика
Ответ на: комментарий от unikum

А как найти конкретный devel и headers ?
yum install kernel-devel или yum install kernel-headers ?
А он подцепит то, что нужно ?

DENtist43
() автор топика
Ответ на: комментарий от madgnu

Я так понял и тот и другой...
[root@pc87 ~]# rpm -qa|grep kernel
kernel-PAE-2.6.18-194.17.1.el5
kernel-PAE-devel-2.6.18-194.17.1.el5.centos.plus
kernel-devel-2.6.18-194.17.1.el5
kernel-PAE-2.6.18-194.17.1.el5.centos.plus
kernel-PAE-2.6.18-194.el5
kernel-headers-2.6.18-194.17.1.el5.centos.plus
kernel-devel-2.6.18-194.17.1.el5.centos.plus

DENtist43
() автор топика
Ответ на: комментарий от DENtist43

devel-пакет ты однозначно поставил от plus (что это вообще за репозиторий такой у центоса?), поэтому нужно поставить devel для обычного PAE-ядра и пересобрать модуль nvidia (тупо переустановить драйвер вобщем-то)

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

Так, я выполнил :
[root@pc87 ~]# ls -l /usr/src/kernels/
итого 28
drwxr-xr-x 19 root root 4096 Окт 20 16:55 2.6.18-194.17.1.el5.centos.plus-i686
drwxr-xr-x 19 root root 4096 Окт 20 18:18 2.6.18-194.17.1.el5.centos.plus-PAE-i686
lrwxrwxrwx 1 root root 40 Окт 20 18:18 2.6.18-194.17.1.el5.centos.plusPAE-i686 -> 2.6.18-194.17.1.el5.centos.plus-PAE-i686
drwxr-xr-x 19 root root 4096 Окт 20 16:55 2.6.18-194.17.1.el5-i686
[root@pc87 ~]#

и получил данные, что кроме plus у меня есть ядро 2.6.18-194.17.1.el5-i686
и вы выполняю команду :
./NVIDIA-Linux-x86-260.19.12.run --kernel-source-path /usr/src/kernels/2.6.18-194.17.1.el5-i686/


И снова получил ошибку...

ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this
kernel module was built against the wrong or improperly configured kernel sources, with a
version of gcc that differs from the one used to build the target kernel, or if a driver
such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module
from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in
this system is not supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of
the file '/var/log/nvidia-installer.log' for more information.

DENtist43
() автор топика
Ответ на: комментарий от DENtist43

Нет, с этим мы в самом начале пробовали.

Нет хидеров для текущего ядра, насколько я понял, работает не то, что plus, но с PAE. Соответственно, нужно поставить нужный пакет. Вот ссылка на rpm: http://mirror.yandex.ru/centos/5.5/os/i386/CentOS/kernel-PAE-devel-2.6.18-194...

и после этого в /usr/src/kernels появится каталог 2.6.18-194.el5-PAE-i686, на который и нужно натравить инсталлер.

Вся эта катавасия именно из-за путаницы с разными пакетами, все очень просто на деле.

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

Скачал, пытаюсь установить, вот что пишет:
[root@pc87 Desktop]# rpm -i kernel-PAE-devel-2.6.18-194.el5.i686.rpm
пакет kernel-PAE-devel-2.6.18-194.17.1.el5.centos.plus.i686 (который новее, чем kernel-PAE-devel-2.6.18-194.el5.i686) уже установлен

DENtist43
() автор топика
Ответ на: комментарий от madgnu

Сделал удаление:
rpm -e kernel-PAE-devel

Потом установил :
rpm -i kernel-PAE-devel-2.6.18-194.el5.i686.rpm

Проверил какие ядра установлены:
ls -l /usr/src/kernels/
итого 28
drwxr-xr-x 19 root root 4096 Окт 20 16:55 2.6.18-194.17.1.el5.centos.plus-i686
drwxr-xr-x 19 root root 4096 Окт 20 16:55 2.6.18-194.17.1.el5-i686
drwxr-xr-x 19 root root 4096 Окт 21 16:27 2.6.18-194.el5-PAE-i686
lrwxrwxrwx 1 root root 23 Окт 21 16:27 2.6.18-194.el5PAE-i686 -> 2.6.18-194.el5-PAE-i686


Потом начал устанавливать драйвра :
./NVIDIA-Linux-x86-260.19.12.run --kernel-source-path /usr/src/kernels/2.6.18-194.el5PAE-i686



Ну и вышла такая же ошибка...



ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this
kernel module was built against the wrong or improperly configured kernel sources, with a
version of gcc that differs from the one used to build the target kernel, or if a driver
such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module
from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in
this system is not supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of
the file '/var/log/nvidia-installer.log' for more information.

DENtist43
() автор топика
Ответ на: комментарий от madgnu

Так же пробовал устанавливать на другое ядро, но тоже не вышло:
[root@pc87 Desktop]# ./NVIDIA-Linux-x86-260.19.12.run --kernel-source-path /usr/src/kernels/2.6.18-194.el5-PAE-i686/

DENtist43
() автор топика
Ответ на: комментарий от madgnu

Проделал еще раз эти телодвижения, удалил старый kernel
[root@pc87 soft]# rpm -e kernel-PAE-devel

Потом скачал новый :
wget http://mirror.yandex.ru/centos/5.5/updates/i386/RPMS/kernel-PAE-devel-2.6.18-...


Установил :
rpm -i kernel-PAE-devel-2.6.18-194.17.1.el5.i686.rpm

И установил драйвер нвидиа:
./NVIDIA-Linux-x86-260.19.12.run --kernel-source-path /usr/src/kernels/2.6.18-194.17.1.el5-PAE-i686



И снова эта ошибка....

ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this
kernel module was built against the wrong or improperly configured kernel sources, with a
version of gcc that differs from the one used to build the target kernel, or if a driver
such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module
from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in
this system is not supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of
the file '/var/log/nvidia-installer.log' for more information.

DENtist43
() автор топика
Ответ на: комментарий от madgnu

а что если удалить ВСЕ kernel что установлены у меня а потом установить только один, такое возможно ?
Или у меня отвалятся какие либо службы ?

DENtist43
() автор топика
Ответ на: комментарий от madgnu

стукни мне в джаббер лучше (в профиле), а то здесь долго и нудно будем обсуждать.

madgnu ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.