Linux kernel compilation

Source: Internet
Author: User

Kernel commands


Modinfo + module Name: View module information

Lsmod: View modules running in the current kernel

Insmod + module Path: Load module

Modprobe + module Name: Loading module

MODPROBE-R Module Name: Unload module

RMMOD Module Name: Unload module


modifying kernel parameters

1 echo VALUE >/proc/sys/kernel/hostname

2 sysctl-w kernel.hostname= "VALUE"

Both of the above are effective immediately and cannot be permanently valid

3 vi/etc/sysctl.conf

Modify the configuration file to be permanent, but not effective immediately

You can execute the following command to make it effective immediately

Sysctl-p, this configuration file will be re-read to make it effective


To compile the kernel method:

Download a similar version of the kernel, unzip,

Copy/boot/config file to the extracted directory, for. config

Perform:

Make Menuconfig

Make

Make Modules_install

Make install


Compiling the kernel is a relatively hard work, time is longer, half an hour to five hours,

All try not to use remote compilation,

If you are not using remote compilation, you can use the screen command


Yum-y Install screen



Screen-ls (display screen)

Ctrl+a,d (Demolition screen)

Screen (new)

Screen-r ID (Restore screen)


















This article is from the IT Network Tanuvi blog, be sure to keep this source http://03301216.blog.51cto.com/4550876/1788495

Linux kernel compilation

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.