What are the next steps to prepare the build of a version 4.6.4 Linux kernel?

After the downloading patch-4.6.4. xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel? (Choose two.)
A. Uncompress the file and move the resulting directory to /usr/src/linux
B. Apply the patch file to the kernel source directory containing kernel version 4.6.0
C. Apply the patch file to the kernel source directory containing kernel version 4.6.3
D. Uncompress the file using xz to get the uncompressed patch file
E. Use patch to apply the uncompressed patch file to the source directory of any previous kernel version

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “What are the next steps to prepare the build of a version 4.6.4 Linux kernel?

  1. BD

    To Patch 4.6.4, you need 4.6.0. Here’s an alternative example with other version numbers from kernel.org:

    (…) In order to apply the 4.7.3 patch to your existing 4.7.2 kernel source you have to first back out the 4.7.2 patch (so you are left with a base 4.7 kernel source) and then apply the new 4.7.3 patch.

    Here’s a small example:
    $ cd ~/linux-4.7.2 # change to the kernel source dir
    $ patch -p1 -R < ../patch-4.7.2 # revert the 4.7.2 patch
    $ patch -p1 < ../patch-4.7.3 # apply the new 4.7.3 patch
    $ cd ..
    $ mv linux-4.7.2 linux-4.7.3 # rename the kernel source dir

    Source: https://www.kernel.org/doc/html/v4.11/process/applying-patches.html
    (Scroll down to "The 4.x.y kernels")

  2. According to kernel.org, every patch is a diff against the previous version, so in this example, correct answers should be only
    D (file has to be uncompressed)
    and C, since the new version is 4.6.4 and the previous was 4.6.3.

    1
    4
  3. “patch-4.6.4.xz” is an XZ archive. You need to unzip it first, or use the “xzcat” command to read the content. The name of the patch file is: “patch-4.6.4” is a diff created for “4.6.0”. “patch-4.6.3-4” is a diff created for “4.6.3”. “patch-4.6” is a diff created for “4.5.0”.

    Option A, to compile the Linux kernel, you need to do it in the “/usr/src/linux” directory, but the patch file cannot be used to overwrite the source code directly. It needs to be used with the “patch” command.

    Option B, correct, after decompression, then apply via the “patch” command. If you don’t decompress it beforehand, you can also use the “xzcat” command to read the file.

    Option C, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.

    Option D, correct.

    Option E, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.

    2
    1
  4. DB (E is not correct)

    “patch-4.6.4” is a diff created for “4.6.0”; if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.