青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 298  文章 - 377  trackbacks - 0
<2015年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用鏈接

留言簿(34)

隨筆分類

隨筆檔案

文章檔案

相冊

收藏夾

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

http://www.tecmint.com/install-kernel-3-16-in-debian/

Kernel is the core of any operating System. The primary function of kernel is to act as mediator in-between Application – CPU, Application – Memory and Application – Devices (I/O). It function as Memory Manager, Device manager and attends System calls besides performing other tasks.

Install Kernel 3.16 in Debian Linux

Compile and Install Kernel 3.16 in 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 1991 and he came with Initial Kernel Release Version 0.01. On 3rd of August, 2014 (this year) Kernel 3.16 has been released. In this 22 years, Linux kernel has seen a lots of development. Now 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 17 million lines of code as per Linux Foundation, Linux Kernel Development Report.

  1. RedHat – 10.2%
  2. Intel – 8.8%
  3. Texas Instruments – 4.1%
  4. Linaro – 4.1%
  5. SUSE – 3.5%
  6. IBM – 3.1%
  7. Samsung – 2.6%
  8. Google – 2.4%
  9. Vision Engraving Systems – 2.3%
  10. Wolfson Microelectronics – 1.6%
  11. Oracle – 1.3%
  12. Broadcom – 1.3%
  13. Nvidia – 1.3%
  14. Freescale – 1.2%
  15. Ingics Technology – 1.2%
  16. Cisco – 0.9%
  17. Linux Foundation – 0.9%
  18. AMD – 0.9%
  19. Academics – 0.9%
  20. NetAPP – 0.8%
  21. Fujitsu – 0.7%
  22. parallels – 0.7%
  23. ARM – 0.7%

Seventy percent of kernel development is done by Developers, who are working in Corporates and are paid for that, sounds Interesting?

Linux Kernel 3.16 is released for individual as well as companies in production environment, who will be updating their kernel for a number of reason, a few of which includes.

  1. Security Patches
  2. Stability Enhancement
  3. Updated Drivers – Better device Support
  4. Processing speed improvement
  5. Latest Functions, etc

This article aims at updating Debian kernel, the Debian way, which means less manual work, less risk yet with perfection. We will also be updating Ubuntu Kernel in the later part of this article.

Step 1: Downloading Kernel 3.16

Before we proceed, we must know about our current kernel, that is installed.

avi@tecmint:~$ uname -mrns   Linux tecmint 3.14-1-amd64 x86_64

About options:

  1. -s : Print Operating System (‘Linux’, Here).
  2. -n : Print System Hostname (‘tecmint’, Here).
  3. -r : Print Kernel Version (‘tecmint 3.14-1-amd64′, Here).
  4. -m : Print Hardware Instruction Set (‘x86_64′, Here).

Download latest stable Kernel from the link below. Don’t get confused by patches download link there. Download the one which clearly states – “LATEST STABLE KERNEL”.

  1. https://www.kernel.org/

Alternatively you can use wget to download the kernel which is more convenient.

avi@tecmint:~/Downloads$ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.tar.xz

Step 2: Verify Kernel 3.16 Signature

After the download is finished and before we move ahead, it is strongly advised to verify kernel signature.

avi@tecmint:~/Downloads$ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.tar.sign

The signature verification needs to be done against uncompressed file. This is to require one signature against various compression format viz., .gz, .bz2, .xz.

Next, uncompress Linux Kernel Image.

avi@tecmint:~/Downloads$ unxz linux-3.16.tar.xz

Verify it against signature.

avi@tecmint:~/Downloads$ gpg --verify linux-3.16.tar.sign
Verify Kernel Signature

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.

avi@tecmint:~/Downloads$ gpg --recv-keys  00411886
Download Public Key

Download Public Key

After downloading key, verify the the Key again.

avi@tecmint:~/Downloads$ gpg --verify linux-3.16.tar.sign
Verify Key

Verify Key

Have you noticed two things about gpg key verification.

  1. gpg: Good signature from “Linus Torvalds <torvalds@linux-foundation.org>”.
  2. Primary key fingerprint: ABAF 11C6 5A29 70B1 30AB E3C4 79BE 3E43 0041 1886 .

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 libcurse5-dev, fakeroot and kernel-package.

avi@tecmint:~/Downloads$ sudo apt-get install libncurses5-dev avi@tecmint:~/Downloads$ sudo apt-get install fakeroot avi@tecmint:~/Downloads$ sudo apt-get install kernel-package

