How to compile the 2.6.13.2 kernel In debian-Linux general technology-Linux programming and kernel information. Compiling the kernel is a must for every linux user.
The Infinite Charm of linux is that users can customize a suitable kernel as needed.
If the old kernel of the new hardware cannot be identified, it is possible to compile a new kernel.
I did not know anything about compiling the kernel two weeks ago. After some advice from a senior engineer, I can finally
The kernel has been compiled smoothly.
The main steps to compile the kernel are as follows:
1. Download the kernel source code from www.kernel.org. It has been updated to 2.6.13.4. But since CERNET cannot access any foreign website, I downloaded a 2.6.13.2 kernel from ftp.tsinghua.edu.cn. My machine is the old PII book of IBM, and the new features of kernel are generally not used. It is mainly used to create a simpler kernel, Remove unused things, and save resources.
2. Download linux-2.6.13.2.tar.gz to the local directory. I think many people put it under/usr/src. It may be a habit.
3 decompression: tar zxvf linux-2.6.13.2.tar.gz
4 In this case, the linux-2.6.13.2 subdirectory will appear under the root directory
5 into the linux-2.6.13.2 directory, make menuconfig key step, the success or failure of compiling the kernel all in this step. As long as you select less important things, the new kernel will be panic.
6. A. config file is generated under the current directory after configuration. This file has hidden attributes
You can use ls-a to check whether the configuration files you just edited are saved in this file.
7. make compilation process: the longest process. It is recommended that you find a place to read the book and return it in two hours.
My CPU is slow, so I make menuconfig at night in the dormitory, and then I will go to bed, let
My own compile will be compiled by the next morning.
8 make modules_install the configuration module
9 make install after execution will generate a vmlinuz-2.6.13.2 under the/boot directory
At the same time in the/arch/i386/boot/generate a bzImage, I looked at it, with the vmlinuz-2.
6.13.2 is of the same size, so it may be the same file.
10 mkinitrd-o/boot/initrd. img-2.6.13.2 about this file, I have read a lot of forum
Post, but I still don't know what this is for. I heard that if ramdisk is not selected during compilation
No.
11 Modify/boot/grub/menu. lst to load the new kernel
12 reboot
How it feels to compile the kernel: I have been studying and compiling the kernel in the lab since the National Day holiday. I often go to the Forum to check the related information.
Or use Baidu to search for information. I use hiweed Debian linux 0.7. Senior Engineer of study 2
It is difficult to compile in standard mode under Debian. However, I think Debian compilation method is not as good as standard side.
Easy to use. I failed to compile the program twice during the holidays, and I tried Debian. After installing the kernel, I will
Clear my Windows options. After the holiday is over, compile again and compile again twice.
Error
VFS: Connot open root device "hda12" or unknown-block (0, 0)
Kernel panic -- not syncing: VFS: Uable to mount root fs on unknown-block (0, 0)
VFS is a logical transition layer for communication between underlying physical devices and upper-layer users. Provided by netizens
Solution:
Cause 1: The ext2 file format is not compiled into the kernel. Whether you use ext3 or other file formats, ext2 supports both
It must be directly compiled into the kernel and cannot be compiled in the form of a kernel module.
Cause 2: If you use initrd. img to start the system, cromfs must compile
I didn't find the cromfs configuration, But I compiled all the ATA/IDE/SATA/SCSI options into the kernel.
But now I don't know why.
The annoyance of kernel compilation is that there are many options to be selected for each configuration, and many options do not know what to use.
What will happen in the future? My brother told me that many seemingly unrelated options cannot be started after they are removed. I also use
The QT library and GTK library cannot be installed in the hiweed debian version. I posted a post on the Forum and did not offer any results.
I searched for the interface without relevant information. I used to despise the ugly interface of red hat, And now I envy red hat's
This is convenient. You only need to select the Gnome Development Kit during installation. In addition, there is little information about the 2.6 kernel configuration.
However, if you have any worries, you must be happy. After all, you have a sense of accomplishment in compiling your own kernel. I have not compiled many useless modules into the kernel.
It is much faster. It's my kernel! Select Frame Buffer, so that in Terminal
In the text mode, you can use zhcon to display Chinese characters and select Embed fonts. This will make the interface beautiful at startup.
Many of them will show penguins. Even the startup interface of the Self-compiled kernel beautifies the remaining thing: Read the source code.
Understand linux.
To a deeper understanding of the operating system.
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