Linux kernel Update Method--take Ubuntu as an example

Source: Internet
Author: User

(1) cp/boot/config-' uname-r '. config

Copy your own configuration (Ubuntu system installed from the ISO CD) to the kernel source

(2) Make Menuconfig

The configuration of the source code may not be able to run up, if not up, you can configure a number of options, such as the mouse does not move, it is necessary to configure the HID side of the drive, the network is different, it is necessary to configure the next Nic section, and then save the configuration. config

(3) Make-j10

-j10 Just for faster

(4) Make install kernel, mainly generate kernel image

(5) Make modules compiler driver

(6) Make Modules_install install driver

(7) Mkinitramfs-o/boot/initrd.img-3.18.3/lib/modules/3.18.3

/lib/modules/If there is no 3.18.3, may be error, create your own manually (mkdir/lib/modules/3.18.3)

(8) Change Grub:

Modify/boot/grub/grub.conf to the current kernel, such as:

[email protected]:~$ cat/boot/grub/grub.cfg
Set timeout=5
linux/boot/vmlinuz-3.18.3 root=/dev/sda1 ro text console=tty0 console=ttys0,115200n8
initrd/boot/initrd.img-3.18.3
Boot

Here you need to see what your image name is and need to correspond.

Here please refer to my blog Grub & MBR topic related articles

http://blog.csdn.net/xiangpingli/article/details/42183219

(9) Reboot to see, has booted to the new kernel


This process refers to the Linux kernel API full reference Manual, recommends that the kernel development or driver development novice to buy a copy, the veteran also suggested to buy, unless it is a very high master


Linux kernel Update Method--take Ubuntu as an example

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.