Nvidia 2D/3D on 2.6.x (was Re: getting Nvidia 2D/3D to work (M.Hockings))

leon j. breedt fedora at lists.bitserf.org
Mon Nov 10 11:11:22 UTC 2003


On Sun, 2003-11-09 at 09:21, David Utidjian wrote:
my comments for 2.6.x kernels:

> # cd /path/to/where/you/put/it
> # sh NVIDIA-Linux-x86-1.0-4496-pkg2.run
instead of this, run:

# sh NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only
# cd NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv


now download the 2.6.x kernel patches for NVIDIA from www.minion.de:


# wget http://www.minion.de/files/NVIDIA_kernel-1.0-4496-2.6.diff
# patch -p1 < NVIDIA_kernel-1.0-4496-2.6.diff
# ln -s Makefile.kbuild Makefile
# make SYSINCLUDE=/path/to/2.6/include CC=gcc32 module
# cp nvidia.ko /lib/modules/<kernelversion>/kernel/drivers/video


since NVIDIA's installer doesn't work for 2.6.x kernels, you need to do
things a bit differently for XFree86 GLX and driver. You can still use
the NVIDIA-shipped Makefile to install the files in the old way:


# cd ../../..
# make install


the rest of the stuff is pretty much the same as in the previous post.

i've attached a spec file i use to build an nvidia-kernel RPM package
for 2.6/2.4 kernels, it gets rid of a lot of makework for the kernel
portion of things, do this and you could skip the commands above and
just build & install the RPM:

example:

# env KVER=2.6.0-test9 rpmbuild --with kernel26 -ba nvidia-kernel.spec
# env KVER=2.4.22-1.2115.nptl rpmbuild -ba nvidia-kernel.spec

would build nvidia-kernel RPM packages named
nvidia-kernel-2.4.22-1.2115.nptl and nvidia-kernel-2.6.0-test9,
respectively.

you'll have to place the .run and .diff file in /usr/src/redhat/SOURCES
before this will work though.

the spec file is pure evil, but it works for me :) 

leon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nvidia-kernel.spec
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20031111/a5ba5eae/attachment-0001.ksh>


More information about the fedora-list mailing list