阅读:4568回复:3
这么冷清,我来发个内核编译贴
编译环境:联想Y430笔记本, Windows 7 wubi安装的Ubuntu 10.04
参考来源: http://forum.ubuntu.org.cn/viewtopic.php?f=97&t=110461 https://fanqiangti.appspot.com/berelent.blogspot.com/2009/10/howto-compile-bfs-kernel.html http://hi.baidu.com/%E5%B0%8F%E5%B7%B7%E5%90%A7/blog/item/737cc036993bf33d0b55a9f5.html http://forum.ubuntu.org.cn/viewtopic.php?f=97&t=226956 http://ubuntuforums.org/showthread.php?t=1014190 http://www.ubuntugeek.com/howto-install-nvidia-drivers-manually-on-ubuntu-10-04-lucid-lynx.html https://fanqiangti.appspot.com/berelent.blogspot.com/2009/10/howto-compile-bfs-kernel.html 开始编译内核 这是步骤: 1、下载内核源码 2、下载传说中的BFS补丁,是这个2.6.32-sched-bfs-316.patch 3、然后稍稍装几个工具: sudo apt-get install build-essential kernel-package libncurses5-dev fakeroot 4、解压源码,打上BFS补丁 tar -jxf linux-2.6.33.3.tar.bz cd linux-2.6.31 patch -p1 < ../2.6.31-sched-bfs-316.patch 5、开始量身定做 make mrproper make localmodconfig 6、差点忘了,再装点工具 sudo aptitude install libqt3-headers libqt3-mt-dev libqt3-compat-headers libqt3-mt 7、好戏登场,看着教程慢慢选, 参考一、鸟哥的私房菜; 参考二、金步国 打BFS补丁,这几个是必须注意的 *Processor type and features -> Tickless System (Dynamic Ticks) 留空 * Processor type and features -> Preemption Model (Preemptible Kernel(Low-Latency Desktop)) -> 选 Preemptible Kernel (Low-Latency Desktop) * Processor type and features -> Timer frequency -> 选1000Hz make xconfig 8、清理,编译,CONCURRENCY_LEVEL=2这里是因为我是双核,起到加速编译的作用,jed0.1换成你自己的, sudo make-kpkg clean CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd --append-to-version=jed0.1 kernel-image kernel-headers 9、赶紧安装 cd ../ sudo dpkg -i *.deb 10、激动人心的时刻,更新一下启动信息 sudo mkinitramfs -o /boot/initrd.img-2.6.33.3-jed0.1 2.6.33.3-jed0.1 1sudo update-grub 好内,速度重启 sudo reboot |
|
|
1楼#
发布于:2010-05-03 01:44
接下来是N卡驱动,貌似不大好弄
先下载 加几个黑名单 gksudo gedit /etc/modprobe.d/blacklist.conf 把下面这些贴到blacklist.conf的最后 blacklist vga16fb blacklist nouveau blacklist rivafb blacklist nvidiafb blacklist rivatv 删除旧驱动,并重启 sudo apt-get --purge remove nvidia-* 有错误提示时,选跳出去终端 然后登陆,CD到存放新下载驱动的目录,比如 cd /home/jed/Downloads/ 然后安装,记得利用好TAB键,不用记那么长名字 sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run 然后启动GDM sudo service gdm start |
|
|
2楼#
发布于:2010-05-03 01:44
为什么要用BFS补丁?
内核编译的基础,make menuconfig没有详细说明 |
|
3楼#
发布于:2010-05-03 01:44
有点难度··
|
|