Step 4: Building Kernel 3.16

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).

avi@tecmint:~/Downloads$ cd linux-3.16/

Now it’s important to copy the current kernel configuration to present working directory as root user.

# cp /boot/config-'uname -r' .config

It is copying /boot/config-‘uname -r’ to present working directory “/home/avi/Downloads/linux-3.16 ” and saving it as ‘.config‘.

Here ‘uname -r‘ will automatically be replaced and processed with your currently installed kernel version.

Since a dot file can’t be seen the normal way, you need to use option ‘-a‘ with ls to view this, in your present working directory’.

$ ls -al
Building Kernel 3.16 in Debian

Building Kernel 3.16

There are three ways to build a Linux Kernel.

  1. make oldconfig : It is an interactive way in which kernel ask question one by one what it should support and what not. It is a Very time consuming Process.
  2. make menuconfig : 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.
  3. make qconfig/xconfig/gconfig : It is the Graphical Menu based system where user can enable and disable an option. It requires QT Library.

Obviously we will be using ‘make menuconfig‘.

Afraid of building kernel? You should not be. Its fun, there is lot of stuff you will learn. You should keep in mind these following things.

  1. Your hardware needs and appropriate drivers.
  2. Choose new features while you are building kernel yourself like – high memory support.
  3. Optimize kernel – select only those drivers which you need. It will speed up your boot process. If you are not sure of any driver, better include that.

Now, run the ‘make menuconfig‘ command.

# make menuconfig

Important: You must choose “SELECT – ENABLE LOADABLE MODULE SUPPORT“, if you forget to do this, you are going to get hard times.

Kernel Menuconfig

Run Make Menuconfig

Note: In the open configuration windows you can configure various options for your network card, bluetooth, Touchpad, Graphics card, Filesystem support such as NTFS and a lot other options.

There is no tutorial to guide you what you should select and what not. 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. Hacking? Yup! 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

Select Drivers for Kernel Compilation

Network Device Support.

Select Network Support for Kernel

Select Network Support for Kernel

Input Device support.

Input Device Support for Kernel

Input Device Support for Kernel

Load the configuration file (.config), we saved from /boot/config-`uname –r`.config.

Load Kernel Configuration

Load Kernel Configuration

Click on OK, save and exit. Now clean the source tree and reset the kernel-package parameters.

# make-kpkg clean
Reset Kernel Parameters

Reset Kernel Parameters

Step 5: Compiling Kernel 3.16

Before we start compiling kernel, we need to export CONCURRENCY_LEVEL. CONCURRENCY LEVEL of thumb has a rule to add Numeric 1 to the cores of kernel. If you have 2 cores, export CONCURRENCY_LEVEL=3. If you have 4 cores, export CONCURRENCY_LEVEL=5.

To check cores of processor you can user cat command as shown below.

# cat /proc/cpuinfo
Sample Output
Sample Output processor	: 0  vendor_id	: GenuineIntel  cpu family	: 6  model		: 69  model name	: Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz  stepping	: 1  microcode	: 0x17  cpu MHz		: 799.996  cache size	: 3072 KB  physical id	: 0  siblings	: 4  core id		: 0  cpu cores	: 2  apicid		: 0  initial apicid	: 0  fpu		: yes  fpu_exception	: yes  cpuid level	: 13  wp		: yes

You see above output, I have 2 cores, so we will exporting 3 cores as shown below.

# export CONCURRENCY_LEVEL=3

Setting correct CONCURRENCY_LEVEL will speed up the kernel compilation time.

# fakeroot make-kpkg --append-to-version "-tecmintkernel" --revision "1" --initrd kernel_image kernel_headers

Here ‘tecminkernel‘ is the kernel build name, it can be anything ranging from your name, your host name, your pet name or anything else.

Building Linux Kernel in Debian

Building Linux Kernel

Linux Kernel Compilation in Debian

Linux Kernel Compilation

Kernel Compilation Process in Debian

Kernel Compilation Process

Kernel Compilation Continues

Kernel Compilation Continues

Kernel compilation takes a lot of time depending upon the modules being compiled and the processing power of the machine. 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 is normal. 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 ncurses5-dev in my repository?
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. Will you assist me? 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 ‘above’ of our present working Directory.

Our current working directory is.

/home/avi/Downloads/linux-3.16/

Debian packages are created at.

