Debian Linux kernel compilation Standard mode

Source: Internet
Author: User
Debian Linux system kernel compilation Standard mode introduction, read Debian Linux system kernel compilation Standard mode introduction, Debian standard

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.

Related Article

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.