Autor Tópico: ERRO apos instalar Driver Restrito Nvidia  (Lida 2619 vezes)

Offline PauloC

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
ERRO apos instalar Driver Restrito Nvidia
« Online: 06 de Abril de 2007, 18:29 »
Oi,
Depois de muito tempo usando o sistema MS resolvi testar o  Linux, escolhi o Ubuntu, peguei logo a versão 7 Beta e não foi dificil instalar. Depois notei que minha placa Nvidia GeForce 4 MX 8xAGP não estava instalada e fui em uma area chamada "Gerenciado de Drivers Restritos". Foi fácil apenas cliquei lá no driver Nvidia e começou a instalar.
O Problema foi quando reiniciei o sistema deu um erro e não abria a interface gráfica, tive que voltar pro windows e procurar alguem no irc e me ensinaram a voltar com um driver chamado "vesa" (eu fiz um comando sudo dpkg-reconfigure xserver-xorg)
Agora estou usando Ubuntu sem minha placa configurada, pesso a ajuda de vcs p/ resolver o erro:

Código: [Selecionar]
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Apr  6 05:18:13 2007

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  force tls               : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.20-13-generic/build'
-> Kernel output path: '/lib/modules/2.6.20-13-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
   agp.o os-interface.o os-registry.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 -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.20-13-gener
   ic/build SYSOUT=/lib/modules/2.6.20-13-generic/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.20-13-generic/build SUBDIRS
   =/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo "  ERROR: Kernel configuration is invalid."; \
    echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing."; \
    echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   ."; \
    echo; \
    /bin/false)
   mkdir -p /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_ver
   sions
   rm -f /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_versio
   ns/*
   make -f scripts/Makefile.build obj=/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-718
   4-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz27789/NV
   IDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.nv.
   o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL
   __ -Iinclude  -include include/linux/autoconf.h -Iubuntu/include  -Wall -Wun
   def -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
   -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2  -march=i586 -mt
   une=generic -ffreestanding -maccumulate-outgoing-args   -Iinclude/asm-i386/m
   ach-default -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-afte
   r-statement -Wno-pointer-sign -I/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-p
   kg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subsc
   ripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common
   -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KER
   NEL__ -DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMO
   DULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7184  -DNV_U
   NIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86      -UDEBUG -U_DEBUG -DNDEBU
   G -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_
   CLASS_PRES
   ENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_P
   AGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_
   VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(
   nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz27789/NVIDIA-Li
   nux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz27789/NVIDIA-Linux-x86
   -1.0-7184-pkg1/usr/src/nv/nv.c
   In file included from /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/sr
   c/nv/nv.c:14:
   /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv-linux.h:17:26:
   error: linux/config.h: Arquivo ou diretório inexistente
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/sr
   c/nv/nv.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: At top leve
   l:
   /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:93: warning:
   ‘kmem_cache_t’ is deprecated
   /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: In function
   ‘nv_kern_open’:
   /tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:1764: warnin
   g: passing argument 2 of ‘request_irq’ from incompatible pointer type
   make[3]: ** [/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.o
   ] Erro 1
   make[2]: ** [_module_/tmp/selfgz27789/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
   /nv] Erro 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: ** [module] Erro 1
   make: ** [module] Erro 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 www.nvidia.com.

 

Offline wildner

  • Usuário Ubuntu
  • *
  • Mensagens: 193
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #1 Online: 06 de Abril de 2007, 18:52 »
Olá Paulo,

Vamos instalar os pacotes obrigatórios para a instalação do driver
da Nvidia mais à frente. Precisaremos dos headers do seu kernel, os arquivos
de deselvolvimento do Xorg e o Gcc, para a compilação. Como root:

Sudo apt-get install linux-headers-`uname -r` build-essential gcc
gcc-3.4xserver-xorg-dev

Sudo apt-get install mc

O próximo passo é remover todos os rastros do antigo driver Nvidia instalado
em seu Ubuntu. Primeiro, removemos o scriptde inicialização:

Sudo rm -f /etc/init.d/nvidia-*

Segundo, todos os pacotes dos drivers disponíveis através de repositórios:

Sudo apt-get --purge remove nvidia-glx nvidia-settings nvidia-kernel-common

Terceiro, "zerar" as configurações do pacote xserver-sorg, com:

Sudo dpkg-reconfigure -phigh xserver-xorg

O próximo passo é a instalação da versão mais recente do driver da Nvidia
para o Linux. Você pode baixar através do site da Nvidia
http://www.nvidia.com

A partir daqui  imprima o conteúdo abaixo pois vamos parar o GDM e
entrar no modo texto:

Sudo /etc/init.d/gdm stop

Pressione Crtl+Alt+F1 para abrir uma sessão nova, e faça o login como usuário normal, entrando depois no diretório com o driver salvo. Torne-o um executável com o:

Sudo chmod +x "nome do driver NVIDIA"

E partimos para a instalação:

sudo ./"nome do driver NVIDIA"

Vá dando Enter em "Accept" e "Yes" em todas as telas, mas *tome
cuidado*onde ele pergunta sobre fazer download de módulos
pré-compilados. Nesta pergunta, responda "No".

A seguir, editaremos o arquivo "*linux-restricted-modules-common*", com o
intuito de desativar o módulo "nv", que opera as placas da Nvidia com um
driver de código livre, que consequentemente não oferece suporte 3D. Agora
sim, iremos usar aquele editor de textos do início:

Sudo mcedit /etc/default/linux-restricted-modules-common

Vá até a última linha do arquivo, e troque DISABLED_MODULES="" por *
DISABLED_MODULES="nv"*

# This file is sourced from the linux-restricted-modules-common init
# script and is used to disable the link-on-boot feature, one module
# at a time. This can be useful if you want to use hand-compiled
# versions of one or more modules, but keep linux-restricted-modules
# installed on your system, or just to disable modules you don't use
# and speed up your boot process by a second or two.
#
# Use a space-separated list of modules you wish to not have linked
# on boot. The following example shows a (condensed) list of all
# modules shipped in the linux-restricted-modules packages:
#
# DISABLED_MODULES="ath_hal fc fglrx ltm nv"
#
# Note that disabling "fc" disables all fcdsl drivers, "ltm" disables
# ltmodem and ltserial, and "nv" disables both the nvidia drivers.
# You can also name each module individually, if you prefer a subset.

DISABLED_MODULES="nv"

Salve o arquivo teclando F2, saindo depois com um F10.

Agora é preciso reiniciar o sistema, para que todas as alterações tenha
efeito. Faça isso rodando:

Sudo shutdown -r now

Offline Mário_Riter

  • Usuário Ubuntu
  • *
  • Mensagens: 6
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #2 Online: 06 de Abril de 2007, 19:42 »
Oi
eu tentei fazer aq em casa quando eu digito o comando  Sudo apt-get install linux-headers-`uname -r` build-essential gcc gcc-3.4xserver-xorg-dev fala q E impossival achar pacote gcc-3.4xserver-xorg-dev.
T+

ginho

  • Visitante
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #3 Online: 06 de Abril de 2007, 19:46 »
Acho que tem um espaço entre gcc3.4 e xserver.

Offline Mário_Riter

  • Usuário Ubuntu
  • *
  • Mensagens: 6
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #4 Online: 06 de Abril de 2007, 20:20 »
Muito Obrigado.
Agora deu certo mas agora fala q e impossivel achar pacote mc quando eu digito o comando "Sudo apt-get install mc"
T+

Offline PauloC

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #5 Online: 06 de Abril de 2007, 20:22 »
Ok consegui rodar meu driver :) ,vlw mesmo, mas podia ser mais facil né levei quase 2 horas pra conseguir isso. :-X tem cara ai que diz que era so clicar em dois botões pra funcionar...

desconbri que "uname -r" e o comando pra saber seu kernel, faz o comando "uname -r" sozinho no terminal e coloca o nome que aparecer no lugar do "uname -r" que ele digitou na explicação.

Mas agora tenho outra duvida, não existe mais aquele atalho de efeitos desktop no meu Sistema>Preferencias, como faco pra voltar aquilo?

E outra duvida, entrei em informações de hardware e diz que minha placa esta usando PCI, como sei se minha Nvidia esta usando recurso 8xAGP ?

Offline AlexBR

  • Usuário Ubuntu
  • *
  • Mensagens: 388
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #6 Online: 06 de Abril de 2007, 20:28 »
Para instalar o pacote mc você precisa editar o /etc/apt/source.list e habilitar os repositórios do multiuniverse. Vais ter que usar o vi. O vi é dureza!!! :-)

Offline Mário_Riter

  • Usuário Ubuntu
  • *
  • Mensagens: 6
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #7 Online: 06 de Abril de 2007, 23:10 »
Obrigado
consegui instalar o pacote mc mas deu um problena noX quando estava instalando os Driver e continuou dando o msm problema na hora de instalar
na tela de erro esta assim

X Windows System Version 7.1.1
Release Date:12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operation System: Linux 2.6.5.7 i 686
Current Operating System: Linux mario-desktop 2.6.17-11-generic #25MP
Thu Feb 1 19:52:28 UTC 2007 i686
Build Date:07 July 2006
                   Before reporting problems, check http://wiki.x.org
                   to make sure that you have the lastest version.
Module Loader present
Markers: (--) probled, (**) from config file, (==) defaut setting,
             (++) from command line, (!!)notice, (II) informational,
             (WW) warning, (EE) error, (NI) not implemented, (??)unknown..
(==) Loy file: "/var/log/Xorg.0.log", Time: Fri Apr 6 22:34:31 2007
(==) Using config file: "/etc/X11/xorg.conf"
(EE)No devisor detected.
Fatal server error:
no screens found
esse foi oerro q esta aparecenquando eu aperto ctrl+alt+F7
T+

Offline paozinho

  • Usuário Ubuntu
  • *
  • Mensagens: 432
    • Ver perfil
Re: ERRO apos instalar Driver Restrito Nvidia
« Resposta #8 Online: 06 de Abril de 2007, 23:14 »
Amigo, o que eu acho que aconteceu é...que você instalou o driver....e ATUALIZOU o KERNEL ! Ai ele entrou em conflito...o negócio eh iniciar o Ubuntu...fazer as atualizações...após isso..reiniciar...quando conectar no NOVO kernel...vc instala o driver restrito pelo gerenciador do Ubuntu 7.04 ...
« Última modificação: 06 de Abril de 2007, 23:16 por paozinho »