Upgrade and compile your Linux core

Source: Internet
Author: User
Article Title: Upgrade and compile your Linux core. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Constantly upgrading your Linux core can greatly improve the overall performance of your system.
First, you should download or download the core file, which is generally named linux-x.xx.tar.gz.
  
X. x. xx represents its version. Cp the file to the/usr/src directory, and then run
  
Gzip-cd linux-x.x.xx.tar.gz
  
Tar xvf linux-x.x.xx.tar, or
  
Tar zxvf linux-x.x.xx.tar.gz
  
You can also upgrade some core files, such
  
Gzip-cd patchxx.gz
  
Patch-po or
  
Bzip2-dc patchxx.bz2, and then
  
Patch-po (note that the file packaging method is different, and the extension is different !)
  
There is a script file patch-kernel in the/usr/src directory, you can use it to complete the work, check your
  
The location of the core file, usually in the/usr/src/linux directory. Then run
  
Make mrproper
  
Too many times has been executed, and no problems have been found ). At this point, you have installed the core
  
Source file. Now you should configure your core.
  
In this step, you can use four methods: make menuconfig, make xconfig, and make oldconfig.
  
Make config, the difference between the four commands is that make menuconfig is carried out through the menu text,
  
Make xonfig is in the X Window mode, and make config and make oldconfig use the line of the screen
  
It will ask you every step and ask you to make a choice. But make oldconfig is when you want to keep your current
  
(Not confused, that is, keep the current configuration ). If your config is actually not needed
  
West, it will make your core file very large! Remember the following points:
  
1. Set your processor type to "higher than 396 ". A little nonsense, right?
  
Who is still using 386 or <386 machines?
  
2. When you ask development, experimental, and debugging, please answer "N ".
  
Now you can reconfigure your new Kernel File: make dep.
  
Create the kernel image file: make zImagic. If your Kernel File is too large, use make bzImagic.
  
During this period, make zdisk is used to create a kernel file on your floppy disk; make zlilo is used to create a new
  
Lilo, that is, the system loader. Next step:
  
Re-generate the kernel module, make modules
  
Install your module File, make modules_install. After installation, you can refer to/modules
  
. Txt file to learn information about the module you have installed.
  
Before making modules_install, You 'd better back up the files under your/modules.
  
One copy. Why? Needless to say, right?
  
The generated kernel image files are usually/vmlinuz,/zImage, or/etc/zImage files.
  
Core File cp and overwrite the old kernel image file. It is very important to make the boot disk ready, so we will cp the kernel image file to you
  
/Dev/fd0. If you are booting from the hard disk through Lilo, modify the Lilo. conf file so that it points
  
The directory where your new kernel image file is located, and run/sbin/lilo again to install Lilo.
  
OK!
  
  

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.