QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2390|回复: 19

nvidia in 2.6

[复制链接]
发表于 2003-7-15 03:58:04 | 显示全部楼层 |阅读模式
see this

http://deltaanime.ath.cx/~blight/nvidia_kernel_with_2.6.html

i will test when get time and report my results here.
发表于 2003-7-15 11:34:18 | 显示全部楼层
连接不上。
回复

使用道具 举报

发表于 2003-7-15 12:17:14 | 显示全部楼层
网站可能用给大陆阻挡的DNS服务器,如DYNDNS.ORG.
回复

使用道具 举报

 楼主| 发表于 2003-7-15 21:17:27 | 显示全部楼层
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)
回复

使用道具 举报

发表于 2003-7-17 10:50:10 | 显示全部楼层
我照做了,但是没有办法编译成功
回复

使用道具 举报

 楼主| 发表于 2003-7-17 10:51:14 | 显示全部楼层
now they are still discussing on lkml. after they get a solution, i will repost here.
回复

使用道具 举报

发表于 2003-7-17 18:31:54 | 显示全部楼层
要用make -f Makefile.kbuild.不过装上驱动之后GNOME可以用,KDE却不行了,总是提示QFont... internal error
回复

使用道具 举报

 楼主| 发表于 2003-7-17 21:07:29 | 显示全部楼层
nvidia-kernel-1.0.4363-r3.ebuild in gentoo provide the support for 2.6  
回复

使用道具 举报

发表于 2003-9-18 11:26:09 | 显示全部楼层
问个菜鸟问题,现在我从nVidia网站上下的类似NVIDIA-Linux-x86-1.0-4496-pkg2.run的文件安装后,是作为模块在使用吗?
回复

使用道具 举报

 楼主| 发表于 2003-9-18 22:39:19 | 显示全部楼层
yes
回复

使用道具 举报

发表于 2003-9-19 09:25:57 | 显示全部楼层
上面的方法是不是可以把驱动打到内核里编译?不过我下载的是.run文件怎么打补丁?
回复

使用道具 举报

发表于 2003-9-19 10:02:27 | 显示全部楼层
.run的解压方法:
./NVIDIA-linux-x86-1.0-4496-pkg2.run --extract-only
cd NVIDIA-linux-x86-1.0-4496-pkg2/usr/src/nv
里面的内容与斑竹给出的差不多,再按照斑竹的方法打补丁编译即可.
回复

使用道具 举报

发表于 2003-9-19 11:43:18 | 显示全部楼层
patch后是不是编译内核的时候可以看到nVidia选项?
回复

使用道具 举报

发表于 2003-9-19 23:36:32 | 显示全部楼层
不是,只是让你的NV驱程能在2.6下顺利编译并安装.
回复

使用道具 举报

发表于 2003-9-20 12:29:30 | 显示全部楼层
不明白,难道不打补丁就不能编译?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-5 03:45 , Processed in 0.036763 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表