LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1453|回复: 14

Easier kernel configuration with 2.6.32

[复制链接]
发表于 2009-12-14 13:25:42 | 显示全部楼层 |阅读模式
http://kernelnewbies.org/Linux_2_6_32
1.8. Easy local  kernel configuration

  Most people uses the kernel  shipped by distros - and that's good. But some people like to compile  their own kernels from kernel.org, or maybe they like following the  Linux development and want to try it. Configuring your own kernel,  however, has become a very difficult and tedious task - there're too  many options, and some times userspace software will stop working if you  don't enable some key option. You can use a standard distro .config  file, but it takes too much time to compile all the options it enables.
To make the process of configuration easier, a  new build target has been added: make localmodconfig. It runs "lsmod" to  find all the modules loaded on the current running system. It will read  all the Makefiles to map which CONFIG enables a module. It will read  the Kconfig files to find the dependencies and selects that may be  needed to support a CONFIG. Finally, it reads the .config file and  removes any module "=m" that is not needed to enable the currently  loaded modules. With this tool, you can strip a distro .config of all  the unuseful drivers that are not needed in our machine, and it will  take much less time to build the kernel. There's an additional "make  localyesconfig" target, in case you don't want to use modules and/or  initrds.

见 lq 上的讨论:
http://www.linuxquestions.org/qu ... with-2.6.32-774072/

测试了下, 编译后的内核确实有些问题, 最好 menuconfig 再检查一遍. 不管怎样, 这一小步都值得赞啊.

32 内核看上去有很多创举, 虽然有些并不完善. 除容易配置 config 外, 譬如 KMS 及后续的 nv 支持, fs 性能的大幅提升, acpi 4 的支持等.
发表于 2009-12-14 13:35:57 | 显示全部楼层
我也是感觉 32 貌似比以前快了……
回复 支持 反对

使用道具 举报

发表于 2009-12-14 15:49:13 | 显示全部楼层
哥们跟进真快啊~
回复 支持 反对

使用道具 举报

发表于 2009-12-14 15:52:32 | 显示全部楼层
Post by grissiom;2055777
我也是感觉 32 貌似比以前快了……


对了,grissiom兄,你用kernel-git的,那需不需要考虑Linux headers的更新?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-14 16:34:54 | 显示全部楼层
localmodconfig 目前的弊端显而易见的, 就是依赖于当前系统. 想改还得一条条裸眼看 menu. 呵呵
桌面上的感觉怕是有待 X.org 及 ati 开源更进了.
回复 支持 反对

使用道具 举报

发表于 2009-12-14 17:07:09 | 显示全部楼层
是呀,弊端很明显,如果来个新设备就驱动不了了。
回复 支持 反对

使用道具 举报

发表于 2009-12-14 20:27:37 | 显示全部楼层
刚新装好系统就编译新的。感觉良好。
回复 支持 反对

使用道具 举报

发表于 2009-12-14 22:27:41 | 显示全部楼层
是不是要更新headers,我执行
make localmodconfig
时会出错。
回复 支持 反对

使用道具 举报

发表于 2009-12-15 08:46:12 | 显示全部楼层
不用的,就用原来的就行,重装一遍?
回复 支持 反对

使用道具 举报

发表于 2009-12-16 18:22:18 | 显示全部楼层
Post by slackcode;2055820
对了,grissiom兄,你用kernel-git的,那需不需要考虑Linux headers的更新?

最近不用 git 版了~整起来太费神,而且有点强迫症的感觉…… 于是改用 tarball 了~ 呵呵~

嗯…… 好像以前在哪里听过 Linux headers 要和 glic 对应,所以就没管,不过我也不懂…… 没出过状况倒是……

对了,用 ext4 的赶快更新 2.6.32.1 啦~ 呵呵~
回复 支持 反对

使用道具 举报

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

本版积分规则

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