针对Intel Core i7优化安装Gentoo

Posted by Elton's Blog on July 8, 2009

要让Core i7处理器在gentoo里工作得正常需要从3个方面来设置。下面我一一来说明。

  1. CFlag

Core i7的信息 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz /etc/make.conf内容

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CXXFLAGS="${CFLAGS}"

2, Kernel Setup

Processor type and features  --->
    Subarchitecture Type ()  --->
        (X) PC-compatible
    Processor family ()  --->
        (X) Pentium M
    [ ] Generic x86 support
    [*] Supported processor vendors ---->
        [*]   Support Intel processors

填写你的CPU核数

Processor type and features  --->
    [*] Symmetric multi-processing support
    (8) Maximum number of CPUs (2-256)
    [ ] SMT (Hyperthreading) scheduler support
    [*] Multi-core scheduler support

支持64位CPU

Processor type and features  --->
    -- Machine check support
    [*] Intel MCE features
Executable file formats / Emulations  --->
    [*] IA32 Emulation
  1. Hardware Sensors 增加硬件监控
Device Drivers  --->
    Hardware Monitoring support  --->
         Hardware Monitoring support
         Intel Core (2) Duo/Solo temperature sensor
</pre>