VMWare編譯linux內(nèi)核的注意事項
用VMWare編譯linux內(nèi)核的注意事項:
1) 如果你在vmware下重新編譯內(nèi)核,硬盤用的是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 --->;
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) 如果文件系統(tǒng)掛不上或 "unable open initial console"
原因是root的啟動選項沒有設(shè)置對. root=LABEL=/ 改為 root=/dev/hda1
具體, 可以使用ls /etc/fstab 和 df命令來確定你的root目錄掛在哪里.
注意:每次修改lilo.conf, 都要使用/sbin/lilo命令更新一下, 否則修改內(nèi)存不會生效
這些就是VMWare編譯linux內(nèi)核的注意事項,希望對大家有些幫助。
【編輯推薦】