Applying the Patch
As the patches we have downloaded are compressed, the first thing to do is
uncompress them with the bzip2 command:
$ bzip2 -dv patch-2.6.17.9-10.bz2
patch-2.6.17.9-10.bz2: done
$ bzip2 -dv patch-2.6.17.10-11.bz2
patch-2.6.17.10-11.bz2: done
$ ls -F
good_config linux-2.6.17.9/ patch-2.6.17.10-11
patch-2.6.17.9-10
Now we need to apply the patch files to the kernel directory. Go into the
directory:
$ cd linux-2.6.17.9
Now run the patch program to apply the first patch moving the source tree from
the 2.6.17.9 to the 2.6.17.10 release:
$ patch -p1 < ../patch-2.6.17.9-10
* If you need to upgrade more than two versions, it is recommended as a way to save steps, to go
backward and then upgrade forward. In this case, we could go backward from 2.6.17.9 to 2.6.17
and then forward from 2.6.17 to 2.6.17.11.
† In this example, we use the very good lftp FTP program to download the patch files. Any FTP pro-
gram or a web browser can be used to download the same files. The important thing here is to
As the patches we have downloaded are compressed, the first thing to do is
uncompress them with the bzip2 command:
$ bzip2 -dv patch-2.6.17.9-10.bz2
patch-2.6.17.9-10.bz2: done
$ bzip2 -dv patch-2.6.17.10-11.bz2
patch-2.6.17.10-11.bz2: done
$ ls -F
good_config linux-2.6.17.9/ patch-2.6.17.10-11
patch-2.6.17.9-10
Now we need to apply the patch files to the kernel directory. Go into the
directory:
$ cd linux-2.6.17.9
Now run the patch program to apply the first patch moving the source tree from
the 2.6.17.9 to the 2.6.17.10 release:
$ patch -p1 < ../patch-2.6.17.9-10
* If you need to upgrade more than two versions, it is recommended as a way to save steps, to go
backward and then upgrade forward. In this case, we could go backward from 2.6.17.9 to 2.6.17
and then forward from 2.6.17 to 2.6.17.11.
† In this example, we use the very good lftp FTP program to download the patch files. Any FTP pro-
gram or a web browser can be used to download the same files. The important thing here is to
show where the files are located.
4106

被折叠的 条评论
为什么被折叠?



