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.