ACPI: Advanced Configuration and Power Interface
Prev | A. Patching Old Kernels | Next

# A.1. Getting the Source Files

Download a fresh kernel from www.kernel.org. You need to make sure you get a full kernel. Find the "latest stable version of the Linux kernel" and click on `F` for FULL. Wait patiently. A bzipped kernel is about 26M. If you're feeling particularly geeky you could also wget `http://kernel.org/pub/linux/kernel/v2.4/linux-`<version>`.tar.bz2`.

| You may or may not want the latest stable version. For more information read the Section 7.1 section of this document. If you decide to use a version of the kernel that is not published on the front page, use the /pub/linux/kernel directory on the kernel.org site to find the kernel you'd like.

While you're waiting, grab a copy of the patch as well. For the 2.4.20 kernel use the 2.4.20 patch. It's dated 2002.12.12. You'll need to know that number later when we check to make sure the patch worked. If you are using a different kernel version make sure you take note of the date of your patch. Your numbers will differ slightly from the one I use later on.

Once you've got those two files (the kernel and the patch) unpack them and patch the kernel.

## A.1.1. Patch

Now we're going to actually patch the kernel. I take one extra step from the instructions at ACPI4Linux. Instead of gunzipping and patching in the same line, I use two lines. This is purely a matter of preference. When you patch the kernel you want to make sure there are no error messages. (There is no "yay" line, instead look for the absence of errors.)

- cd `/usr/src/linux`

- cp `acpi-20021212-2.4.20.diff.gz` `/usr/src/linux/.` (Your patch filename will be different if you're not using the 2.4.20 kernel.)

- gunzip `acpi-20021212-2.4.20.diff.gz`

- patch `-p`1`` < `acpi-20021212-2.4.20.diff` (this is the actual patching part)

Once you've finished patching your kernel, continue reading at Section 10.

Prev | Home | Next
Patching Old Kernels | Up | ACPI the Non-Debian Way