3/05/2007

gentoo on ibm T42<参考>

/etc/make.conf :
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
DISTCC_HOSTS="localhost "
FEATURES="distcc"
LDFLAGS="-Wl,-O2"
MAKEOPTS="-j2"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="ftp://ftp.kaist.ac.kr/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/"

===============================
配置 hdparm 可以让你安装快 1.5 倍
/etc/conf.d/hdparm :
disc0_args="-d1 -X66"
cdrom0_args="-d1"

加入服务 :
rc-update add hdparm default
使得开机后自动启动 :
/etc/init.d/hdparm start

===============================
Kernel config:
比较特別的设定
Code maturity level options :
[*] Prompt for development and/or incomplete code/drivers

(Pentium-4) Processor family
<*> /dev/cpu/microcode - Intel IA32 CPU microcode support
[ ] Math emulation // 去掉
[*] MTRR (Memory Type Range Register) support
[ ] Symmetric multi-processing support // 这个一定要去掉
[*] Local APIC support on uniprocessors
[*] IO-APIC support on uniprocessors

[*] Power Management support
<*> Advanced Power Management BIOS support
[*] Allow interrupts during APM BIOS calls // IBM thinkpad 要用
[*] ACPI Support
<*> AC Adapter
<*> Battery

<*> IEEE 1394 (FireWire) support (EXPERIMENTAL)
<*> Texas Instruments PCILynx support
<*> OHCI-1394 support

Network device support --->
<*> EtherExpressPro/100 support (eepro100, original Becker driver
Input core support ---> 全选

Character devices ---> I2C 要选,不然 IEEE 1394 不能 work
<*> I2C support
<*> I2C bit-banging interfaces
<*> I2C device interface
<*> I2C /proc interface (required for hardware sensors)

[ ] Unix98 PTY support // 去掉

<*> Mouse Support (not serial and bus mice)
[*] PS/2 mouse (aka "auxiliary device") support

File systems ---> // 看你用了那个
<*> Ext3 journalling file system support
< > NTFS file system support (read only)
[*] /proc file system support
[*] /dev file system support (EXPERIMENTAL)
[*] Automatically mount at boot
<*> Second extended fs support
/pty98 不可以選

Sound card support // sound 我只选这个,其他的我用 alsa

USB support --->
<*> Support for USB
[*] Preliminary USB device filesystem
<*> EHCI HCD (USB 2.0) support (EXPERIMENTAL)
<*> UHCI Alternate Driver (JE) support
<*> OHCI (Compaq, iMacs, OPTi, SiS, ALi, ...) support
<*> USB Human Interface Device (full HID) support
[*] HID input layer support

bluetooth // up to you

save config 之後
make dep bzImage modules modules_install

===============================
env ALSA_CARD="intel8x0" emerge alsa-driver

在 make alsa_driver 的同時,你可以把 boot loader 裝好
cd /usr/src/linux
cp System.map /boot
cp arch/i386/boot/bzImage /boot

===============================
http://www.gentoo.org/
http://www.linux-laptop.net/
http://furius.ca/techdoc/misc/thinkpad.html (T42)
http://www.y3m.net/docs/gentoo-on-t42/

没有评论: