QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 995|回复: 6

关于现行内核设置的问题

[复制链接]
发表于 2003-4-10 11:12:47 | 显示全部楼层 |阅读模式
编译内核,想知道正在用的内核的选项设置,以便只改动需要的设置而保留其他。
/usr/src/linux-xxx/ 下的Makefile有一个make oldconfig 的参数,据说就是在升级内核版本时保留所有现行内核设置。按说这样生成 .config 文件后,里面的设置就应该是现行内核的了。但是总觉得不对劲。
我用的是2.4.7-10。 在linux-2.4.7-10/ 下运行 make oldconfig,生成 .config 后用 make menuconfig 打开来看,是一种设置。
然后下载了 2.4.18,在linux-2.4.18/ 下运行make oldconfig, 生成的.config 文件用make menuconfig 打开来却是另一种设置。
到底怎样才能知道自己内核的设置呢?还请大虾指点迷津。
发表于 2003-4-10 11:57:34 | 显示全部楼层
/usr/src/linux-xxx/config里相应你所用CPU体系的config
回复

使用道具 举报

 楼主| 发表于 2003-4-10 12:08:54 | 显示全部楼层
/usr/src/linux-xxx/ 下只有configs/  和  .config
回复

使用道具 举报

发表于 2003-4-10 12:19:41 | 显示全部楼层
/usr/src/linux-xxx/configs里,呵呵,搞错了
回复

使用道具 举报

 楼主| 发表于 2003-4-10 12:41:51 | 显示全部楼层
呵呵,多谢指点。
我看了一下,configs/ 里面的设置把能选的基本上都选上了。
装机的时候kernel就是这样的吗?也太浪费了吧。
回复

使用道具 举报

发表于 2003-4-10 19:25:18 | 显示全部楼层
是的,确实是这样,几乎能选的都选上了,一般是M
最好自己按需配置编译
回复

使用道具 举报

发表于 2003-4-10 23:23:59 | 显示全部楼层
if most of them are choosed as module, then it will waste u some compiling time and some storage space. but when u use it, the kernel will only load the needed kernel, so willnot have imapct on speed.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 18:52 , Processed in 0.084351 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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