Recommended Method for compiling the kernel (equivalent to debian)
Source: Internet
Author: User
Recommended kernel compilation methods (similar to debian)-General Linux technology-Linux programming and kernel information. For details, see the following. Traditional debian methods:
Apt-get install linux-source
Tar zxvf/usr/src/linux-source-1_version.tar.gz
Cd linux-source-$ version
Make menuconfig
Make-kpkg ......
Cd ..
Dpkg-I *. deb
This method has been used for a long time and is the Orthodox debian method. However, it does not mean that there are no shortcomings in the long history.
1. If you do not have a debian patch set, it is very difficult to create one by yourself.
2. The degree of integration is different from that of the original system.
3. Unlike standard dpkg-buildpackage
4. It is not the same as the original kernel in the system, so it is inconvenient for external peripherals such as restricted-modules.
Ubuntu kernel compilation method:
Apt-get source linux-source-2.6.22
Cd linux-source-2.6.22-2.6.22/
Edit debian/config/i386/{config | config. generic} Two files // equivalent to make menuconfig; config is public configuration for all deb, generic is only valid for deb of generic
Debian/scripts/misc/oldconfig generic // check the integrity of the generic config
AUTOBUILD = 1 NOEXTRAS = 1 fakeroot debian/rules binary-debs flavors = generic // generate only the generic package
Cd ..
Dpkg-I *. deb
Linux-source-2.6.22 can be a source package to compile n types of architecture packages, but we generally customize the kernel will only need one of them for us.
The kernel compiled in this way is different from the kernel that comes with the system except that you modify it in the config file. All patches are automatically loaded by the dpkg system when the package is unwrapped. The idea is also a standard diff.gz file, which is exactly the same as a common deb source package.
Compilation is pleasant. A compilation space of more than 1 GB.
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