Kernel Compilation under Linux
|
|
Author: Unknown
Added: 12/21/2002
Type: Tutorial
Viewed: 908 time(s)
|
|
|
Installation requirements
2.1 Download the new kernel
$ su $ cd /usr/src $ wget http://www.fr.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz
Use your country code instead of "fr" in the kernel download url as www.kernel.org is quite busy. You can look for all the mirrors at http://kenel.org/mirrors. I've chosen http but you can try to download it through ftp (ftp://ftp.fr.kernel.org/pub/linuxkernel/v2.4/linux-2.4.19.tar.gz).
2.2 Verify your download
You have to verify if the download is correct by downloading the cryptographic signature file, here linux-2.4.19.tar.gz.sign. This file will permit us to verify if the kernel you downloaded isn't corrupted and/or authentic. You need gpg to do this. If it's the first time you verify your kernel using this, you will first need to get the "Linux Kernel Archives Verification Key" by doing this:
$ gpg -- keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E
You can also get the key at http://www.kernel.org/signature.html. Now that you have the PGP key on your gpg keyring and the .sign, you can verify the file:
$ gpg --verify linux-2.4.19.tar.gz.sign linux-2.4.19.tar.gz
gpg will tell you if the test succeed or not. If it has, you can untar your kernel.
2.3 Decompress the kernel
$ tar zxvf linux-2.4.19.tar.gz $ cd linux-2.4.19
In case you downloaded a bz2 file:
$ tar jxvf linux-2.4.19.tar.bz2 |
|
|
|