Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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.

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

Rep: Reputation: 35
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 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 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
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
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
nvidia driver is easy using Module assistant..

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..

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
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,450

Original Poster
Rep: Reputation: 85
nvidia drivers installed. I would not use the ones in the repos. I downloaded mine from, but that does me no good because the script and guide here destroyed my etch install probably beyond repair.
Old 12-24-2006, 07:17 AM   #6
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, 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:
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              :
  RPM file list           : (not specified)

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:
-> Kernel module installation path: /lib/modules/2.6.17-custom/kernel/drivers/v
-> 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:// (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
   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
   rm -f /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/.tmp_vers
   make -f scripts/ obj=/tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4109/NVI
     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 
   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/
   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/
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   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/
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   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/
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   include/asm/compat.h: In function ‘compat_alloc_user_space’:
   include/asm/compat.h:202: warning: pointer of type ‘void *’ used in arit
   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/
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   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/
                    from /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/
   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/
   2: error: #error "vmap() appears to be unavailable in this kernel!"
   2: warning: #warning " failed, assuming remap_page_range(4)!"
   /tmp/selfgz4109/NVIDIA-Linux-x86_64-1.0-8174-pkg2/usr/src/nv/nv.c: At top le
   /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.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
I have installed linux-headers, linux-source-2.6.17, and xserver-xorg-dev packages...
Maybe there are still some includes missing?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

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