LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2006, 12:42 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Exclamation XGL and Nvidia driver Debian Etch


Could anyone tell me a good guide that he or she knows of for installing XGL and Nvidia drivers for Debian Etch? I don't know if I should do it sense everything is working, and I risk breaking my system. This is what I have.

Code:
chris@debian:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)
chris@debian:~$
 
Old 09-19-2006, 09:49 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
when i was fiddling with Debian Etch i wanted to install the Nvidia kernel module for X i had to download the kernel source for the existing kernel from kernel.org then compile it - but i did not install it because i just wanted to build the kernel headers & files neccessary so the nvidia blob bin from nvidia.com will compile, it worked great using this method - just a lot of work and patience needed since you will have to use either synaptic or aptitude to install several -dev files for X and few other -dev files since debian likes to seperate all these files out...
 
Old 09-19-2006, 12:07 PM   #3
Cyber_Paladin
LQ Newbie
 
Registered: Mar 2006
Location: Hong Kong
Distribution: Debian
Posts: 24

Rep: Reputation: 15
Have you tried "apt-cache search nvidia" yet?
There's quite a lot of binaries, shop around
 
Old 09-19-2006, 03:33 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
nvidia driver is easy using Module assistant..
http://home.comcast.net/~andrex/Debi...tallation.html

Only thing is your nvidia card is a TNT2 which isn't supported in the latest Linux nVidia Drivers.. you will need an older version of the nVidia drivers to get it working.. and I haven't tried that using the module assitant.

the 1.0.7184 is the NEWEST driver from nVidia that you can use with that card..
http://www.nvidia.com/object/linux_d..._1.0-7184.html


looks like you will be unable to use the debian packaged kernel source as the nVidia driver version doesn't match your card for the testing distro..

Package nvidia-kernel-source

* stable (x11): NVIDIA binary kernel module source [non-free]
1.0.7174-3: amd64 i386
* unstable (x11): NVIDIA binary kernel module source [non-free]
1.0.8774-1: amd64 i386
* experimental (x11): NVIDIA binary kernel module source [non-free]
1.0.8774-2: amd64 i386



on the bright side if you try to compile and install the nvidia driver and it doesn't work you can simply edit /etc/X11/xorg.conf and change the driver name from nvidia (proprietary driver) back to nv (open source driver) and your video should work just like it does now..

you need to install the kernel headers for your kernel, download the legacy driver from nvidia, then run the nvidia installer and see what happens..

backup your xorg.conf first..
 
Old 10-01-2006, 04:52 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
nvidia drivers installed. I would not use the ones in the repos. I downloaded mine from www.nvidia.com, but that does me no good because the script and guide here http://sonique54.free.fr/xgl/xgl.htm destroyed my etch install probably beyond repair.
 
Old 12-24-2006, 07:17 AM   #6
Yury
LQ Newbie
 
Registered: Aug 2006
Location: Ukraine
Distribution: Debian Etch
Posts: 15

Rep: Reputation: 0
Hi there! I tried to compile nvidia driver (*.run from nvidia.com), but it fails, saying something alike: "Unable to build the kernel module"...
My system is Debian Etch amd64, kernel is 2.6.17-custom (i have compiled it from source), NVidia driver is one of the latest drivers.
Here is contents of /var/log/nvidia-installer.log:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Dec 24 13:52:43 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : true
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : true
  no questions            : false
  silent                  : 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
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : /emul/ia32-linux
  installer install prefix: /usr
  utility install prefix  : /usr
  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)

chdir("./")
Using: nvidia-installer ncurses user interface
-> Searching for system utilities:
-> found `ldconfig` : `/sbin/ldconfig`
-> found `ldd` : `/usr/bin/ldd`
-> found `ld` : `/usr/bin/ld`
-> found `objcopy` : `/usr/bin/objcopy`
-> found `grep` : `/bin/grep`
-> found `dmesg` : `/bin/dmesg`
-> found `tail` : `/usr/bin/tail`
-> found `cut` : `/usr/bin/cut`
-> found `dmesg` : `/usr/bin/chcon`
-> Searching for module utilities:
-> found `insmod` : `/sbin/insmod`
-> found `modprobe` : `/sbin/modprobe`
-> found `rmmod` : `/sbin/rmmod`
-> found `lsmod` : `/sbin/lsmod`
-> found `depmod` : `/sbin/depmod`
-> License accepted.
-> Kernel module installation path (Answer:
   '/lib/modules/2.6.17-custom/kernel/drivers/video')
