Build the debian kernel source code tree under vmware

Source: Internet
Author: User
Build the debian kernel source code tree under vmware-Linux Release Technology-Debian information. The following is a detailed description. To thoroughly study the linux driver, start learning again. We recommend that you use a linux operating system for driver and kernel development if you have to use virtual machines.

1 download

# Apt-cache query linux-source-2.6.18

# Apt-get install linux-source-2.6.18

The downloaded file is in the/usr/src directory and decompressed into a folder with the same kernel as the current operating system.

# Uname-r

# Tar jxvf linux-source-2.6.18.tar.bz2 xxxxxx

2 compile

# Make clean

Clear the remaining temporary files for Kernel compilation.

# Make oldconfig

Use the current configuration to build the. config configuration table, or make menuconfig.

# Make bzImage

After the kernel is compiled, a new file vmlinux is generated in the current directory. About an hour.

# Make modules

Compile the module.

# Make modules_install

Install the module.

3 restart

# Reboot

Note: To upgrade the kernel, you must install initrd-tools before compiling the kernel, and then run make install after make modules_install.

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.