Articles tagged t61

install osx on thinkpad t61
Dorren_mii_thumb by dorren, 11/16/2008
lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation Mobile IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Mobile SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0429 (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
15:00.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.3 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 11)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)

lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 007 Device 001: ID 0000:0000  
Bus 006 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. 
Bus 003 Device 001: ID 0000:0000   

uname -a
Linux think 2.6.23-gentoo-r8 #8 SMP Wed Apr 2 15:30:54 EDT 2008 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux

nvidia-settings
video: Quadro NVS 140M, 
VBIOS: 60.86.3e.00.00
PBus Type: CI Express 16X
Views: 751   Replies: 1   Last Reply: ucsblaw, 03/30/2009.     Tags: mac, t61
Install gentoo on thinkpad T61
Dorren_mii_thumb by dorren, 02/19/2008

Backup

use gparted-clonezilla to backup existing hard drive. It took about 20 minutes to backup the 6.3GB recovery partition, and another 20 minutes to backup 18GB vista partition.

Do not try to shrink vista partition in gparted, it doesn't work. won't boot. Shrink volume in vista instead.

install gentoo

boot from amd64-livecd
f1
gentoo nox

# change root password
passwd
YOUR_PASSWORD
YOUR_PASSWORD

/etc/init.d/sshd start


prepare disk

# use fdisk to remove all partitions
# then use cfdisk to create partitions, like below
cfdisk /dev/sda
sda1 boot  primary linux   100MB
sda2       primary swap   2046MB
sda3       logical linux 70000MB

mke2fs /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkreiserfs /dev/sda3

mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot

date 021716412008

install initial files

cd /mnt/gentoo

# download stage3
wget http://www.gtlib.gatech.edu/pub/gentoo/releases/amd64/current/stages/stage3-amd64-2007.0.tar.bz2
tar xvjpf stage3-amd64-2007.0.tar.bz2

# download portage
wget http://www.gtlib.gatech.edu/pub/gentoo/snapshots/portage-latest.tar.bz2
tar xvjf portage-latest.tar.bz2 -C /mnt/gentoo/usr

nano etc/make.conf
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j4"

USE="alsa arts bitmap-fonts cdr cjk doc dvd imap immqt-bc maildir mysql \
     nls nptl nptlonly openal opengl oss ruby sdl ssl symlink \
     truetype-fonts type1-fonts unicode vhosts xv zlib"

VIDEO_CARDS="vesa vmware"
INPUT_DEVICES="keyboard mouse"

cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

emerge --sync


nano -w /etc/locale.gen
# uncomment us locale

ls /usr/share/zoneinfo
cp /usr/share/zoneinfo/US/Eastern /etc/localtime



compile kernel

unable to get 2.6.24 to work, used 2.6.23-r8.

nano -w /etc/portage/package.keywords
# add this line
sys-kernel/gentoo-sources

emerge gentoo-sources
cd /usr/src/linux
make menuconfig

Enable loadable module support
  [*]   Module unloading          
  [ ]   Module versioning support 
  [ ]   Source checksum for all modules 
  [*]   Automatic kernel module loading 
  
Processor type and features
  Processor family 
    Intel Core2 / newer Xeon

Networking --->
	Wireless ---> 
		<*>	Generic IEEE 802.11 Networking Stack (mac80211)

make && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.24-gentoo-r2

file mount

nano /etc/fstab
/dev/sda1               /boot           ext2            defaults,noatime        1 2
/dev/sda2               none            swap            sw              0 0
/dev/sda3               /               reiserfs        noatime         0 1
/dev/cdrom              /mnt/cdrom      audo            auto,ro         0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


nano -w /etc/conf.d/hostname, 
# change name to "think"

rc-update add net.eth0 default

# set root password
passwd

nano -w /etc/conf.d/clock
# change it to local
CLOCK="local"

basic system tools

emerge syslog-ng
rc-update add syslog-ng default
emerge dcron
rc-update add dcron default



