Nvidia и Slackware 10.2
Модератор: Модераторы разделов
-
Женя
- Сообщения: 255
Nvidia и Slackware 10.2
Я пробовал установить драйвер Nvidia на Slackware 10.2 и он говорит что типа у меня в ядре подключён модуль rivafb как мне его выключить ? наверное надо будет пересробрать ядро без rivafb как это зделать ? .
Нечем заняться? Отформатируй винт
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-
Haxver
- Сообщения: 183
- ОС: GNU/Linux
Re: Nvidia и Slackware 10.2
Ага! У меня была такая проблема, когда я экспериментировал со сборкой ядра 2.6.14.3. В общем, я этот модуль отрубил и пересобрал ядро. Но есть еще и другой вариант, который я лично не пробовал, это комментирование строки (подгружающей модуль rivafb) в /etc/rc.d/rc.modules, но в своем конфиге я такой строки не нашел.
Вообще пересборка ядра сама по себе вещь не мудреная, а вот правильно сконфигурить - это уже другой вопрос )). Вот, как это делать:
The readme file that comes with the kernel is good but you can skip a few of the steps it has in there to build the new kernel. The reason is the make file for the kernel will do alot of the work for you. I only recommend doing this with Slackware I have heard other distros dont like it at all.
Step 1. Fixing up /etc/lilo.conf
We need to fix up /etc/lilo.conf for this. Even if you dont use the method we are going to talk about its a good idea for a safety net in case your new kernel doesn't work. Add the below entires to your lilo.conf
# Backup Image
image = /vmlinuz.old
root = /dev/sda3
label = oldlinux
Note: replace /dev/sda3 with your boot partition.
Step 2. Compiling the kernel the quick way
Once you have this you are ready to build that new kernel the quick way. Below is the sequence you should follow:
make mrproper (I dont do this most of the time since it will remove your .config)
make menuconfig (ncurses based kernel configuration menu system)
make dep (fixor up them dependencies)
make clean (get rid of old o files and stuff)
make (build it)
make install (read the note below for this one)
make modules (build the modules)
make modules_install (install the modules)
Note: "make install" is one that most don't use but if you run Slackware it will work fine. What it does is: copies, moves, and renames all the files to where they need to be. It also updates lilo for you. This method is very clean fast and easy to use. Again saves a few steps that the readme file says you need to make. If your new kernel fails to work you can boot the old one by hitting the left shift key at the lilo prompt during bootup and typing oldlinux. Nice safety net
. Ok don't tell the RH users about this or AC might change the code so only they can do it
Вообще пересборка ядра сама по себе вещь не мудреная, а вот правильно сконфигурить - это уже другой вопрос )). Вот, как это делать:
The readme file that comes with the kernel is good but you can skip a few of the steps it has in there to build the new kernel. The reason is the make file for the kernel will do alot of the work for you. I only recommend doing this with Slackware I have heard other distros dont like it at all.
Step 1. Fixing up /etc/lilo.conf
We need to fix up /etc/lilo.conf for this. Even if you dont use the method we are going to talk about its a good idea for a safety net in case your new kernel doesn't work. Add the below entires to your lilo.conf
# Backup Image
image = /vmlinuz.old
root = /dev/sda3
label = oldlinux
Note: replace /dev/sda3 with your boot partition.
Step 2. Compiling the kernel the quick way
Once you have this you are ready to build that new kernel the quick way. Below is the sequence you should follow:
make mrproper (I dont do this most of the time since it will remove your .config)
make menuconfig (ncurses based kernel configuration menu system)
make dep (fixor up them dependencies)
make clean (get rid of old o files and stuff)
make (build it)
make install (read the note below for this one)
make modules (build the modules)
make modules_install (install the modules)
Note: "make install" is one that most don't use but if you run Slackware it will work fine. What it does is: copies, moves, and renames all the files to where they need to be. It also updates lilo for you. This method is very clean fast and easy to use. Again saves a few steps that the readme file says you need to make. If your new kernel fails to work you can boot the old one by hitting the left shift key at the lilo prompt during bootup and typing oldlinux. Nice safety net
-
masa
- Сообщения: 86
- ОС: linux
Re: Nvidia и Slackware 10.2
make mrproper
не надо....
заходишь в boot и копируешь vmlinuz в vmlinuz.orig
переходишь в каталог /usr/src/linux (если его нет, ставишь пакет kernel-source)
запускаешь конфигуратор - make menuconfig, в разделе девайсов ищешь видео и снимаешь галку с рива фреймбуфера, больше ничего не трогаешь) выходишь от туда, сохраняя изменения, и делаешь
make bzImage
make modules
под рутом:
make modules_install
make install
вроде, первые две команды можно опустить, они повторяются при прогоне на последних, но пусть будут)
потом открываешь lilo.conf и проверяешь, важно чтоб там были записи: про новое ядро, нечто подобное:
про старое ядро (вот это надо добавить), что-то типа того:
И если есть винда, то про нее строчки
После редактировния lilo.conf надо запустить lilo из под рута. Все, можешь перезагружаться....
не надо....
заходишь в boot и копируешь vmlinuz в vmlinuz.orig
переходишь в каталог /usr/src/linux (если его нет, ставишь пакет kernel-source)
запускаешь конфигуратор - make menuconfig, в разделе девайсов ищешь видео и снимаешь галку с рива фреймбуфера, больше ничего не трогаешь) выходишь от туда, сохраняя изменения, и делаешь
make bzImage
make modules
под рутом:
make modules_install
make install
вроде, первые две команды можно опустить, они повторяются при прогоне на последних, но пусть будут)
потом открываешь lilo.conf и проверяешь, важно чтоб там были записи: про новое ядро, нечто подобное:
Код: Выделить всё
image = /boot/vmlinuz
root = /dev/hda3
label = Linux
read-onlyпро старое ядро (вот это надо добавить), что-то типа того:
Код: Выделить всё
image = /boot/vmlinuz.orig
root = /dev/hda3
label = SlackOrig
read-onlyИ если есть винда, то про нее строчки
После редактировния lilo.conf надо запустить lilo из под рута. Все, можешь перезагружаться....
Gentoo Base System 1.12.5 (2.6.17-gentoo-r8)
-
Женя
- Сообщения: 255
Re: Nvidia и Slackware 10.2
Всё , перекомпелировал я своё старое ядро 2.4.31 без rivafb установил драйвер Nvidia но там надо отредактировать xorg.conf в разделе Device в место nv написать nvidia ну написал я и у меня уже не запускался X давал ошибку но после чего я подравил всё как было всё стало нормально а драйвер всё нармально работет но после каждой перезагрузки он , мне кажется не загружается так что я его устанавливаё в каждый раз . Что делать ? .
Нечем заняться? Отформатируй винт
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-
vg2.0
- Сообщения: 832
- Статус: *BSD admin ;)
- ОС: *BSD =)
Re: Nvidia и Slackware 10.2
to Женя
Проверь после загрузки системы, должен присутствевать модуль nvidia в списке lsmod, если его нету, то нужно выполнить modprobe nvidia, и еще раз проверить.
Проверь после загрузки системы, должен присутствевать модуль nvidia в списке lsmod, если его нету, то нужно выполнить modprobe nvidia, и еще раз проверить.
FreeBSD 6-stable
FreeBSD 5.5-stable
FreeBSD 5.5-stable
-
Женя
- Сообщения: 255
Re: Nvidia и Slackware 10.2
Да в списке lsmod есть nvidia .
Нечем заняться? Отформатируй винт
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-
vg2.0
- Сообщения: 832
- Статус: *BSD admin ;)
- ОС: *BSD =)
Re: Nvidia и Slackware 10.2
FreeBSD 6-stable
FreeBSD 5.5-stable
FreeBSD 5.5-stable
-
alastor
- Сообщения: 844
- Статус: ARCH'еноид
- ОС: Arch Linux current
Re: Nvidia и Slackware 10.2
Запусти glxgears, tuxracer - проверка работоспособности OpenGL - сразу будет видно работает как следует модуль или нет
-
Женя
- Сообщения: 255
Re: Nvidia и Slackware 10.2
А их мне кажется в Slackware 10.2 нет
Нечем заняться? Отформатируй винт
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds
-------------------------------------------------
Software is like sex: it's better when it's free.
©Linus Torvalds