LinuxSir.cn,穿越时空的Linuxsir!

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

请教如何增量编辑内核?

[复制链接]
发表于 2006-7-11 12:53:25 | 显示全部楼层 |阅读模式
为了增加内核模块,而不从头编译内核,该如何操作?
而且是直接在lfs下操作,还是到chroot下?似乎应该一样吧。。。
发表于 2006-7-11 13:07:55 | 显示全部楼层
你在跟你是否在 LFS 下操作无关,基础版有前人写过方法,你找一找看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-11 22:05:28 | 显示全部楼层
谢谢
但看了还是有一个问题不明白,按说和是否lfs无关,但是不在lfs下,make menuconfig出现的好像是默认的选项,但是进入lfs,看到的却是前一次的选项
回复 支持 反对

使用道具 举报

发表于 2006-7-11 22:13:43 | 显示全部楼层
你只要不make mrproper的话,重新选择内核参数就行。(当然不绝对)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-12 21:35:22 | 显示全部楼层
又有疑问了:
svn中提到,可以通过cp .config 来配置新内核,甚至是cp host 的
那么,直接cp host的kernel不是更简单?
换言之,各个ditro的kernel到底有些什么区别?
回复 支持 反对

使用道具 举报

发表于 2006-7-12 21:47:40 | 显示全部楼层
Yes, basically, you can.

However, the kernel source codes being used by various distros may not be the vanilla kernel, most of the time, distro vendor may apply certain patches to the kernel source codes to change its behaviour, say patching the kernel with additional squashfs, reiserfs4 supports etc.  These changes may contribute to the differentiations.
回复 支持 反对

使用道具 举报

发表于 2006-7-13 00:04:36 | 显示全部楼层
还有技术上的问题,由于内核+模块是需要同相同GCC编译出来的才可以使用,所以如果你用其他发行版的内核的话,那么你的GCC就要和对方一样版本等。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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