在vmware上安装gentoo-下(编译内核)
gentoo、Linux from Scratch折腾过好几回,全部死在内核编译上。。
今天终于成功了。。。
每次的问题都是重启之后文件系统错误,这次虽然成功了,但是仍然不是很明白问题的关键
一、vmware的创建virtual machine时候的配置
1、网络使用桥接方式
2、i/o adapter types :scsi adapter之 LSI logic
3、vitual disk type : scsi
二、install-x86-minimal-20101123.iso的配置(我安装了两个gentoo)
选择正确的处理器类别
Processor type and features --->
(Change according to your system)
(Athlon/Duron/K7) Processor family
选择需要的文件系统
File systems --->
Pseudofilesystems --->
<*> /proc file system support
< > /proc/kcore support
<*> Sysctl support(/proc/sys)
<*> sysfs file system support
<*> Virtual memory file system support (former shm fs)
!!! ext3 reiserfs 什么的自己选了(注意ext2默认没有选中,注意选上。而且必须编译到内核中,不能是模块的形式)
启用 SMP 支持
Processor type and features --->
[*]Symmetric multi-processing support
注意: 在多核心系统中,处理器的数目相当于核心的数目。
启用 USB 接口的输入设备支持
Device Drivers --->
[*]HID Devices--->
<*> USB Human InterfaceDevice (full HID) support
Loadable module support --->
[*]Enable loadable module support
[*] Module unloading
[*] Automatic kernel module loading
Bus options (PCI etc.) ---> [*] PCI Support
[*]ISA Support
DeviceDrivers --->
Fusion MPT device support --->
(这个除了最后一个,其他的都设置成*,而不是M)
DeviceDrivers --->
SCSI device support --->
<*> SCSI device support
<*> SCSI disk support
SCSI low-level drivers --->
<*> SYM53C8XX Version 2 SCSI support
Device Drivers --->
SCSIdevice support --->
<*> SCSI device support
<*> SCSI disk support
SCSI low-level drivers --->
<*> BusLogic SCSI support
Device Drivers --->
ATA/ATAPI/MFM/RLL support --->
<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
<*> Include IDE/ATAPICDROM support
[*] PCI IDE chipset support
[*] Generic PCI bus-master DMAsupport(这个没有找到)
<*> Intel PIIXn chipsets support
DeviceDrivers--->
<*>Fusion MPT device support--->
<*>Fusion MPT (base + ScsiHost) drivers
<*>Fusion MPT miscdevice (ioctl) driver(这个不确定) (这个是网上给出的说明,但是我所编译的内核没有这些选项,我把DeviceDrivers---> Fusion MPT device support--->除了最后一个,别的全部选中。这篇博客http://space.doit.com.cn/45811 /viewspace-1998.html说必须设置成模块方式,但是我没有这么做,我编译到内核之中了)
File systems --->
CD-ROM/DVD Filesystems --->
<*> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROMextensions
Networking --->
[*]Networking support
Networking options ---> <*> Packet socket
<*> Unix domain sockets
[*] TCP/IP networking
Device Drivers --->
Network Device support --->
[*] Network device support
Ethernet (1000Mbit) --->
[*] Intel(R) PRO/1000 Gigabit Ethernet support
Device Drivers --->
Network Device support --->
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
[*] EISA, VLB, PCI and on board controllers
<*> AMD PCnet32 PCIsupport
三、livedvd-x86-amd64-32ul-10.1.iso的配置
别的都同上边的一样,就是
Device Drivers ---> SCSI device support ---> <*> SCSI device support SCSI low-level drivers ---> <*> BusLogic SCSI support(这一项网上有的说不能选,所以没有选中)
参考:
http://wenku.baidu.com/view/258763768e9951e79b8927f1.html(最好)
http://space.doit.com.cn/45811/viewspace-1998.html
http://hi.baidu.com/joyfun/blog/item/4554c2fdb0fb9145d7887df6.html