Kernel 3. 1. 6 Released - Compile and Install on Debian GNU/Linux. Kernel is the core of any operating System. The primary function of kernel is to act as mediator in- between Application . It function as Memory Manager, Device manager and attends System calls besides performing other tasks. Compile and Install Kernel 3. Debian Linux. For Linux, Kernel is its heart. The Linux Kernel is released under GNU General Public License. Linus Torvalds developed Linux Kernel in the year 1. Initial Kernel Release Version 0. On 3rd of August, 2. Kernel 3. 1. 6 has been released. In this 2. 2 years, Linux kernel has seen a lots of development. How To Install Kernel Source Debian PackagesNow there are thousand of companies, millions of independent developer contributing to Linux Kernel. A rough estimation of big brands and their contribution to the present Linux Kernel which is expected to have 1. Linux Foundation, Linux Kernel Development Report. Red. Hat . We will also be updating Ubuntu Kernel in the later part of this article. Step 1: Downloading Kernel 3. Before we proceed, we must know about our current kernel, that is installed. Linux tecmint 3. 1. Don’t get confused by patches download link there. Download the one which clearly states – . This is to require one signature against various compression format viz., . Next, uncompress Linux Kernel Image. Downloads$ unxz linux- 3. Kernel 3.16 Released – Compile and Install on Debian GNU/Linux by Editor . Now clean the source tree and reset the kernel-package parameters. Question: I need to download and install a full kernel source tree to compile a custom kernel for my Debian or Ubuntu system. What is a proper way to download full kernel source on Debian or Ubuntu? Before installing full kernel source on your Linux system, ask yourself whether you really need the. Next by Date: Re: How to get debian kernel source? Previous by thread: Re: can't install Debian Next by thread: Re: How to get debian kernel source? Index(es): Date Thread. Jump to navigation Advertisement News for the Open Source Professional. Don't be afraid to try compiling the kernel. It's fun and profitable. To compile a kernel the Debian way, you need some packages: fakeroot, kernel-package, linux-source-2.6 and a few others which are probably already installed (see /usr/share/doc/kernel-package/README.gz for the complete list). Apt-get install kernel-source-2.x.y Unpack it: cd /usr/src tar -xjvf kernel-source-2.x.y.tar.bz2 Install the correct config-file: cd kernel-source-2.x.y cp /boot/config-2.x.y-z-arch.config Generate dependencies and Makefiles. Now, lets grab a latest source tarball from www.kernel.org or you may use following wget command to download it. Now, we will want to configure the kernel. It is best to start with a configuration that you are currently using and work from there. To do this, we will copy the current configuration. Verify it against signature. Downloads$ gpg - -verify linux- 3. Verify Kernel Signature. Note: If above command throws gpg: Can’t check signature: public key not found error. That means we need to download Public key manually from PGP Server. Downloads$ gpg - -recv- keys 0. Download Public Key. After downloading key, verify the the Key again. Downloads$ gpg - -verify linux- 3. Verify Key. Have you noticed two things about gpg key verification. Good signature from “Linus Torvalds < torvalds@linux- foundation. Primary key fingerprint: ABAF 1. C6 5. A2. 9 7. 0B1 3. AB E3. C4 7. 9BE 3. E4. 3 0. 04. 1 1. Nothing to worry about key fingerprint, we are sure now that the archive is OK and signed. Lets move ahead! Step 3: Installing Required Packages. Before we go ahead and start building the kernel, we need to install certain packages to ease the kernel building and Installation process and do it risk- free Debian way. Install libcurse. Downloads$ sudo apt- get install libncurses. Downloads$ sudo apt- get install fakeroot. Downloads$ sudo apt- get install kernel- package. Step 4: Building Kernel 3. After successful installation of the above packages, we are ready to build kernel. Move to the extracted Linux Kernel Image (we extracted above, while verifying signature). Downloads$ cd linux- 3. Now it’s important to copy the current kernel configuration to present working directory as root user.# cp /boot/config- 'uname - r' . It is copying /boot/config- . It is a Very time consuming Process. It is a Command- Line Menu based system where user can enable and disable an option. It requires ncurses library hence we Apt that above. It is the Graphical Menu based system where user can enable and disable an option. It requires QT Library. Obviously we will be using ? Its fun, there is lot of stuff you will learn. You should keep in mind these following things. Your hardware needs and appropriate drivers. Choose new features while you are building kernel yourself like . It will speed up your boot process. If you are not sure of any driver, better include that. Now, run the . You come to know this only by Researching, studying stuff over web, learning from tutorials of tecmint and in every other possible way. You may see there is an option kernel hacking. Here it means exploration. You can add various options under kernel hacking and utilize a lot of features. Next, select Generic Driver Options. Select Drivers for Kernel Compilation. Network Device Support. Select Network Support for Kernel. Input Device support. Input Device Support for Kernel. Load the configuration file (. Now clean the source tree and reset the kernel- package parameters.# make- kpkg clean. Reset Kernel Parameters. Step 5: Compiling Kernel 3. Before we start compiling kernel, we need to export CONCURRENCY. CONCURRENCY LEVEL of thumb has a rule to add Numeric 1 to the cores of kernel. If you have 2 cores, export CONCURRENCY. If you have 4 cores, export CONCURRENCY. Till the time it is compiling look at some of the FAQs of kernel compilation. Frequently Asked Questions. Q1. My kernel is being compiled for a long time. Is it Normal. Answer : YUP! It depends upon your module selection and machine power. Q2. If I interrupt the kernel while it was compiling, Do I need to start all over again? Answer : Yup! There is no other way. Q3. The compiled files can be used on different system to update kernel? Answer : Yes! The compiled kernel file we will be getting can be used to update other kernel of Debian machine of same architecture, with the fact that some of your hardware may not work, if it is different on your other machine. Q4. Will you be hosting your compiled File? Answer : Yes! You can download it from the bottom of this page, but we don’t guarantee all your hardware will work. It is recommended to compile your kernel if you are not that lazy. Q5. Do I have packages like fakeroot and ncurses. Answer : Don’t ask me. You have the same resource I am having. Q6. Will I able to boot into last kernel, after I install the latest kernel. Answer : Yes you can boot into last kernel, if you have not removed them (see remove unused kernel), by selecting Advanced option from the Boot Menu. Q7. I am facing problem in updating kernel. Is it chargeable? Answer : We can help you through technical aspects of kernel compilation and installation and its not chargeable, however you can donate, if you find our work Genuine and worth. Q8. My company facing Problem in updating Kernel. Will your team assist us? Is it Chargeable? Answer : Yes! It comes under our service and is chargeable, which is very nominal and competitive. You may drop a mail to us and we will contact you, if You are interested. That’s the end of FAQ, let me move with compilation process. After successful compilation of kernel, it creates two file (Debian package), one directory . We have successfully build, compiled and installed Latest Linux Kernel 3. Debian with all other dependencies. Moreover Debian package managed to update bootloader (GRUB/LILO), automatically. It’s time to reboot and test the latest kernel. Please sure to notice any error message you might get during booting. It is important to understand that error to solve them, if any.# reboot. As soon as Debian starts again, click on . Boot Installed Kernel. Check kernel version.# uname - mrns. Verify New Kernel Version. The latest one, installed now is set to boot, automatically and you need not choose it every time from advanced boot options. Step 6: Install Pre- Compiled Kernel 3. For those who don’t want to compile kernel of their own on Debian (x. This kernel may not work for some of the hardware you may be having. Don’t take a decision in hurry. You should proceed only if you know what you are doing. If you did something wrong in removing the kernel you want, or removed the kernel you were not supposed to, your system will be in a stage you can’t work upon. After uninstalling an unused kernel you may get a message like. The link /vmlinuz is a damaged link. Removing symbolic link vmlinuz. You may need to re- run your boot loader. Just update your GRUB using the following command.# /usr/sbin/update- grub. You may need to update your /etc/kernel- img. If you are able to reboot and login again, there is no problem. That’s all for now. I will be here again with another interesting article. Till then stay tuned and connected to Tecmint. Don’t forget to provide us with your valuable feedback in the comment section below. Also tell us your experience when you encounter Kernel compilation and installation. Read Also : Install Kernel 3. Ubuntu. Compile and Install Kernel 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |