Standard mode for Debian kernel Compilation

Source: Internet
Author: User
Debian: the standard way to compile the kernel-Debian information for the Linux release. For more information, see the following. The debian installed yesterday does not know why the 885 GB memory is only MB. I searched the internet and found that I had to re-compile the kernel. In this case, I chose to support the large memory option, so I had to compile it, I have never tried this before. I found this standard tutorial on the official website and loaded the latest kernel at kernel.org. (In the following steps, make menuconfig is replaced by make xconfig, because the graphic interface is more friendly)

Standard Debian Mode

Check out the error reports related to kernel-package, gcc, binutils, and modutils. Use a newer version as needed.

Be careful when compiling a custom kernel with source code in the Debian system. It is safer to use the -- append_to_version option of make-kpkg to create multiple kernel images.

# Apt-get install debhelper modutils kernel-package libncurses5-dev
# Apt-get install kernel-source-2.4.18 # use the latest version
# Apt-get install fakeroot
# Vi/etc/kernel-pkg.conf # Enter my name and email
$ Cd/usr/src # create a directory
$ Tar -- bzip2-xvf kernel-source-2.4.18.tar.bz2
$ Cd kernel-source-2.4.18 # If This Is Your kernel source code
$ Cp/boot/config-2.4.18-386. config # set the current configuration to the default configuration
$ Make menuconfig # customized according to your preferences
$ Make-kpkg clean # You must perform this step (per: man make-kpkg)
$ Fakeroot make-kpkg -- append_to_version-486 -- initrd -- revision = rev.01 kernel_image modules_image # modules_image can be pcmcia-cs.
$ Cd ..
# Dpkg-I kernel-image *. deb pcmcia-cs *. deb # Installation

Make-kpkg kernel_image actually executes make oldconfig and make dep. If you do not use initrd, do not use the -- initrd option.

If you want to load a module that does not exist in the pcmcia-cs module or the kernel pcmcia source code, select "General setup->" After make menuconfig to go to "PCMCIA/carw.support-> ", configure the <> PCMCIA/carw.support option (for example, cancel the option ).

For SMP machines, set CONCURRENCY_LEVEL as described in kernel-pkg.conf (5.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.