View Single Post
Old 09-24-02, 06:20 AM   #8
Registered User
Join Date: Sep 2002
Posts: 8
Send a message via AIM to Scorched

I read the /usr/share/doc on the latest drivers, and it described something similar to your method. I tried it, and I still received:

depmod: *** Unresolved symbols in /lib/modules/2.4.19/kernel/drivers/video/NVdriver

but without the make: *** [nv.o] Error 1

I turned off the frame buffer, so now the default drivers that come with XFree86 are allowing me to use X Windows. But I still want the accelerated graphics drivers. I'm getting closer.

I'm not sure which of these methods I'm supposed to follow though:

------> README.Debian.gz <------
nvidia-kernel-src for Debian


There are TWO ways to build the nvidia-kernel package. Which one depends on
your situation with your kernel.

METHOD #1: You are running a Debian suppiled kernel or built a
kernel-headers package along with your own self-built kernel.

METHOD #2: You are running your own self-built kernel built from kernel

Which method you choose really depends on what kernel headers you wish to
use, those from a kernel-headers package or those from kernel
source (from which you built your own kernel).

As mentioned above, if you are running a Debian suppiled kernel you will
probably want to choose METHOD #1. If you compile your own kernels, METHOD #2.

- Decide where you want to build your module. By default it
will build under /usr/src like other kernel modules but you may choose
to build it under your home directory as some people prefer and writing to
/usr violates the FHS.

- During the building step the file NVIDIA_kernel-1.0-3123.tar.gz will be
downloaded via wget from NVIDIA's website to
<YOUR BUILD LOCATION>/modules/nvidia-kernel-1.0.3123 if it isn't there
already. This file contains the actual driver files.
If you don't have network access on the machine you are building on
you need to download from
and put the file in <YOUR BUILD LOCATION>/modules/nvidia-kernel-src-1.0.3123
before building.

- You may specify another location to place the downloaded file with
the DOWNLOAD_DIR environment variable.

METHOD #1 Using a kernel-headers package
************************************************** *********************

As root (or using fakeroot)
1. cd /usr/src
tar xzvf nvidia-kernel-src.tar.gz -C <YOUR BUILD LOCATION>
(It will install in <YOU BUILD LOCATION>/modules)
- or -
tar xzvf nvidia-kernel-src.tar.gz (if building in /usr/src)

3. Find out your kernel version:

uname -r For example: 2.4.18-k7

4. Download and install package: kernel-headers-2.4.18-k7
It will install in /usr/src/

5. Set some environment variables (if bash is your shell):

export KSRC=/usr/src/kernel-headers-2.4.18-k7
export KVERS=2.4.18-k7

6. Then build nvidia-kernel package:

cd <YOUR BUILD LOCATION>/modules/nvidia-kernel-1.0.3123
debian/rules binary_modules

7. Install the nvidia-kernel package:

dpkg -i ../../nvidia-kernel-2.4.18-k7_1.0.3123-1+_.Custom_i386.deb
( or similar filename )

METHOD #2: Using your own kernel source headers
************************************************** *********************

To build the nvidia-kernel deb you need to first make sure you have
kernel-package installed, then do the following:

As root
1. cd /usr/src
tar xzvf nvidia-kernel-src.tar.gz -C <YOUR BUILD LOCATION>
(It will install in <YOU BUILD LOCATION>/modules)
- or -
tar xzvf nvidia-kernel-src.tar.gz (if building in /usr/src)

2. If you are NOT using the default modules location /usr/src/modules
then you must set an environment variable that points to your modules


This is needed by make-kpkg which is used later. If
<YOUR BUILD LOCATION> is /usr/src there is no need to set this.

3. Build the modules under MODULE_LOC i.e. <YOU BUILD LOCATION>/modules

cd linux (or your kernel source directory)
make-kpkg modules_image

4. Install the nvidia-kernel package:

cd <YOUR BUILD LOCATION> (e.g. /usr/src)
dpkg -i nvidia-kernel-KVER*.deb

Notes for method #2:
- If you are building a kernel and the nvidia module at the same time AND
are running a kernel built with a different version the NVIDIA kernel module
build will fail on a compiler check UNLESS the environment variable
IGNORE_CC_MISMATCH is set. The check is to prevent users from compiling the
module with a different compiler than that which compiled the kernel. But if
you are building a kernel you plan on running set the variable.

- It is advised not to clean the kernel source tree between
"make-kpkg kernel_image" and "make-kpkg modules_image".

- The Riva framebuffer is known to conflict with the nvidia X driver. If you
are using X it would be wise not to compile it in. The vesa framebuffer is
known to work slow but fine.


Also you must add any users who wish to use OpenGL applications to the group
video. You can do this with:

adduser username video

Also note for AGP issues and further information please see the NVIDIA
README file (README.gz) in the nvidia-glx package that is built from

An old NVdriver might be already loaded (run 'lsmod' to check) so
do 'rmmod NVdriver' to remove the module from memory.

For any news on this package check and
Scorched is offline   Reply With Quote