上次提到了無線網絡,現在來說一下intel的雙核處理器Core2 Duo/Solo在gentoo安裝中的設置。要讓Core 2 Duo/Solo處理器在gentoo裡工作得正常需要從5個方面來設置。下面我一一來說明。
相關閱讀:
Gentoo 安裝之intel無線網卡篇 http://www.linuxidc.com/Linux/2012-03/56744.htm
Gentoo 安裝之intel Core2 CPU篇 http://www.linuxidc.com/Linux/2012-03/56745.htm
Gentoo 安裝之intel GMA顯卡篇 http://www.linuxidc.com/Linux/2012-03/56745.htm
1.Cflags
Intel Core 2 Duo/Quad / Xeon 51xx/53xx, Pentium Dual-Core T23xx+/Exxxx的硬件信息為:
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU XXXX @ XXXGHz
對於32bit的系統,安全的Cflags是這樣的:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
對於64bit的系統,安全的Cflags是這樣的:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
2.內核設置
對於所有的Core2系列CPU,你都應該激活下面的選項:
Processor type and features --->如果你的處理器是雙核的,那麼激活這個選項:
Subarchitecture Type () --->
(X) PC-compatible
Processor family () --->
(X) Pentium M
[ ] Generic x86 support
Processor type and features --->如果你的系統是32bit的,那麼激活這個選項:
[*] Symmetric multi-processing support
(2) Maximum number of CPUs (2-256)
[ ] SMT (Hyperthreading) scheduler support
[*] Multi-core scheduler support
Processor type and features --->如果是64bit的,激活這個選項:
[*] Machine Check Exception
< > Check for non-fatal errors on AMD Athlon/Duron / Intel Pentium 4
Processor type and features --->
-- Machine check support
[*] Intel MCE features
Executable file formats / Emulations --->
[*] IA32 Emulation
Power management options --->省電方式(Governor)
ACPI (Advanced Configuration and Power Interface) Support --->
[*] ACPI Support
<*> Processor
CPU Frequency scaling --->
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
[*] CPU frequency translation statistics details
你可以隨時改變你的CPU的省電方式。
Linux Kernel Configuration: governorPower management options --->
CPU Frequency scaling --->
# E.g. for ondemand
<*> 'ondemand' cpufreq policy governor