-> Kernel module installation path: /lib/modules/2.6.17-custom/kernel/drivers/v
   ideo
-> 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 (f
tp://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 test with CC="cc".
-> Checking development tools:
-> found `cc` : `/usr/bin/cc`
-> found `make` : `/usr/bin/make`
-> Kernel source path (Answer: '/usr/src/linux-source-2.6.17')
-> Kernel source path: '/usr/src/linux-source-2.6.17'
-> Kernel output path: '/usr/src/linux-source-2.6.17'
-> 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 -f stprof stprof.o symtab.h
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-source-2.6.17
   SYSOUT=/usr/src/linux-source-2.6.17'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux-source-2.6.17 SUBDIRS=/tmp/se
   lfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv modules
   mkdir -p /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/.tmp_v
   ersions
   rm -f /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/.tmp_vers
   ions/*
   make -f scripts/Makefile.build obj=/tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8
   174-pkg2/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4109/NVI
   DIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/.n
   v.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include -D__KE
   RNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
   rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-p
   ointer  -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-bloc
   ks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-s
   se -mno
   -mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv -Wall -Wimplici
   t -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-
   arith  -Wno-multichar  -Werror -O -fno-common -mno-red-zone -minline-all-str
   ingops -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES 
   -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJ
   OR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8174  -UDEBUG -U_DEBUG -DN
   DEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT  -D
   MODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MO
   DNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174
   -pkg2/usr/src/nv/nv.o /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c
   In file included from include/linux/sched.h:17,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv-linux.h:47,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c:14:
   include/linux/nodemask.h: In function ‘__first_node’:
   include/linux/nodemask.h:229: warning: signed and unsigned type in condition
   al expression
   include/linux/nodemask.h: In function ‘__next_node’:
   include/linux/nodemask.h:235: warning: signed and unsigned type in condition
   al expression
   include/linux/nodemask.h: In function ‘__first_unset_node’:
   include/linux/nodemask.h:253: warning: signed and unsigned type in condition
   al expression
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:42,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv-linux.h:47,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/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
   In file included from include/asm/elf.h:11,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:17,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv-linux.h:47,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c:14:
   include/asm/compat.h: In function ‘compat_alloc_user_space’:
   include/asm/compat.h:202: warning: pointer of type ‘void *’ used in arit
   hmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv-linux.h:71,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c:14:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:276: warning: wrong type argument to increment
   In file included from include/asm/pci.h:93,
                    from include/linux/pci.h:685,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv-linux.h:71,
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c:14:
   include/asm-generic/pci-dma-compat.h: In function ‘pci_map_page’:
   include/asm-generic/pci-dma-compat.h:49: warning: pointer of type ‘void *â
   €™ used in arithmetic
   In file included from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv/nv.c:14:
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv-linux.h:535:
   2: error: #error "vmap() appears to be unavailable in this kernel!"
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv-linux.h:677:
   2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c: At top le
   vel:
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:296: warni
   ng: initialization from incompatible pointer type
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c: In functi
   on ‘nvos_get_agp_device_by_class’:
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:502: warni
   ng: implicit declaration of function ‘pci_find_class’
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:502: warni
   ng: assignment makes pointer from integer without a cast
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:516: warni
   ng: assignment makes pointer from integer without a cast
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c: In functi
   on ‘nv_kern_mmap’:
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:1979: warn
   ing: implicit declaration of function ‘remap_page_range’
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c: In functi
   on ‘nvos_count_devices’:
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:3641: warn
   ing: assignment makes pointer from integer without a cast
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c:3647: warn
   ing: assignment makes pointer from integer without a cast
   make[3]: *** [/tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/n
   v.o] Помилка 1
   make[2]: *** [_module_/tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   src/nv] Помилка 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [mdl] Помилка 1
   make: *** [module] Помилка 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.
I have installed linux-headers, linux-source-2.6.17, and xserver-xorg-dev packages...
Maybe there are still some includes missing?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to install ATI driver on Debian Etch? Crushing Belial Debian 10 09-19-2008 04:36 PM
XGL on Debian Etch with KDE RodWC Debian 1 08-10-2006 02:27 PM
OpenGL and eventually XGL on Debian Etch... JaseP Debian 7 07-21-2006 09:04 AM
nVidia GeForce 4 MX 440 and Debian Etch pda_h4x0r Linux - Hardware 0 05-09-2006 08:46 PM
HOWTO: Installing nVidia Graphics Drivers on Debian Etch MrKrrtft Debian 1 12-27-2005 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration