Install the kernel in Linux

Source: Internet
Author: User
Install the kernel in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. After compilation, the bzImage file will appear in the arch/i386/boot directory.

To install the kernel, follow these steps:
(1) Create the mynewkernel directory under the/boot directory and copy bzImage to the/boot/mynewkernel directory:

$ Sudo cp arch/i386/boot/bzImage/boot/mynewkernel

(2) Change the bzImage name in/boot/mynewkernel.
$ Sudo mv bzImage vmlinuz-2.6.17.13

(3) backup and modify the grub configuration file
$ Sudo cp/boot/grub/menu. lst menu. lst. origin

Modify menu. list and add the following content (copy related content from existing menu. list ):
Title zp, make defconfig, 2.6.17.13
Root (hd0, 2)
Kernel/boot/mynewkernel/vmlinuz-2.6.17.13 root =/dev/sda3 ro quiet splash
Savedefault
Boot

(4) Installation module:
$ Sudo make modules_install

Reboot: select the new kernel boot from the grub boot menu.

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.