RedhatLinux Kernel upgrade

Source: Internet
Author: User
Article title: RedhatLinux Kernel upgrade. 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.
Deng Guanglei
  
According to experts, having not compiled the kernel and playing with linux is not an entry point, so I just want to try it when I learn linux. I'm in a good mood. write down this article. please correct me and thank you for helping me download this big guy (weighing 7 MB)'s friend LH .~ Pai_^
My environment is: 1st hard drive with win95 + Redhat 5.1, lilo with MBR, and kernel with 2.0.34-0.6
1. the updated new kernel file is: linux-2.0.35.tar.gz (stable version (or linux-2.1.129.tar.gz test version ...)
: Http://freesoft.cei.gov.cn/freesoft.htmlsearch engine, about 7 m.
2. Prepare for cd/usr/src/To go to the/usr/src/rm-rf/usr/src/linux directory and delete or remove the old kernel source code)
Cp linux-2.0.35.tar.gz? /Usr/src/copy the new kernel file to the previous directory gzip-cd linux-2.0.35.tar.gz | tar xvf-unzip the kernel file, generate a new directory/usr/src/linuxcd/usr/include and enter the directory/usr/mongoderm-rf linux asm scsi to delete all old header files.
Create a soft link to direct your system to a new header file containing the new kernel code. ln-s/usr/src/linux/include/linux linuxln-s/usr/src/linux/include/asm-i386 asmln-s/usr/src/linux/include/scsi scsicd /usr/src/linux enter the directory/usr/src/linux make mrproper to clear any additional source code that will cause the problem.
Perform the following operations as root: 3.cd/usr/src/linux: Enter the directory/usr/src/linuxmake config to start configuring your kernel.
Familiar with hardware, it will be easier to configure. if you do not understand it, use the default configuration to meet your own requirements, such as the PPP protocol, vfat, sound card, and printer you need... the make menuconfig and make xconfig commands are optional.
4. create the kernel in the/usr/src/linux Directory:
Make dep make sure that key files are in the correct position. make clean make sure everything is up to date. make zImage compile the kernel
The new kernel zImage is generated in the/usr/src/linux/arch/i386/boot/directory. cp zImage/boot copies the file to/bootmake modules. if M is selected during kernel configuration, both the make modules_install module requires these two steps.
5. edit the lilo configuration file.
Vi/etc/lilo. conf added: image =/boot/zImagelabel = l35 lilo start to "l35" display new kernel root =/dev/hda3 1st hard disk has win95, c:, d:, e: save and exit.
Lilo executes lilo. don't forget.
In addition, if your kernel is large, make zImage will be changed to make bzImage.
Down!
Reboot & enjoy it :)
  
  

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.