Linux Kernel upgrade

Source: Internet
Author: User
Linux Kernel upgrade-general Linux technology-Linux programming and kernel information. For details, refer to the following section. Yesterday, I finally upgraded the Linux kernel to 2.6.18. Although the process was long and encountered many problems, I finally solved the problem.

To develop the device driver program under Linux2.6 kernel, we downloaded Redhat AS4 from the Internet and installed it in Virtual PC. However, after the installation, we found that, this version of Redhat accounts for nearly 100% of the CPU after it is started, and cannot do anything else. Previously, I installed Redhat9.0 in the Virtual PC. After it is started, the Virtual machine only occupies less than 10% of the memory. However, the Redhat9.0 kernel is 2.4.20, and I want the kernel to be 2.6 for development, so I thought of upgrading the kernel to 2.6. Then there will be subsequent work.

Download 2.6.18 after the core, then download module-init-tools-3.2.tar.bz2, mkinitrd-4.1.18-2.i386.rpm, lvm2-2.00.25-1.01.i386.rpm, device-mapper-1.00.19-2.i386.rpm, So began to upgrade. After waiting for 3.5 hours, the upgrade was successful. However, the network is unavailable after startup. The following message is displayed at startup: tulip device eth0 does not seem to be present, delaging initialization, so I thought that I forgot to select the tulip when I configured the kernel. I don't want to compile the kernel any more. After all, it takes too long. So I thought of compiling this item into a module and then loading it. So I came to the/usr/src/linux2.6.18/drivers/net directory and found a tulip folder. Then I found a Makefile file and other source files, to compile this module separately, I decided to rewrite the Makefile file, open the file with vi, and add obj-m: = tulip to the next line of # Declare multi-part drivers. o. Then compile: make-C/usr/src/linux2.6.18 M = 'pwd' modules to get a tulip. ko file, use insmod tulip. ko tulip. ko load, and then use/etc/init. d/network start the network.
After the network is ready for use, it is found that the kernel does not support the smbfs file system. Therefore, the above method is used to compile smbfs. ko and then load it, so it is also available.

After it is started, the i8253 count too high and resetting always appear on non-graphic interfaces. Now it never appears again.

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.