+ -
当前位置:首页 → 问答吧 → 请教内核patch对应版本问题

请教内核patch对应版本问题

时间:2009-03-18

来源:互联网

1、现在最新的2.4内核补丁是patch-2.4.37.bz2,我能不能打到2.4.20内核上?

2、请问2.4的内核patch是不是都能打到其低版本的2.4.X上?那2.6呢?

即我不太清楚,一个内核patch,是为哪一个内核版本定制的
请高手们回答一下,谢谢:-)

作者: slackcode   发布时间: 2009-03-18

From "Linux Kernel in a Nutshell"

引用:
• Stable kernel patches apply to the base kernel version. This means that the
2.6.17.10 patch will only apply to the 2.6.17 kernel release. The 2.6.17.10
kernel patch will not apply to the 2.6.17.9 kernel or any other release.

• Base kernel release patches only apply to the previous base kernel version.
This means that the 2.6.18 patch will only apply to the 2.6.17 kernel release.
It will not apply to the last 2.6.17.y kernel release, or any other release.

• Incremental patches upgrade from a specific release to the next release. This
allows developers to not have to downgrade their kernel and then upgrade it,
just to switch from the latest stable release to the next stable release (remem-
ber that the stable release patches are only against the base kernel, not the
previous stable release). Whenever possible, it is recommended that you use
the incremental patches to make your life easier.

作者: helo_aBiNg   发布时间: 2009-03-18

嗯,原来这样子
谢谢:)

作者: slackcode   发布时间: 2009-03-18

也就是lz不能打上这个补丁了。
谢谢,普及了~

作者: vvoody   发布时间: 2009-03-20

如果要是频繁切换版本的话用 git 保存一个本地拷贝比较好~

作者: grissiom   发布时间: 2009-03-20

对,说得也是,跟current的需要这样

作者: slackcode   发布时间: 2009-03-21