|
英文原文:http://www.knoppix.net/forum/viewtopic.php?t=10314
原作者:3p0cHx
感谢 Hiweed GNU/Linuxhttp://www.hiweed.com/ hiweed
总结一下主要解决了几个问题:(以内核为2.6.5为例)
1.内核源码的问题
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2
cp linux-2.6.5.tar.bz2 /usr/src
tar jxvf linux-2.6.5.tar.bz2
rm -f linux
ln -s linux-2.6.5 linux
cp /boot/config-2.6.5 linux/.config
cd linux/include
ln -s asm-i386 asm
cd ..
make oldconfig
patch -p1 <../knoppix-kernel26.patch
make include/linux/version.h (bug in cleaning process of linux-2.6.5)
2.gcc版本的问题
cd /usr/bin
rm -f gcc
ln -s gcc-2.95 gcc
3.驱动程序问题
# export CC=/usr/bin/gcc-2.95
# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run(nvidia官方可下载)
修改/etc/X11/XF86Config-4 文件:
Drivers Section段
替换"nv" with "nvidia"
Modules Section段
注释掉
# "dri"
# "GLCore"
添加
Load "glx"
原文部分引用
---------------------------------------------------------------------
Only after finding the the instructions below, was I able to get the drivers running okay (with an additional twist at the end -see below). The thread can be found here: http://www.knoppix.net/forum/viewtopic.php?t=10329 but I'll go ahead and include them anyway in case someone else finds their way to my thread. These instructions took a while to complete, but they work. Thanks kelmo!! _________________________________________________________ wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2
cp linux-2.6.5.tar.bz2 /usr/src
tar jxvf linux-2.6.5.tar.bz2
rm -f linux
ln -s linux-2.6.5 linux
cp /boot/config-2.6.5 linux/.config
cd linux/include
ln -s asm-i386 asm
cd ..
make oldconfig
patch -p1 <../knoppix-kernel26.patch
make include/linux/version.h (bug in cleaning process of linux-2.6.5)
cd /usr/bin
rm -f gcc
ln -s gcc-2.95 gcc
cd /usr/src
apt-get update
apt-get install nvidia-kernel-common
nvidia-kernel-source
tar zxvf nvidia-kernel-source
cd modules/nvidia-kernel
debian/rules KSRC=/usr/src/linux-2.6.5
KVERS=2.6.5 kdist_image
cd ..
dpkg -i nvidia-kernel-2.6.5_1.0.5336-9_i386.deb
apt-get install nvidia-glx
cd /usr/bin
rm -f gcc
ln -s gcc-3.3 gcc
Thats the building and installation procedure done, now to let xserver know what driver to use. Edit /etc/X11/XF86Config-4 with your fav text editor and make the following mods:-
Drivers Section
Replace "nv" with "nvidia"
Modules Section
Remove or comment out lines including "dri" and "GLCore" Ensure there is a line with Load "glx" __________________________________________________________
After running this install, I tried to run
# kdm
but the server failed to start. The logs weren't specific, but it said "nvidia" not found, failed to start server.
I then went back to the console and ran
# export CC=/usr/bin/gcc-2.95
# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
Drivers installed sucessfully
Edited /etc/X11/XF86Config-4 - made necessary changes
The installer finished sucessfully and I finally now have the nvidia drivers running.Yay!! Still the Postal2 demo won't install, I get a greyed-out "Begin Install" button, but oh well I can try to find a different OpenGL game to try.
I got sick of the nvidia logo so I added this line to the device section of XF86config-4:-
Option "NoLogo" "true" |
|