Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
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.
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...
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.
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..
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Original Poster
Rep:
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.