萬盛學電腦網

 萬盛學電腦網 >> Linux教程 >> 在內核2.6.0

在內核2.6.0

class="22821"> 由於不是官方版本,希望大家作好備份。以下以2.6.0-test9內核做例子,如果安裝過程出現問題大家來討論:

一、已經安裝2.4內核官方驅動的方法

1);下載:

NVIDIA-Linux-x86-1.0-4620-pkg1.run;(nvidia)
http://public.pny.com/quadro/FX3000g/Linux/NVIDIA-Linux-x86-1.0-4620-pkg1.run
NVIDIA_kernel-1.0-4620-2.6.diff;(minion.de)
http://www.minion.de/files/NVIDIA_kernel-1.0-4620-2.6.diff

2);安裝模塊(用;root):

#;sh;NVIDIA-Linux-x86-1.0-4620-pkg1.run;--extract-only
#;cd;NVIDIA-Linux-x86-1.0-4620-pkg1
#;cd;usr/src/nv
#;patch;-p1;<;../../../../NVIDIA_kernel-1.0-4620-2.6.diff
#;ln;-s;Makefile.kbuild;Makefile
#;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

二、第一次安裝

1);下載:

NVIDIA-Linux-x86-1.0-4620-pkg1.run;(nvidia)
http://public.pny.com/quadro/FX3000g/Linux/NVIDIA-Linux-x86-1.0-4620-pkg1.run
NVIDIA-Linux-x86-1.0-4620-pkg#.tar.gz;(minion.de)
http://www.minion.de/files/NVIDIA-Linux-x86-1.0-4620-pkg%23.tar.gz
NVIDIA_kernel-1.0-4620-2.6.diff;(minion.de)
http://www.minion.de/files/NVIDIA_kernel-1.0-4620-2.6.diff

2);安裝:

*);#;sh;NVIDIA-Linux-x86-1.0-4620-pkg1.run;--extract-only
#;cd;NVIDIA-Linux-x86-1.0-4620-pkg1
#;tar;zxf;../NVIDIA-Linux-x86-1.0-4620-pkg#.tar.gz
#;cd;usr/src/nv
#;patch;-p1;<;../../../../NVIDIA_kernel-1.0-4620-2.6.diff
#;ln;-s;Makefile.kbuild;Makefile
#;cd;../../../..
#;NVIDIA-Linux-x86-1.0-4620-pkg1/nvidia-installer

也可以建立.run;文件同時運行

#;sh;NVIDIA-Linux-x86-1.0-4620-pkg0/usr/bin/makeself.sh;
--target-os;Linux;--target-arch;x86;
NVIDIA-Linux-x86-1.0-4620-pkg1;
NVIDIA-Linux-x86-1.0-4620-pkg1.run;
"NVIDIA;Accelerated;Graphics;Driver;for;Linux-x86;1.0-4620";
./nvidia-installer
#;sh;NVIDIA-Linux-x86-1.0-4620-pkg1.run

三、用腳本安裝

1);下載:

nvidia-installer-1.0.2.tar.gz;(nvidia)
ftp://download.nvidia.com/XFree86/nvidia-installer/

nvidia-installer-1.0.2-2.6.diff;(minion.de)
http://www.minion.de/files/nvidia-installer-1.0.2-2.6.diff

2);安裝:

#;tar;zxf;nvidia-installer-1.0.2.tar.gz
#;cd;nvidia-installer-1.0.2
#;patch;-p1;<;../nvidia-installer-1.0.2
#;make

把生成的文件放進nvidia-installer文件裡

#;uname;-r
2.6.0-test9
#;sh;NVIDIA-Linux-x86-1.0-4620-pkg1.run;--kernel-name=2.6.0-test9

good;luck!
copyright © 萬盛學電腦網 all rights reserved