nvidia in 2.6
see thishttp://deltaanime.ath.cx/~blight/nvidia_kernel_with_2.6.html
i will test when get time and report my results here. 连接不上。 网站可能用给大陆阻挡的DNS服务器,如DYNDNS.ORG. NVIDIA_kernel with Linux-2.6
In order to compile the NVIDIA_kernel OS interface for Linux-2.6
you need to get the patch for Linux-2.5 (you can find it at www.minion.de).
And of course you need the driver itself! Get it at www.nvidia.com
Once you have downloaded NVIDIA_kernel-1.0-XXXX.tar.gz and
NVIDIA_kernel-1.0-XXXX-X.X.diff unpack the source:
blight@tux downloads $ tar -zxvf NVIDIA_kernel-1.0-XXXX.tar.gz
NVIDIA_kernel-1.0-XXXX/
NVIDIA_kernel-1.0-XXXX/nv.c
NVIDIA_kernel-1.0-XXXX/os-agp.c
NVIDIA_kernel-1.0-XXXX/os-interface.c
NVIDIA_kernel-1.0-XXXX/os-registry.c
NVIDIA_kernel-1.0-XXXX/os-agp.h
NVIDIA_kernel-1.0-XXXX/os-interface.h
NVIDIA_kernel-1.0-XXXX/nv-linux.h
NVIDIA_kernel-1.0-XXXX/nv-misc.h
NVIDIA_kernel-1.0-XXXX/nv.h
NVIDIA_kernel-1.0-XXXX/rmretval.h
NVIDIA_kernel-1.0-XXXX/nvtypes.h
NVIDIA_kernel-1.0-XXXX/README
NVIDIA_kernel-1.0-XXXX/conftest.sh
NVIDIA_kernel-1.0-XXXX/makedevices.sh
NVIDIA_kernel-1.0-XXXX/Makefile
NVIDIA_kernel-1.0-XXXX/nv-kernel.o
Then patch the driver for Linux-2.5:
blight@tux downloads $ cd NVIDIA_kernel-1.0-XXXX
blight@tux NVIDIA_kernel-1.0-XXXX $ patch Makefile ../NVIDIA_kernel-1.0-XXXX-X.X.diff
patching file Makefile
patching file Makefile.kbuild
patching file Makefile.nvidia
patching file conftest.sh
patching file nv-linux.h
patching file nv.c
patching file os-agp.c
patching file os-interface.c
patching file os-registry.c
And finally make it work with Linux-2.6:
You have to edit the following part of nv-linux.h
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
# error This driver does not support 2.2.x kernels!
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
# error This driver does not support 2.3.x kernels!
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
# define KERNEL_2_4
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
# define KERNEL_2_5
#else
# error This driver does not support development kernels!
#endif
And add the following before #else:
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
# define KERNEL_2_5
Now compile the driver (you need root privileges or the
Makefile will refuse compiling):
blight@tux NVIDIA_kernel-1.0-XXXX $ ln -s Makefile.kbuild Makefile
# If Makefile.kbuild doesn't work try Makefile.nvidia
blight@tux NVIDIA_kernel-1.0-XXXX $ su
Password:
root@tux NVIDIA_kernel-1.0-XXXX # make KERNDIR=/usr/src/linux-2.6.0-test1
# You do not need to specify the KERNDIR if you are already running the target kernel!
...
And that's it! Now wasn't that easy? ;-)
-- blight (gregora ATnospam web.de) 我照做了,但是没有办法编译成功 now they are still discussing on lkml. after they get a solution, i will repost here. 要用make -f Makefile.kbuild.不过装上驱动之后GNOME可以用,KDE却不行了,总是提示QFont... internal error nvidia-kernel-1.0.4363-r3.ebuild in gentoo provide the support for 2.6:-D 问个菜鸟问题,现在我从nVidia网站上下的类似NVIDIA-Linux-x86-1.0-4496-pkg2.run的文件安装后,是作为模块在使用吗? yes 上面的方法是不是可以把驱动打到内核里编译?不过我下载的是.run文件怎么打补丁? .run的解压方法:
./NVIDIA-linux-x86-1.0-4496-pkg2.run --extract-only
cd NVIDIA-linux-x86-1.0-4496-pkg2/usr/src/nv
里面的内容与斑竹给出的差不多,再按照斑竹的方法打补丁编译即可. patch后是不是编译内核的时候可以看到nVidia选项? 不是,只是让你的NV驱程能在2.6下顺利编译并安装. 不明白,难道不打补丁就不能编译?
页:
[1]
2