Linux Kernel Configuration and compilation
One. Configuring the Kernel
(1). Why to configure the kernel
1. Hardware Requirements
2. Software Requirements
Pick what you need and get rid of it.
(2). How to configure the kernel
1. Make Config
Interactive configuration based on text mode
2. Make Menuconfig
Menu-based configuration with text mode
Advantages: Intuitive, simple, efficient
< > Do not select this feature
<m> kernel module is not ready to use the B.O file to be stored on the hard disk, need to add to the memory. Save Memory
<*>B.O files are stored in memory and can be used anytime, anywhere.
(3). Kernel Configuration Results
ls-a Command View configuration results, save in kernel
Two. Compiling the kernel
(1). Compile kernel----<*>
1.make Zimage
2.make Bzimage
* Difference: On X86 platform, Zimage can only be used for cores less than 512K
* For detailed compilation information, you can use:
#make Zimage V=1
#make Bzimage V=1
* * The compiled kernel is located in the arch/<cpu>/boot/directory * *
(2). Compile kernel module----<M>
Make modules compilation
(3). Making RAMDisk
Three. Installing the kernel
Four. Clean up the kernel
1. Makeclean
2. Makedisclean
Linux Kernel Configuration and compilation