Compile the Linux kernel-general Linux technology-Linux programming and kernel information. The following is a detailed description. Untar in any sub-directory to unlock the new kernel source code.
Tar xvfz linux-x.x.xx
Rm/usr/src/linux
This is usually a symbolic connection.
Create a symbol under/usr/src/to connect to your new kernel directory.
Ln-s xxx/yyy/xxx/linux. x. x. xx/usr/src/linux
Change the current directory to/usr/src/linux
Cd/usr/src/linux
Become a Super User
Su
Configure the kernel
If you want a graphical interface under X window, you can say:
Make xconfig
If you are not in X Window or do not want to use the graphic interface, you can say:
Make config
Wait a moment after answering the questions one by one. When the prompt or GUI disappears, the system is configured.
Generate a new kernel:
Make dep; make clean
Make zImage
Make sure the case is correct!
If you use a module, you also need to generate and install the module.
Make modules
Make modules-install
Check your/etc/lilo. conf file and use the file in that directory
Image. Example: image =/boot/vmlinuz
Set/usr/src/linux/System. copy map to the/boot directory, copy/usr/src/linux/arch/i386/boot/zImage to the/boot directory, and rename it vmlinuz
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