grub

emerge grub
emerge --config =grub-0.97-r3
* Enter the directory where you want to setup grub:
/boot
cp grub.conf.sample grub.conf

timeout 30
default 0
fallback 1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo (2.6.23-gentoo-r8)
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r8 root=/dev/sda3

title=Gentoo (2.6.23-gentoo-r8 rescue)
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r8 root=/dev/sda3 init=/bin/bb
grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/sda



# exit
cdimage ~# cd
cdimage ~# umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot


kernel panic

mount /dev/sda3 /mnt/gentoo && mount /dev/sda1 /mnt/gentoo/boot
chroot /mnt/gentoo /bin/bash

date 021718162008

# assure these are checked
CONFIG_SATA_AHCI=y
CONFIG_SATA_NV=y

make && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.24-gentoo-r2


after boot

useradd -m -G users,wheel,audio -s /bin/bash dchen
rc-update add sshd default

emerge gentoolkit


wifi

emerge net-wireless/wpa_supplicant
emerge net-wireless/iwlwifi
emerge net-wireless/wireless-tools

# find your wifi device name
iwconfig


vim /etc/conf.d/net
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"   # wext is generic wifi driver
vim /etc/wpa_supplicant/wpa_supplicant.conf

# router with WEP authentication
network={
        ssid="router_ssid"
        key_mgmt=NONE
        wep_key0=1234567890
        wep_tx_keyidx=0
        priority=1
}

network={
	ssid="your_router_name"
	key_mgmt=NONE
	priority=-9999999
}

cd /etc/init.d
ln -s net.lo net.wlan0
/etc/init.d/net.wlan0 start

video

For the longest time, I couldn't get the nvidia 140m card to work, and can only use default nv driver, then I found in the /var/log/Xorg.0.log, libwfb.so is missing. That's because the package I installed, nvidia-drivers-169.09-r1 is missing that required file. Following this direction, finally i got glxgears to run at 4183FPS.

so just unpack the older version of nvidia-drivers, and copy that file to right location.

ebuild /usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild unpack
cp /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.11/work/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/X11R6/lib/modules/libnvidia-wfb.so.100.14.11 /usr/lib/xorg/modules/libwfb.so

Chinese Input

emerge scim # with gtk and qt3 flag
# whem scim finish emerging, it has some additional instructions.
 * 
 * To use SCIM with both GTK2 and XIM, you should use the following
 * in your user startup scripts such as .gnomerc or .xinitrc:
 * 
 * LANG='your_language' scim -d
 * export XMODIFIERS=@im=SCIM
 * export GTK_IM_MODULE="scim"
 * export QT_IM_MODULE="scim"
 * 
 * where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other
 * UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8
 * 
 * If you prefer KDE/Qt interface, try emerge app-i18n/skim.
 * 
 * To use Chinese input methods:
 * 	# emerge app-i18n/scim-tables app-i18n/scim-pinyin
 * To use Korean input methods:
 * 	# emerge app-i18n/scim-hangul
 * To use Japanese input methods:
 * 	# emerge app-i18n/scim-anthy
 * To use various input methods (more than 30 languages):
 * 	# emerge app-i18n/scim-m17n


vim ~/.xinitrc
LANG='zh_CN.GB2312' scim -d
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
exec startxfce4

emerge app-i18n/scim-tables app-i18n/scim-pinyin

ctrl-alt-backspace to exit X window, then restart x, then it should work.

Think finger

yes it works.
Follow the guide on Thinkwiki.

But to enable it, kernel has to has "CONFIG_INPUT_UINPUT=y", which you can find in
 Device Drivers  --->
   Input device support  ---> 
     Miscellaneous devices  ---> 
<*>    User level driver support


Reference

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4
Views: 4444   Replies: 1   Last Reply: rory, 06/12/2008.     Tags: gentoo, t61
 




login or sign up to participate.
Money_dollar moneywill