/home/avi/Downloads

To verify it, run the following commands.

# cd .. # ls -l linux-*.deb
Verify Kernel Packages

Verify Kernel Packages

Next, run the Linux image file so created.

# dpkg -i linux-image-3.16.0-tecmintkernel_1_amd64.deb
Install Kernel Image in Debian

Install Kernel Image

Run the Linux header file so created.

# dpkg -i linux-headers-3.16.0-tecmintkernel_1_amd64.deb
Install Kernel Headers in Debian

Install Kernel Headers

All done! We have successfully build, compiled and installed Latest Linux Kernel 3.16 on 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 ‘Advanced option‘ to see a list of available and installed kernels.

Kernel Boot Advance Options

Kernel Boot Advance Options

See a list of installed kernels.

List Installed Kernels

List Installed Kernels

Select latest compiled Kernel (i.e. 3.16) to boot.

Boot Installed Kernel

Boot Installed Kernel

Check kernel version.

# uname -mrns
Verify New Kernel Version

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.16

For those who don’t want to compile kernel of their own on Debian (x86_64) and wants to use the pre-compiled kernel that we build in this tutorial, they can download it from the link below. This kernel may not work for some of the hardware you may be having.

  1. linux-image-3.16.0-tecmint.com_kernel_1_amd64.deb
  2. linux-headers-3.16.0-tecmint.com_kernel_1_amd64.deb

Next, install pre-compiled kernel using following command.

# dpkg -i linux-image-3.16.0-tecmint.com_kernel_amd64.deb # dpkg -i linux-headers-3.16.0-tecmint.com_kernel_amd64.deb

The unused kernel can be removed from the system using command.

# apt-get remove linux-image-(unused_version_number)

Caution: You should remove old kernel after testing Latest kernel throughly. 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.

  1. The link /vmlinuz is a damaged link.
  2. Removing symbolic link vmlinuz.
  3. You may need to re-run your boot loader[grub].
  4. The link /initrd.img is a damaged link.
  5. Removing symbolic link initrd.img .
  6. You may need to re-run your boot loader[grub].

This is normal and you need not to worry. Just update your GRUB using the following command.

# /usr/sbin/update-grub

You may need to update your /etc/kernel-img.conf file and disable ‘do_symlinks‘, to disable these messages. 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.

