Linux kernel configuration and compilation process
Source: Internet
Author: User
Procedures related to Linux kernel configuration and compilation 1. clear temporary files, intermediate files, and configuration files. makeclean does not delete configuration files. Makemrpropermakedistclean: delete the edited backup file and patch file... information & nbsp; | & Linux kernel configuration and compilation process 1. clear temporary files, intermediate files, and configuration files. make clean does not delete configuration files. Make mrproper make distclean delete edited backup files, patch files, etc. 2. determine the hardware and software configurations of the target system, such as the CPU type, network card model, and the network protocol to be supported. 3. run the command to configure the interaction configuration of kernel make config in text mode. Make menuconfig is a text-based menu configuration. Make oldconfig uses an existing configuration file (. config), but will ask about the new configuration options. Make xconfig graphical configuration (a graphical system needs to be installed ). 4. differences between compiling the kernel make zImage make bzImage: on the X86 platform, zImage can only be used for the light rain k kernel. If you need to obtain detailed compilation information, add V = 1. the compiled kernel is located in arch/ /Boot/directory. 5. Compile the kernel module make modues 6. install the kernel module make modues_install to copy the compiled kernel module from the kernel source code directory to/lib/modues. 7. create init ramdisk mkinitrd $ initrd-$ version kernel installation (X86) 1. cp arch/X86/boot/bzImage/boot/vmliuz-$ version 2, cp $ initrd/boot/3, and etc/grub. conf or/etc/lilo. conf $ version indicates the compiled kernel version.
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