Fedora7 finally succeeded in compiling the kernel-Linux general technology-Linux programming and kernel information. The following is a detailed description. First of all, let's talk about the reason for compiling the kernel. My computer has never been able to shut down. I used to be able to use fc4, but there was no sound. So I upgraded the kernel. After upgrading, there was sound, but cannot shut down. Reading the online post and modifying the grub file has not been solved. I have tried to compile the kernel multiple times, but it cannot be started after each compilation, either/roott or kernel panic.
Analysis: online query is similar to a post, and no reason is found. So this time, I directly copy the upgraded kernel 2.6.21-1.3228.fc7 config file to the linux-2.6.21.5 kernel folder I downloaded and decompressed, the specific steps are as follows:
# Cp/boot/config-2.6.212-1.3228.fc7/usr/src/kernel/linux-2.6.21.5/
# CdS/usr/src/kernel/linux-2.6.21.5
# Make mrproper
# Make oldconfig
# Make menuconfig
At this point, I started to configure the kernel based on the 2.6.21-1.3228.fc7 kernel. I haven't started it many times before, so I didn't dare to change it this time. In order to solve the shutdown problem, directly remove the apm item of power managmentli, which is compiled into the kernel by default.
# Make install
# Make modules_install
So far, the kernel compilation process has ended. Copy the file,
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.