VMWare编译linux内核

用VMWare编译linux内核的注意事项:

1) 如果你在vmware下重新编译内核,硬盘用的是scsi的,以下选项必选:(或者使用IDE的硬盘)
Device Drivers  --->;
SCSI device support  --->;
<*>;   SCSI disk support
Device Drivers  --->;
SCSI device support  --->;
SCSI low-level drivers  --->; 
<*>; BusLogic SCSI support

2) Device Drivers  --->; 
Fusion MPT device support  --->;
; Fusion MPT (base + ScsiHost) drivers
; Fusion MPT misc device (ioctl) driver(这个要不要,不确定)

3) 编译过程
make menuconfig
make dep (2.6不需要)
make bzImage 
make modules
make modules_install
make install

3) make bzImage报image too big
把sound,usb选为modules, 或去掉一些不需要的选项.

4) make install得到以下warnning
WARNING: No module mptbase found for kernel 2.4.26, continuing anyway
WARNING: No module mptscsih found for kernel 2.4.26, continuing anyway
make[1]: Leaving directory `/usr/src/linux-2.4.26/arch/i386/boot'

5) 如果文件系统挂不上或 "unable open initial console"
原因是root的启动选项没有设置对. root=LABEL=/ 改为 root=/dev/hda1
具体, 可以使用ls /etc/fstab 和 df命令来确定你的root目录挂在哪里.
注意:每次修改lilo.conf, 都要使用/sbin/lilo命令更新一下, 否则修改内存不会生效


你可能感兴趣的:(linux,support)