Autor Tópico: Driver nvidia NAO compila... e tambem nao consigo usar o pre-compilado (DKMS)  (Lida 1243 vezes)

Offline falecomcyber

  • Usuário Ubuntu
  • *
  • Mensagens: 14
    • Ver perfil
Tenho uma RIVA TNT2 32mb PCI.

No caso, o driver nvidia eh o antigo.. 71
Baixei, fiz os procedimentos todos mas na hora de compilar o modulo, da um erro..
Taí o log:

Código: [Selecionar]
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Dec 31 00:03:21 2008
installer version: 1.0.7

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
  no cc version 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.
-> Installing NVIDIA driver version 71.86.06.
-> 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.27-9-generic/build'
-> Kernel output path: '/lib/modules/2.6.27-9-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.27-9-generi
   c/build SYSOUT=/lib/modules/2.6.27-9-generic/build'...
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.27-9-generic/build SUBDIRS=
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-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/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/.tmp_vers
   ions ; rm -f /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/.tmp_
   versions/*
   make -f scripts/Makefile.build obj=/tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06
   -pkg1/usr/src/nv
     cc -Wp,-MD,/tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/.nv.o
   .d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -D__KERNEL_
   _  -Iinclude  -I/usr/src/linux-headers-2.6.27-9-generic/arch/x86/include -in
   clude include/linux/autoconf.h -
   Iubuntu/include  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-stric
   t-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft
   -float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i
   586 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-
   unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-
   default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-c
   alls -pg -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz6517/N
   VIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wsw
   itch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar
   -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -
   D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__
   -DMODULE -DNV_VERSION_STRING=\"71.86.06\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK
   -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUIL
   D_BASENAME=KBUILD_STR(nv)"  -D"KB
   UILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6517/NVIDIA-Linux-x86-71.8
   6.06-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg
   1/usr/src/nv/nv.c
   In file included from include/linux/bitops.h:17,
                    from include/linux/kernel.h:15,
                    from include/linux/sched.h:52,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv-linux.h:19,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   include/asm/bitops.h: In function ‘set_bit’:
   include/asm/bitops.h:60: warning: pointer of type ‘void *’ used in arith
   metic
   include/asm/bitops.h: In function ‘clear_bit’:
   include/asm/bitops.h:97: warning: pointer of type ‘void *’ used in arith
   metic
   In file included from include/linux/list.h:6,
                    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:57,
                    from include/linux/sched.h:54,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv-linux.h:19,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/utsname.h:35,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv-linux.h:19,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/sched.h: In function ‘object_is_on_stack’:
   include/linux/sched.h:1971: warning: pointer of type ‘void *’ used in ar
   ithmetic
   In file included from include/asm/dma-mapping.h:9,
                    from include/linux/dma-mapping.h:52,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from include/asm/pci.h:94,
                    from include/linux/pci.h:983,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv-linux.h:83,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/scatterlist.h: In function ‘sg_virt’:
   include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
   in arithmetic
   In file included from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv-linux.h:104:27:
   error: asm/semaphore.h: Arquivo ou diretório inexistente
   In file included from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv-linux.h:106,
                    from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/highmem.h: In function ‘zero_user_segments’:
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src
   /nv/nv.c:14:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv-linux.h: In fun
   ction ‘nv_execute_on_all_cpus’:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv-linux.h:595: er
   ror: too many arguments to function ‘on_each_cpu’
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c: In function
   ‘__nv_setup_pat_entries’:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:887: warning:
   comparison between signed and unsigned
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c: In function
   ‘__nv_restore_pat_entries’:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:913: warning:
   comparison between signed and unsigned
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c: In function
   ‘nv_kern_cpu_callback’:
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:1239: warning
   : comparison between signed and unsigned
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:1242: error:
   too many arguments to function ‘smp_call_function’
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:1246: warning
   : comparison between signed and unsigned
   /tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.c:1249: error:
   too many arguments to function ‘smp_call_function’
   make[3]: ** [/tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv/nv.o]
   Erro 1
   make[2]: ** [_module_/tmp/selfgz6517/NVIDIA-Linux-x86-71.86.06-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.


Tentei baixando via apt-get o pre compilado mas.. nada certo..
Na hora que rebooto ele:

Demora numa parte de DKMS auto-installation, no driver da nvidia...
e da [FAIL]

Ai qndo entra no X ele diz que tem q entrar com low-graphics mode.
E agora, pessoal? Alguma ideia?



Caso precise de mais info, vai algumas ai:

LSPCI

Código: [Selecionar]
00:00.0 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.5 PIC: VIA Technologies, Inc. K8M890CE I/O APIC Interrupt Controller
00:00.6 Host bridge: VIA Technologies, Inc. Device 6290
00:00.7 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
00:02.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:0b.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)
00:0c.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] (rev 86)
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 80)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control


LSMOD

Código: [Selecionar]
Module                  Size  Used by
isofs                  40100  1
udf                    88356  0
crc_itu_t              10112  1 udf
ipv6                  263972  10
ppdev                  15620  0
pci_slot               12552  0
wmi                    14504  0
sbs                    19464  0
sbshc                  13440  1 sbs
container              11520  0
video                  25104  0
output                 11008  1 video
battery                18436  0
af_packet              25728  2
iptable_filter         10752  0
ip_tables              19600  1 iptable_filter
x_tables               22916  1 ip_tables
ac                     12292  0
lp                     17156  0
loop                   23180  0
sn9c102               149124  1
videodev               41344  3 sn9c102
v4l1_compat            22404  1 videodev
evdev                  17696  6
parport_pc             39204  1
parport                42604  3 ppdev,lp,parport_pc
snd_via82xx            32536  1
gameport               19468  1 snd_via82xx
snd_via82xx_modem      19464  0
snd_ac97_codec        111652  2 snd_via82xx,snd_via82xx_modem
snd_seq_dummy          10884  0
ac97_bus                9856  1 snd_ac97_codec
snd_pcm_oss            46848  0
snd_mixer_oss          22784  1 snd_pcm_oss
snd_seq_oss            38528  0
snd_pcm                83204  4 snd_via82xx,snd_via82xx_modem,snd_ac97_codec,snd_pcm_oss
snd_mpu401_uart        15360  1 snd_via82xx
snd_seq_midi           14336  0
snd_seq_midi_event     15232  2 snd_seq_oss,snd_seq_midi
snd_seq                57776  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_rawmidi            29824  2 snd_mpu401_uart,snd_seq_midi
snd_timer              29960  2 snd_pcm,snd_seq
snd_seq_device         15116  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
button                 14224  0
i2c_viapro             15764  0
snd                    63268  14 snd_via82xx,snd_via82xx_modem,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_pcm,snd_mpu401_uart,snd_seq,snd_rawmidi,snd_timer,snd_seq_device
snd_page_alloc         16136  3 snd_via82xx,snd_via82xx_modem,snd_pcm
pcspkr                 10624  0
i2c_core               31892  1 i2c_viapro
k8temp                 12416  0
soundcore              15328  1 snd
shpchp                 37908  0
pci_hotplug            35236  1 shpchp
amd64_agp              18184  1
agpgart                42184  1 amd64_agp
ext3                  133384  1
jbd                    55444  1 ext3
mbcache                16004  1 ext3
usbhid                 35840  0
hid                    50560  1 usbhid
sr_mod                 22212  1
cdrom                  43168  1 sr_mod
sd_mod                 42264  2
crc_t10dif              9984  1 sd_mod
pata_acpi              12160  0
ata_generic            12932  0
sg                     39732  0
pata_via               16132  1
sata_via               15492  1
uhci_hcd               30736  0
ehci_hcd               43276  0
libata                177312  4 pata_acpi,ata_generic,pata_via,sata_via
usbcore               148848  5 sn9c102,usbhid,uhci_hcd,ehci_hcd
scsi_mod              155212  4 sr_mod,sd_mod,sg,libata
dock                   16656  1 libata
8139cp                 27520  0
8139too                31616  0
via_rhine              30216  0
mii                    13440  3 8139cp,8139too,via_rhine
thermal                23708  0
processor              42156  2 thermal
fan                    12548  0
fbcon                  47648  0
tileblit               10880  1 fbcon
font                   16512  1 fbcon
bitblit                13824  1 fbcon
softcursor              9984  1 bitblit
fuse                   60828  1


Xorg.0.log.old

Código: [Selecionar]
X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-19-server i686 Ubuntu
Current Operating System: Linux CYBER 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686
Build Date: 24 October 2008  08:00:16AM
xorg-server 2:1.5.2-2ubuntu3 (buildd@rothera.buildd)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 31 00:03:52 2008
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 12 of section Files in file /etc/X11/xorg.conf
"RgbPath" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found
(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
(WW) xf86OpenConsole: VT_GETSTATE failed: Bad file descriptor

Offline falecomcyber

  • Usuário Ubuntu
  • *
  • Mensagens: 14
    • Ver perfil
Re: Driver nvidia NAO compila... e tambem nao consigo usar o pre-compilado (DKMS)
« Resposta #1 Online: 02 de Janeiro de 2009, 00:00 »
Bem..

Acho que sei +- oq ocorreu.
Instalei pelo "envy" e tudo bem, mas na hora que tava iniciando o sistema apos o reboot empacou na mesma parte:



Running DKMS auto installation ...... for kernel ... nvidiaxxx...     [FAIL]
E na hora de entrar no GDM ele nao achou o driver e rodou em low graphics

No LOG do DKMS eu achei o seguinte:

Código: [Selecionar]

nvidia (96.43.09): Installing module.
............
........

nvidia (96.43.09): Already installed on this kernel.

nvidia (96.43.09): Already installed on this kernel.

nvidia (71.86.04): Installing module.
.........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
...........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.

nvidia (71.86.04): Installing module.
.........(bad exit status: 10)
  Build failed.  Installation skipped.


nvidia (71.86.04): Installing module.
..........(bad exit status: 10)
  Build failed.  Installation skipped.



Ele fica dando BUILD FAILED.. e nao instala.
Isso seria pq ja fo instalado um driver antes, como deu pra ver no log? OU nao?
Se sim, como retiro aquele e ponho esse 71.86.04? :/


Agradeço muito aos que ajudarem!