Linux kernel compiled Ubuntu 14.04.3 server upgrade to 3.19.8

Source: Internet
Author: User
Tags uuid

Reading notes:<Linux kernel design and implementation , the original book 3rd edition, Chen Li June Peggy translation

2nd Chapter: Starting from the kernel

Section 2.3: Compiling kernel experiments:



============================================================

System Environment : VM Virtual Machine Ubuntu 14.04.3 LTS Server Edition

Task : Compile and install the new kernel

Note: do not span large versions, I am in version 3.19

Time: 2 hours


All versions of the kernel:

https://www.kernel.org/pub/linux/kernel/



Current system kernel version

Uname-r 3.19.0-25-generic




Download, unzip, compile, install the Linux kernel


wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.19.8.tar.xzsudo tar xf  linux-3.19.8.tar.xz -c /usr/src/cd /usr/src/linux-3.19.8/sudo cp /boot/ config-3.19.0-25-generic .configsudo make -j 8      (compile, takes 80 minutes) echo $?0sudo make modules_install  (Installs the module, takes 7 minutes) echo $?0 ll /lib/modules/ 3.19.8   #列出安装的内容 [email protected]:~$ ll /lib/modulestotal 12kdrwxr-xr-x 2  root root 4.0k jul 30 05:51 3.13.0-92-genericdrwxr-xr-x 6 root  root 4.0k sep 23 18:18 3.19.0-25-genericdrwxr-xr-x 4 root root  4.0K Nov 29 13:56 3.19.8sudo make install  (installs kernel boot, takes 2 minutes) echo $? 0ll /boot/  #列出安装的内容 [email protected]:~$ ll /boot/total 219m-rw-r--r-- 1  root root 1.3m jul 25  2015 abi-3.19.0-25-generic-rw-r--r-- 1 root root 174k jul 25   2015 config-3.19.0-25-generic-rw-r--r-- 1 root root 173K Nov 29  13:55 config-3.19.8drwxr-xr-x 5 root root 4.0k nov 29 13:57  grub-rw-r--r-- 1 root root  20m jul 30 05:59  initrd.img-3.19.0-25-generic-rw-r--r-- 1 root root  19m jul 30 05:59  initrd.img-3.19.0-25-generic.old-dkms-rw-r--r-- 1 root root 160m nov 29  13:57 initrd.img-3.19.8-rw-r--r-- 1 root root 173K Mar 12   2014 memtest86+.bin-rw-r--r-- 1 root root 174k mar 12  2014  memtest86+.elf-rw-r--r-- 1 root root 175k mar 12  2014 memtest86+ _MULTIBOOT.BIN-RW------- 1 root root 3.5M Jul 25  2015 System.map-3.19.0-25-generic-rw-r--r-- 1  ROOT&NBSP;ROOT&NBSP;3.5M&NBSP;NOV&NBSP;29&NBSP;13:55&NBSP;SYSTEM.MAP-3.19.8-RW------- 1 root  Root 6.3m jul 25  2015 vmlinuz-3.19.0-25-generic-rw-r--r-- 1 root  root 6.3m nov 29 13:55 vmlinuz-3.19.8 View Kernel Installation successful  [email protected]:~$  grep 3.19.8 /boot/grub/grub.cfglinux/boot/vmlinuz-3.19.8 root=uuid= 6e8a9edf-c57c-4411-8189-074aaa456310 ro  initrd/boot/initrd.img-3.19.8menuentry  ' Ubuntu,  with linux 3.19.8 '  --class ubuntu --class gnu-linux --class gnu  --class os  $menuentry _id_option  ' gnulinux-3.19.8-advanced-6e8a9edf-c57c-4411-8189-074aaa456310 '  {echo ' loading linux 3.19.8  ... ' linux/boot/vmlinuz-3.19.8 root=uuid=6e8a9edf-c57c-4411-8189-074aaa456310 ro  initrd/boot/initrd.img-3.19.8menuentry  ' ubuntu, with linux 3.19.8  (recovery mode ) '  --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option  ' gnulinux-3.19.8-recovery-6e8a9edf-c57c-4411-8189-074aaa456310 '  {echo ' Loading  linux 3.19.8  ' linux/boot/vmlinuz-3.19.8 root=uuid=6e8a9edf-c57c-4411-8189-074aaa456310  ro recovery nomodeset initrd/boot/initrd.img-3.19.8[email protected]:~$ sudo  reboot



Connect to Linux:

SSH [email protected]welcome to Ubuntu 14.04.3 LTS (gnu/linux 3.19.8 x86_64) [Email protected]:~$ uname-r3.19.8


To this, the new kernel starts successfully.



This article from "Soul Bucket Luo" blog, declined reprint!

Linux kernel compiled Ubuntu 14.04.3 server upgrade to 3.19.8

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.