QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2411|回复: 2

编译2.4.22内核成功

  [复制链接]
发表于 2003-9-15 17:16:22 | 显示全部楼层 |阅读模式
在ML上编译2.4.22:
1、进入/usr/src,运行rm -f linux-2.4;将2.4.22源码解压至此目录,重建链接:ln -s linux-2.4.22  linux-2.4;
2、cd linux-2.4.20-1.1,直接运行:make xconfig,不是要编译,而是将现有的编译好的内核保存为文件,所以,选择菜单的最后一项:store configuration to file,就可以保存在/usr/src下,比如文件名:2.4.20config;
3、cd linux-2.4,make mrproper ,  make xconfig 后,先选择菜单上的:load configuration from file,导入刚才保存的设置文件2.4.20config,记得输入具体路径。开始正式编译,我只不过编译了一下ACPI支持,其它一概未动,编译后别忘了保存;接下来就是常规动作:make dep , make clean, make bzImage,make modules,make modules_install,make install, 最后:reboot.
发表于 2003-9-16 04:32:23 | 显示全部楼层
thx, so u use the default configuration from ML .
回复

使用道具 举报

发表于 2003-9-17 13:56:52 | 显示全部楼层
正确导出/导入config的方法:把原来kernel tree下的.config文件拷贝到新kernel tree下,然后在新kernel tree目录里执行make oldconfig,会需要回答一些关于新增功能的问题,一般答N就可以了。
这样做的好处是,所有原来kernel里没有的选项和更动过的选项都能正确得到处理,否则在某些情况下写kerler configuration的时候会出现一些warning.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:27 , Processed in 0.049079 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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