posted on 2015-06-22 11:15 聶文龍 閱讀(679) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美sm极限捆绑bd| 欧美成人资源| 亚洲国产日韩欧美综合久久| 午夜精品美女久久久久av福利| 亚洲精品一区二区在线| 另类激情亚洲| 伊人影院久久| 久色成人在线| 裸体丰满少妇做受久久99精品| 欧美刺激午夜性久久久久久久| 欧美激情1区2区3区| 欧美视频在线一区二区三区| 国产欧美成人| 亚洲第一狼人社区| 一本色道久久加勒比精品| 午夜亚洲精品| 欧美成人午夜| 夜夜爽夜夜爽精品视频| 欧美亚洲视频| 欧美精品国产精品| 国产午夜精品麻豆| 亚洲精品一二| 久久久久国产精品一区二区| 欧美激情欧美狂野欧美精品| 亚洲视频一二区| 久久综合国产精品| 欧美日韩中文| 亚洲精品免费在线| 销魂美女一区二区三区视频在线| 美日韩精品免费| 在线中文字幕日韩| 美女黄毛**国产精品啪啪| 国产精品乱人伦一区二区| 亚洲国内自拍| 久久久久久久波多野高潮日日| 亚洲狠狠丁香婷婷综合久久久| 亚洲视频在线观看| 欧美国内亚洲| 亚洲高清自拍| 久久亚洲精选| 午夜亚洲影视| 国产精品视频你懂的| 99爱精品视频| 女生裸体视频一区二区三区| 亚洲永久免费视频| 欧美日韩专区在线| 亚洲精选国产| 亚洲电影免费观看高清完整版| 欧美一区1区三区3区公司| 国产精品久久久久久av福利软件| 亚洲精品永久免费| 亚洲福利精品| 免费成人你懂的| 亚洲最新视频在线播放| 国产精品久久国产三级国电话系列| 欧美激情一区二区三区全黄| 影音先锋成人资源站| 欧美一区二区网站| 国产精品99久久久久久久女警 | 欧美成人嫩草网站| 在线免费不卡视频| 你懂的网址国产 欧美| 久久久噜久噜久久综合| 国产一区二区观看| 久久久精品午夜少妇| 欧美一区二区三区四区在线 | 国产农村妇女毛片精品久久莱园子 | 亚洲欧美成人网| 国产精品久久久久久超碰| 亚洲视频免费观看| 亚洲美女黄网| 欧美色视频日本高清在线观看| 国产精品99久久久久久久久| 亚洲伦理精品| 国产精品家庭影院| 夜夜嗨av一区二区三区中文字幕| 亚洲人成在线播放网站岛国| 欧美日韩亚洲视频一区| 午夜精品久久久久影视| 性久久久久久久| 亚洲成人影音| 一本久道久久综合婷婷鲸鱼| 国产欧美日韩免费看aⅴ视频| 午夜精品久久一牛影视| 欧美在线免费观看视频| 在线观看欧美亚洲| 亚洲精品无人区| 国产精品成av人在线视午夜片| 99天天综合性| 欧美一二区视频| 亚洲精品综合精品自拍| 亚洲一区国产精品| 亚洲国产成人高清精品| 宅男在线国产精品| 一区在线免费观看| 99综合在线| 在线观看不卡av| 99国产精品视频免费观看一公开| 国产欧美精品在线观看| 亚洲第一区在线| 国产精品中文字幕在线观看| 欧美福利一区| 国产日韩精品入口| 亚洲伦理在线观看| 国产精品人成在线观看免费 | 久久琪琪电影院| 久久一二三区| 亚洲伊人第一页| 久久久福利视频| 一区二区三区高清| 久久疯狂做爰流白浆xx| 一本一本久久a久久精品牛牛影视| 午夜精品成人在线| 亚洲精品护士| 欧美一区二区三区在线看| 日韩午夜电影av| 久久爱www.| 亚洲欧美中日韩| 欧美日韩国产亚洲一区| 欧美电影免费观看| 国产综合色在线| 亚洲在线视频网站| 这里只有视频精品| 六月婷婷久久| 久久精品视频播放| 国产精品素人视频| 99精品热视频| 日韩午夜精品视频| 另类激情亚洲| 久热爱精品视频线路一| 国产精品一区二区久久国产| 日韩香蕉视频| 99精品热视频| 欧美激情一区二区三区全黄| 欧美激情1区2区3区| 亚洲国产精品成人精品| 久久视频在线免费观看| 美女视频黄免费的久久| 在线精品视频一区二区三四| 久久九九国产精品怡红院| 久久麻豆一区二区| 极品日韩av| 久久免费视频这里只有精品| 久久亚洲春色中文字幕久久久| 国产欧美日韩一区二区三区| 亚洲女性喷水在线观看一区| 欧美制服第一页| 国产一区二区三区在线观看视频| 欧美一区二区视频在线观看2020| 欧美在线中文字幕| 影音先锋中文字幕一区| 六月丁香综合| 亚洲作爱视频| 久久国产精品毛片| 在线观看福利一区| 欧美成人四级电影| 一本久久知道综合久久| 久久精品国产第一区二区三区最新章节 | 国产精品久久久免费| 亚洲高清在线视频| 99精品免费| 欧美人交a欧美精品| 日韩亚洲视频在线| 亚洲欧美国内爽妇网| 国产日韩成人精品| 免播放器亚洲一区| 艳女tv在线观看国产一区| 欧美在线视频免费| 亚洲国产视频一区二区| 欧美性片在线观看| 久久九九99视频| 99在线|亚洲一区二区| 欧美在线日韩| 亚洲美女淫视频| 国产精品入口夜色视频大尺度| 久久精品毛片| 99精品视频免费| 老鸭窝91久久精品色噜噜导演| 99热免费精品在线观看| 国产综合av| 国产精品va在线| 另类综合日韩欧美亚洲| 亚洲欧美激情视频在线观看一区二区三区| 久热精品在线| 羞羞漫画18久久大片| 99re国产精品| 尤物视频一区二区| 国产精品一区二区在线观看| 欧美国产亚洲精品久久久8v| 久久精品中文字幕一区| 夜夜嗨av一区二区三区中文字幕| 久热精品在线视频| 欧美一区日韩一区| 一区二区三区欧美成人| 亚洲福利免费| 韩日在线一区| 国产亚洲精品久久久久婷婷瑜伽| 欧美日韩在线一区| 欧美日韩国产综合视频在线| 美女网站在线免费欧美精品|