|
发表于 2003-12-23 22:27:58
|
显示全部楼层
http://www.minion.de/nvidia.html__________________________________________________________________________
INSTALLATION OF THE 1.0-5328 NVIDIA DRIVER ON LINUX 2.6.X KERNELS
__________________________________________________________________________
If you already installed the NVIDIA 1.0-5328 driver using the official
installer on a supported Linux 2.4 kernel, have only recently decided to
experiment with Linux 2.6 and wish to use the NVIDIA binary driver, you
can achieve this by following these instructions:
FAQ: The 1.0-4496 driver release introduced the -pkg# suffix to the .run
file to distinguish between packages with the same driver version, but
with different sets of precompiled kernel interfaces. The -pkg0 file has
no precompiled kernel interface files and was thus chosen here.
You can use other revisions, but need to adapt the package number below.
1) download:
NVIDIA-Linux-x86-1.0-5328-pkg0.run (nvidia)
NVIDIA_kernel-1.0-5328-2.6.diff.bz2 (minion.de)
2) install the kernel module (as root):
# sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --extract-only
# cd NVIDIA-Linux-x86-1.0-5328-pkg0
# cd usr/src/nv
# bzcat ../../../../NVIDIA_kernel-1.0-5328-2.6.diff.bz2 | patch -p1
# ln -s Makefile.kbuild Makefile
# make install
The instructions assume that you are running the target kernel. If that
is not the case, you can still build the kernel module for that kernel,
but since the KBUILD Makefile only respects the KERNDIR directive when
it builds the module, you'll have to install the module manually; as an
example (instead of 'make install'):
# make KERNDIR=/usr/src/linux-2.6.0-test9 module
# mkdir /lib/modules/linux-2.6.0-test9/kernel/drivers/video
# cp nvidia.ko /lib/modules/linux-2.6.0-test9/kernel/drivers/video
# depmod -a 2.6.0-test9
If you wish to install the NVIDIA 1.0-5328 driver on a virgin Linux 2.6
system that doesn't have the user space driver components installed, you
can use a Linux 2.6 compatible version of the official installer:
FAQ: The 1.0-4496 driver release introduced the -pkg# suffix to the .run
file to distinguish between packages with the same driver version, but
with different sets of precompiled kernel interfaces. The -pkg0 file has
no precompiled kernel interface files and was thus chosen here.
You can use other revisions, but need to adapt the package number below.
1) download:
NVIDIA-Linux-x86-1.0-5328-pkg0.run (nvidia)
NVIDIA-Linux-x86-1.0-5328-pkg#.tar.bz2 (minion.de)
NVIDIA_kernel-1.0-5328-2.6.diff.bz2 (minion.de)
2) install with a modified installer:
*) # sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --extract-only
# cd NVIDIA-Linux-x86-1.0-5328-pkg0
# tar jxf ../NVIDIA-Linux-x86-1.0-5328-pkg#.tar.bz2
# cd usr/src/nv
# rm -f precompiled/*
# bzcat ../../../../NVIDIA_kernel-1.0-5328-2.6.diff.bz2 | patch -p1
# ln -s Makefile.kbuild Makefile
# cd ../../../..
# NVIDIA-Linux-x86-1.0-5328-pkg0/nvidia-installer
You can also build/use a .run file like the one distributed by NVIDIA:
# sh NVIDIA-Linux-x86-1.0-5328-pkg0/usr/bin/makeself.sh \
--target-os Linux --target-arch x86 \
NVIDIA-Linux-x86-1.0-5328-pkg0 \
NVIDIA-Linux-x86-1.0-5328-pkg0.run \
"NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-5328" \
./nvidia-installer
# sh NVIDIA-Linux-x86-1.0-5328-pkg0.run
The replacement NVIDIA installer for Linux 2.6 was compiled for glibc
2.3; you can easily build an installer for a different version:
1) download:
nvidia-installer-1.0.2.tar.gz (nvidia)
nvidia-installer-1.0.2-2.6.diff.bz2 (minion.de)
2) build the installer:
# tar zxf nvidia-installer-1.0.2.tar.gz
# cd nvidia-installer-1.0.2
# bzcat ../nvidia-installer-1.0.2-2.6.diff.bz2 | patch -p1
# make
This will build a binary called nvidia-installer, which needs to be
placed into the top-level directory created by *).
Please note that the --kernel-include-path option was removed in favor
of a new --kernel-source-path option, which expects the path to the
kernel source tree (configured, uncleaned) matching the target kernel.
This is useful in combination with --kernel-install-path.
Using the installer, installing the driver for kernels that aren't run
at the time of the installation is easy:
# uname -r
2.6.0-test8
# sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --kernel-name=2.6.0-test9 |
|