ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Debian

ÔÚDebianµÄlinux-2.6.21ÄÚºËÏÂ×°nvidiaÇý¶¯

·¢²¼Ê±¼ä:2007-08-08 00:29:47À´Ô´:ºìÁª×÷Õß:eometry
Ê×ÏÈ£¬ÐÞ¸Älinux-kbuild-2.6.21£º

# apt-get build-dep linux-kbuild-2.6.21
$ mkdir linux-kbuild-2.6.21-build
$ cd linux-kbuild-2.6.21-build
$ apt-get source linux-kbuild-2.6.21

Õâʱ£¬linux-kbuild-2.6.21µÄÏà¹ØÎļþ»á³öÏÖÔÚlinux-kbuild-2.6.21-buildÕâ¸öĿ¼£¬²¢ÇÒÓÐÒ»¸ö½âѹËõÖ®ºóµÄlinux-kbuild-2.6-2.6.21Ŀ¼£¬ÐÞ¸Älinux-kbuild-2.6-2.6.21/scripts/mod/modpost.c£¬ÔÚ´óÔ¼1177ÐÐÇ°ºó£¬ÕÒµ½fatalº¯Êý£¬×¢Ê͵ôÕâÁ½ÐÐfatalº¯Êý£¬±£´æÎļþ¡£

Éú³ÉÐ޸ĹýµÄlinux-kbuild£¬²¢ÇÒ°²×°

$ dpkg-buildpackage -uc -us -rfakeroot
# apt-get install linux-kbuild-2.6.21

µÚ¶þ£¬¾ÍÊÇ°²×°ÏàÓ¦µÄ°ü£º

# apt-get install nvidia-kernel-common nvidia-kernel-legacy-71xx-source linux-headers-2.6.21-1-k7

°²×°ÕâÁ½¸ö°ü£¬Ó¦¸Ã»¹»á×Ô¶¯°²×°ºÍdebhelperÏà¹ØµÄ°ü£¬Èç¹ûÔÚÖ®ºó±àÒë·¢ÏÖ»¹È±ÉÙʲô°ü£¬×ÔÐв¹Æë¾ÍÊÇÁË¡£nvidia-kernel-legacy-71xx-source°²×°Ö®ºó£¬»áÔÚ/usr/srcÀï³öÏÖÒ»¸önvidia-kernel-legacy-71xx-source.tar.gz£¬½âѹËõµ½Ëæ±ãʲôµØ·½¡£½øÈë½â³öÀ´µÄmodules/nvidia-kernel-legacy-71xx/nvĿ¼£¬ÐÞ¸ÄMakefile.kbuild£¬ÔÚ

EXTRA_CFLAGS += -Wall -Wimplicit -Wreturn-type¡­ ºó±ß¼ÓÈë

PARAVIRT_OPS := $(shell grep ¡°D paravirt_ops¡± /boot/System.map-$(shell uname -r) | colrm 9)
EXTRA_LDFLAGS := -defsym paravirt_ops=0x$(PARAVIRT_OPS)

Ö®ºó£¬°²×°README.DebianÖеķ½·¨Éú³Édeb°ü¡£

½øÈëmodules/nvidia-kernel-legacy-71xx

# KSRC=/usr/src/linux-headers-2.6.21-1-k7 KVERS=2.6.21-1-k7 debian/rules binary_modules
# dpkg -i nvidia-kernel-legacy-71xx-2.6.21-1-k7_i386.deb

×îºó£¬°²×°nvidia-glx
# apt-get install nvidia-glx-legacy-71xx

ÐÞ¸Ä/etc/X11/xorg.conf£¬»òdpkg-reconfigure xserver-xorg£¬¸ÄÓÃnvidiaÇý¶¯¼È¿É¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