GeForce GLX drivers for Sarge
I just put Debian Sarge (3.1) on a friend's computer and its working great, except X isn't starting up. I apt-get installed all the nVidia stuff, and the problem is coming from the kernel module I think. This computer is running 2.6.10 and there is no precompiled module for it. How do I install the module and get GLX working? I'll be putting 3.1 on my main rig when it reaches final too, any info on when it will be final?
|
If you download the kernel-source, kernel-headers and the nvidia-kernel-source you can compile you're own. Do you know how to do it?
Afterwards load: agpgart, nvidia-agp and nvidia modules and change the X nv driver to nvidia. |
Please give detailed instructions :)
|
Apt-get:
nvidia-glx nvidia-kernel-source-2.6.10 nvidia-kernel-common nvidia-settings (optional) kernel-headers-2.6.10-1 kernel-source-2.6.10 Go to /usr/src/ and unpack: nvidia-kernel-source-2.6.10, kernel-source-2.6.10 Do: # cd kernel-source-2.6.10 # make-kpkg modules-image You now have an nvidia*.deb which you install. If you did not compile 2.6.10 yourself, you'll have to copy the nvidia module to the right /lib/modules/[kernelversion]/nvidia path. Load the modules with modconf, reconfigure X: dpkg-reconfigure xserver-xfree86 Use the nvidia driver instead of nv. Do not load the dri and the glcore module of X. Restart X and direct rendering should work. |
OK, I've done everything up to:
"Do: # cd kernel-source-2.6.10 # make-kpkg modules-image You now have an nvidia*.deb which you install. If you did not compile 2.6.10 yourself, you'll have to copy the nvidia module to the right /lib/modules/[kernelversion]/nvidia path. Load the modules with modconf, reconfigure X: dpkg-reconfigure xserver-xfree86 Use the nvidia driver instead of nv. Do not load the dri and the glcore module of X. Restart X and direct rendering should work." I did not compile the kernel, I just did "apt-get install kernel-image-2.6.10-1-386" How do I copy the nvidia module to where you suggested. I can't do this from KDE cause there is no X and I don't know the commands very well. To load the modules with modconf I just type "modconf nvidia" or what? What modules all need to be loaded? Thank you very much, you're getting me there :D:D:D |
Modconf provides an interface in the terminal to load modules. You may not have it, so "apt-get install modconf". It's not installed by default, but extremely usefull.
The nvidia deb will install in /lib/modules/2.6.10/nvidia/nvidia.ko, so: cp -r /lib/modules/2.6.10/nvidia /lib/modules/2.6.10-1-386/ (check the path name with "ls /lib/modules/"). This is basically a workaround which works because the kernel version is the same as the installed version. You'll have to recompile the nvidia kernel module for each kernel upgrade you do in the future. |
I get this error:
debian:/usr/src/kernel-source-2.6.10# make-kpkg modules-image perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). # work around idiocy in recent kernel versions test ! -e scripts/package/builddeb || \ mv -f scripts/package/builddeb scripts/package/builddeb.dist test ! -e scripts/package/Makefile || \ (mv -f scripts/package/Makefile scripts/package/Makefile.dist && \ echo "# Dummy file " > scripts/package/Makefile) test ! -f stamp-debian && test ! -f debian/official && \ rm -rf ./debian && mkdir ./debian test ! -f stamp-debian && \ ( test ! -f debian/official || test ! -f debian/control) && \ sed -e 's/=V/2.6.10/g' -e 's/=D/10.00.Custom/g' \ -e 's/=A/i386/g' -e 's/=SA//g' \ -e 's/=L/lilo (>= 19.1) | grub, /g' -e 's/=I//g' \ -e 's/=CV/2.6/g' \ -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/kernel/g' \ /usr/share/kernel-package/Control> debian/control test ! -f stamp-debian && test ! -f debian/official && \ sed -e 's/=V/2.6.10/g' -e 's/=D/10.00.Custom/g' \ -e 's/=A/i386/g' -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/kernel/g' \ /usr/share/kernel-package/changelog > debian/changelog test ! -f debian/rules && \ install -p -m 755 /usr/share/kernel-package/rules debian/rules echo done > stamp-debian test -f .config || test ! -f .config.save || \ cp -pf .config.save .config test -f .config || test ! -f /usr/share/kernel-package/Config/config.i686 || \ cp -pf /usr/share/kernel-package/Config/config.i686 .config test -f .config || test ! -f /usr/share/kernel-package/config || \ cp -pf /usr/share/kernel-package/config .config test -f .config || (echo "*** Need a config file .config" && false) /usr/bin/make -f debian/rules INCLUDE_KERNEL_MAKEFILE=yes conf_vars perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). make[1]: Entering directory `/usr/src/kernel-source-2.6.10' debian/rules:1762: warning: overriding commands for target `.config' Makefile:489: warning: ignoring old commands for target `.config' debian/rules:1782: warning: overriding commands for target `clean' Makefile:959: warning: ignoring old commands for target `clean' debian/rules:2367: warning: overriding commands for target `modules' Makefile:853: warning: ignoring old commands for target `modules' Please ignore the warning about overriding and ignoring targets above. These are harmless. They are only invoked in a part of the process that tries to snarf variable values for the conf.vars file. make[1]: Leaving directory `/usr/src/kernel-source-2.6.10' /usr/bin/make \ ARCH=i386 oldconfig make[1]: Entering directory `/usr/src/kernel-source-2.6.10' HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c:105:23: sys/types.h: No such file or directory scripts/basic/fixdep.c:106:22: sys/stat.h: No such file or directory scripts/basic/fixdep.c:107:22: sys/mman.h: No such file or directory scripts/basic/fixdep.c:108:20: unistd.h: No such file or directory scripts/basic/fixdep.c:109:19: fcntl.h: No such file or directory scripts/basic/fixdep.c:110:20: string.h: No such file or directory scripts/basic/fixdep.c:111:20: stdlib.h: No such file or directory scripts/basic/fixdep.c:112:19: stdio.h: No such file or directory In file included from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7, from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11, from scripts/basic/fixdep.c:113: /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122:75: limits.h: No such file or directory scripts/basic/fixdep.c:114:19: ctype.h: No such file or directory scripts/basic/fixdep.c:115:23: arpa/inet.h: No such file or directory scripts/basic/fixdep.c: In function `usage': scripts/basic/fixdep.c:129: warning: implicit declaration of function `fprintf' scripts/basic/fixdep.c:129: error: `stderr' undeclared (first use in this function) scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once scripts/basic/fixdep.c:129: error: for each function it appears in.) scripts/basic/fixdep.c:130: warning: implicit declaration of function `exit' scripts/basic/fixdep.c: In function `print_cmdline': scripts/basic/fixdep.c:135: warning: implicit declaration of function `printf' scripts/basic/fixdep.c: At top level: scripts/basic/fixdep.c:138: error: `NULL' undeclared here (not in a function) scripts/basic/fixdep.c: In function `grow_config': scripts/basic/fixdep.c:151: warning: implicit declaration of function `realloc' scripts/basic/fixdep.c:151: warning: assignment makes pointer from integer without a cast scripts/basic/fixdep.c:152: error: `NULL' undeclared (first use in this function) scripts/basic/fixdep.c:153: warning: implicit declaration of function `perror' scripts/basic/fixdep.c: In function `is_defined_config': scripts/basic/fixdep.c:169: warning: implicit declaration of function `memcmp' scripts/basic/fixdep.c: In function `define_config': scripts/basic/fixdep.c:182: warning: implicit declaration of function `memcpy' scripts/basic/fixdep.c: In function `use_config': scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use inthis function) scripts/basic/fixdep.c:215: warning: implicit declaration of function `tolower' scripts/basic/fixdep.c:201: warning: unused variable `s' scripts/basic/fixdep.c: At top level: scripts/basic/fixdep.c:220: error: parse error before "size_t" scripts/basic/fixdep.c:221: warning: function declaration isn't a prototype scripts/basic/fixdep.c: In function `parse_config_file': scripts/basic/fixdep.c:222: error: `map' undeclared (first use in thisfunction) scripts/basic/fixdep.c:222: error: `len' undeclared (first use in thisfunction) scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl' scripts/basic/fixdep.c:239: warning: implicit declaration of function `isalnum' scripts/basic/fixdep.c: In function `strrcmp': scripts/basic/fixdep.c:252: warning: implicit declaration of function `strlen' scripts/basic/fixdep.c: In function `do_config_file': scripts/basic/fixdep.c:263: error: storage size of `st' isn't known scripts/basic/fixdep.c:267: warning: implicit declaration of function `open' scripts/basic/fixdep.c:267: error: `O_RDONLY' undeclared (first use inthis function) scripts/basic/fixdep.c:269: error: `stderr' undeclared (first use in this function) scripts/basic/fixdep.c:273: warning: implicit declaration of function `fstat' scripts/basic/fixdep.c:275: warning: implicit declaration of function `close' scripts/basic/fixdep.c:278: warning: implicit declaration of function `mmap' scripts/basic/fixdep.c:278: error: `NULL' undeclared (first use in this function) scripts/basic/fixdep.c:278: error: `PROT_READ' undeclared (first use in this function) scripts/basic/fixdep.c:278: error: `MAP_PRIVATE' undeclared (first usein this function) scripts/basic/fixdep.c:278: warning: assignment makes pointer from integer without a cast scripts/basic/fixdep.c:287: warning: implicit declaration of function `munmap' scripts/basic/fixdep.c:263: warning: unused variable `st' scripts/basic/fixdep.c: At top level: scripts/basic/fixdep.c:292: error: parse error before "size_t" scripts/basic/fixdep.c:293: warning: function declaration isn't a prototype scripts/basic/fixdep.c: In function `parse_dep_file': scripts/basic/fixdep.c:294: error: `map' undeclared (first use in thisfunction) scripts/basic/fixdep.c:295: error: `len' undeclared (first use in thisfunction) scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use inthis function) scripts/basic/fixdep.c:299: warning: implicit declaration of function `strchr' scripts/basic/fixdep.c:301: error: `stderr' undeclared (first use in this function) scripts/basic/fixdep.c:297: warning: unused variable `s' scripts/basic/fixdep.c: In function `print_deps': scripts/basic/fixdep.c:334: error: storage size of `st' isn't known scripts/basic/fixdep.c:338: error: `O_RDONLY' undeclared (first use inthis function) scripts/basic/fixdep.c:340: error: `stderr' undeclared (first use in this function) scripts/basic/fixdep.c:350: error: `NULL' undeclared (first use in this function) scripts/basic/fixdep.c:350: error: `PROT_READ' undeclared (first use in this function) scripts/basic/fixdep.c:350: error: `MAP_PRIVATE' undeclared (first usein this function) scripts/basic/fixdep.c:350: warning: assignment makes pointer from integer without a cast scripts/basic/fixdep.c:334: warning: unused variable `st' scripts/basic/fixdep.c: In function `traps': scripts/basic/fixdep.c:369: error: `stderr' undeclared (first use in this function) make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.6.10' make: *** [stamp-kernel-configure] Error 2 |
Did you unpack nvidia-kernel-source-x.x.xx as well in /usr/src/ ? I'm not seeing anything I expected to see.
|
Where I can find nvidia-kernel-source-2.6.10? The latest I found is 2.4.27-1-386.
I did: apt-cache search nvidia-kernel | grep 2.6 and got nothing. |
http://packages.debian.org/cgi-bin/s...mozilla-search
It's just called nvidia-kernel-source, my mistake...:( It's in the non-free section. |
|
Moloko
Thanks alot for help. I did exactly as you said above and got exactly what mentioned. I got the nvidia-kernel-2.6.10_1.0.6629+1-1+10.00.Custom_i386.deb packaget. I got it installed. I got the dirver in /lib/modules/2.6.10/nvidia. I made the changes in /etc/X11/XF86Config-4 as follows: made sure that Load "glx" is there. deleted Load "dri" and Load "GLcore" replaced Driver "vesa" with Driver "nvidia" Note: I am supposed to change Driver "nv" to Driver "nvidia" but there was no Driver "nv" in the file. Then I added the module to /etc/modules. The system did load the driver and got this message from dmesg: nvidia: module license 'NVIDIA' taints kernel. NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6629 Wed Nov 3 13:12:51 PST 2004 Eveything looks ok, but when I boot, I get a white screen with nVidia logo and some icons and nothing working. For your info, my card is GForce4 MX 4000 with nVidia chip. In my mother board I got a built in VGA adapter. Before I install the drivers in the way you explained above, I installed it using NVIDIA-Linux-x86-1.0-6629-pkg1.run and got the same results. During the previous installation it gave me a message this message: Your kernel was configured to include rivafb support as a loadable kernel module. The rivafb driver conflicts with the NVIDIA driver; the NVIDIA kernel module will still be built and installed, but be aware that the NVIDIA driver will not be able to function properly if the rivafb module is loaded! *** Failed rivafb module sanity check, but continuing! *** Any Idea what I should do? |
Get rid of the rivafb. Stop the module from loading or recompile the kernel with rivafb as a module.
You're getting close. The Nvidia splash is something. |
Thanks for reply. It is a module in /lib/modules/2.6.10/kernel/drivers/video/riva/rivafb.ko. I have even done a test by changing its name and do depmod -a to prevent it from loading but did not succeed.
|
Modules are in /etc/modules. Could you give the output of "lsmod | grep riva"?
|
All times are GMT -5. The time now is 09:43 PM. |