Depmod-a-version the use of compiling in the kernel source code

Source: Internet
Author: User

According to the compilation process in the book, there is never a reminder of the need to use the DEPMOD directive, nor does it indicate the need to use make DEP, and many times, if we do not search for detailed information, I am afraid we will not compile the kernel correctly.

Ask the following questions:

    1. If you need to regenerate the. config file by using make Menuconfig to remove some of the compiled modules, make DEP with the following directives

      Result: Warning:this is not unnesscery present in the process of execution

    2. In fact, we still refer to the config file in the original system, the configuration file is placed in/boot/config-' Uname-r ',

    3. According to the information provided by Redhat website, in general, we modify the kernel version, in the case of Extended version, add its own version number, such as Extion_version=e12.

    4. One thing that needs to be explained is why MKINITRD is not packaged/lib/module the following modules:

    5. Make Mrproper
      Edit Makefile File
      Change the extraversion= to a text that has your own characteristics, such as:
      Extraversion=-10me
      Make menuconfig or make Xconfig
      Make DEP
      Make Bzimage
      Make modules
      Make Modules_install
      CP System.map/boot/system.map-2.4.7-10me
      CP Arch/i386/boot/bzimage/boot/vmlinuz-2.4.7-10me
      New-kernel-pkg--install--mkinitrd--depmod 2.4.7-10me

    6. Excerpt from: http://www.jb51.net/LINUXjishu/10882.html

Depmod-a-version the use of compiling in the kernel source code

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.