make mrproper (該命令可確保源代碼目錄下沒有不正確的.o文件)
make menuconfig (配置內核各選項)
/******************照網上文章做,大部分默認已經選上***********************/
(1)Loadable Module support選項中,選上“Module unloading”和“Automatic kernel module loading”這兩項;
(2)Device Drivers--->Block Devices中選上“Loopback device support”;
Device Drivers--->Multi-device support(RAID and LVM)處要選上“device mapper support”;
Device Drivers--->Graphics support,一定要選上“ Support for buffer devices”;
Device Drivers --->USB support --->選上“USB Mass Storage support”(如果是在實環境中,想要更多USB支持,就全選吧。我的是在虛擬機中,用不着了)
Device Drivers --->;Network device support --->Ethernet (10 or 100Mbit) ---><*> AMD PCnet32 PCI support
(3)File system--->(以下9個選項是關於ext2和ext3文件系統配置,全部選上)
Second extended fs support
Ext2 extended attributes
Ext2 POSIX Access Control Lists
Ext2 Security Labels
Ext3 journalling file system support
Ext3 extended attributes
Ext3 POSIX Access Control Lists
Ext3 Security Labels
JBB (ext3) debugging support
File system--->DOS/FAT/NT Filesystems --->選上“NTFS file system support”;
/**************************************************/
make bzImage (注意大小寫。這一步纔是真正編譯內核)
make modules (編譯可加載模塊)
make modules_install (安裝可加載模塊)
make install (安裝新內核)
看到
Running DKMS auto installation service for kernel 2.6.38