Kernel Patch and patch installation

Source: Internet
Author: User
Kernel Patch and patch installation-Linux general technology-Linux programming and kernel information. The following is a detailed description. The kernel patch is not required. It depends on what kind of linux kernel you choose, such as downloading the standard linux kernel and compiling the linux system to run on an x86 PC, there is no need for patches supported between boards because the standard Linux kernel itself is tested on the x86 platform. If the Embedix kernel is used, the Development Board uses the PPC system. The kernel may already support PPC and no patches need to be installed. However, embedded systems often work on different target boards, such as arm. This requires Linux kernel extension to support the target system.

It is not enough to download a standard linux kernel, for example, an arm board. You must also download patches for the corresponding version from the relevant site of arm linux. The patch can be correctly configured only after the standard kernel is installed, support the target system. For example, linux-2.4.18.tar.bz2 kernel, patching patch-2.4.18-rmk7.bz2is the same as the integrated source code package linux-2.4.18-rmk7.tar.bz2. It is an armlinux system kernel. If you need to extend the m68k chip support, you need m68k patches.

For how to install patches, refer to man patch. I have summarized the following common methods:

1. The patch application method is to enter the kernel directory # patch-p1 <patch file location. Note that <前后都有一个空格,如:

# Bunzip2 patch-2.4.18-rmk7.bz2unzip patch-2.4.18-rmk7.bz2 to a patch-2.4.18-rmk7 (overwrite the original compressed file)

Move the patch-2.4.18-rmk7 to the linux kernel extract directory.
# Music patch-2.4.18-rmk7 linux/

Go to the linux directory
# Patch-p1 <patch-2.4.18-rmk7

Get

......
Patching file net/irda/iriap. c
Patching file net/irda/irlan/irlan_common.c
Patching file net/irda/irlap_event.c
Patching file net/irda/irlap_frame.c
Patching file net/irda/irttp. c
Patching file net/sched/Config. in

Patch applied successfully.

2. Move the unzipped patch (Without decompression) to the unzipped kernel directory and execute # bzip2-dc patch-2.4.18-rmk5.bz2 | patch-p1
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.