The kernel was compiled a few days ago.

Source: Internet
Author: User
The kernel-general Linux technology-Linux programming and kernel information was compiled the other day. The following is a detailed description. Original: thing Zhizhi
Fedora 8 does not support the SD/MMC card reader in my laptop. It is quite depressing that I could not help but re-compile the kernel to solve this problem a few days ago. Although there were some minor problems in the middle, but I still learned a lot of knowledge and made a small summary:

Because the kernel has been upgraded, download the source code package of the corresponding kernel here, install it, and decompress it to a directory, which can be/usr/src or another custom directory, for details, see:

The last part of the beta version.

Then go to the directory you extracted:
# Make clean: Clear the compilation results in the past (avoid inexplicable problems)

# Make mrproper (the source code that has just been downloaded or installed does not need this step. Compile the use of the same kernel multiple times and check whether the. o file and dependency are correct)

# Make xonfig configure the kernel option (Chinese )? The detailed description can be seen in: Linux 2.6.19.x kernel compilation configuration option introduction? Jin Bu Guo

Although the organization structure and many options of Kernel configuration have changed, this article is very helpful for reference. Of course, if you use menuconfig or other methods to configure kernel options, the organizational structure is also slightly different.

# Make compilation, the longest time-consuming part

# Make modules_install install the kernel module (it seems that I haven't used it, and I remember it wrong)

# Make install the kernel and configure grub-related options

In this way, the device has been installed and a startup Item is automatically added for grub. However, it is not the default startup option and you have to choose the option to start it. Many problems may occur and you may feel a lot, first, the compilation of the kernel becomes easier and easier, including automatically solving dependencies and simplifying compilation commands.

Problems and experiences:
Because Kernel configuration is not skillful, many things are messy during compilation, and many modules cannot be found, such as OHCI and EHCI. I do not understand why, if anyone knows this, please kindly advise. Thank you!

Make sure that you still have enough disk space for related partitions after compiling the kernel. I cannot enter X because of insufficient disk space, and I am prompted how a process crashes, then I jumped back. After a long time, I realized that it was not enough space!

The support for SD/MMC card readers has been compiled into the kernel, but it is still not done. It cannot be used normally, so it is depressing ......

The sound card cannot be used after the newly compiled kernel is started, but the sound card detects sound. This is because of the enhanced security of Fedora 8 (permission issues). For solutions, see: solve the permission problem of the device in Fedora 8. The sound card device is/dev/snd/*. Just add it here.

Many of the old kernel compilation steps are no longer needed now. For example, some header file libraries are used as links. For details, refer to: What should I do if the differences between different versions of the kernel compilation tutorial are relatively large?

We strongly recommend that you back up the configuration file. This configuration file is not easy to use!

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.