Sony Vaio SR13

This article is will show you how to installing Gentoo amd64 on Sony Vaio SR13 laptop.

Hardware Deployment
CPU:                          Intel Centrino2 P8400 DDR:                          1G HardDisk:                     Hitachi 160G SATA

Graphic Controller:           Intel GM4500HD Audio Controller:             Realtek High Definition Audio SATA Controller:              Intel(R) ICH9M-E/M SATA AHCI Controller Ether Controller:             Marvell Yukon 88E8040 PCI-E Fast Ethernet Controller WiFi Controller:              Intel Wireless WiFi Link 5100

TouchPad:                     Synaptics PS/2 Port TouchPad Webcam:                       Sony Visual Communication Camera

Kernel Configuration
You must use the gentoo-sources-2.6.27-r8 or later version which with serial patches for i915 graphic controller that let your machine display work, unless you don't mind your system without GUI. Now the version 2.6.28-r3 of gentoo-sources has been mask by ~amd64, then:


 * 1) echo "sys-kernel/gentoo-sources ~amd64" >> /etc/portage/package.keywords

make sure the bellow subsection of kernel configuration is appropriate.

for amd64 kernel
CONFIG_X86_VSMP=Y Processor type and features ---> Subarchitecture Type (Support for ScaleMP vSMP) ---> (X) Support for ScaleMP vSMP Processor type and features  --->

(for x86 kernel)
CONFIG_X86_PC=Y Processor type and features ---> Subarchitecture Type (Support for ScaleMP vSMP) ---> (X) PC-compatible

Processor Type
CONFIG_MCORE2=Y Processor family (Core 2/newer Xeon) ---> (X) Core 2/newer Xeon

Maxim number of CPUs
CONFIG_NR_CPUS=2 (2) Maximum number of CPUs (2-512)

MTRR
Important relevant for graphic card. [*] MTRR (Memory Type Range Register) support [ ]  MTRR cleanup support [*]  x86 PAT support

Power management and ACPI options
[*] Power Management support [*]  Power Management Debug Support [ ]    Verbose Power Management debugging [*] Suspend/resume event tracing [*] Suspend to RAM and standby [ ]  Test suspend/resume and wakealarm during bootup [*] Hibernation (aka 'suspend to disk') Default resume partition [*] ACPI (Advanced Configuration and Power Interface) Support ---> [*]  Deprecated /proc/acpi files [*]  Deprecated power /proc/acpi directories [*]  Future power /sys interface [*]  Deprecated /proc/acpi/event support <*>  AC Adapter <*>  Battery <*>  Button <*>  Fan -*-  Dock <*>  Processor <*>    Thermal Zone -*-  NUMA support < >  WMI (EXPERIMENTAL) < >  ASUS/Medion Laptop Extras < >  Toshiba Laptop Extras <>   Debug Statements < >  PCI slot detection driver -*-  ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL) < >  Smart Battery System CPU Frequency scaling ---> [*] CPU idle PM support Memory power savings --->

Bus Option
Bus options (PCI etc.) ---> [*] PCI support [*]  Support mmconfig PCI config space access [*] Support for DMA Remapping Devices (EXPERIMENTAL) [*]  Support for Graphics workaround [ ] Support for Interrupt Remapping (EXPERIMENTAL) [*] PCI Express support < >  PCI Express Hotplug driver [*]  Root Port Advanced Error Reporting support [ ]  PCI Express ASPM support(Experimental) [*] Message Signaled Interrupts (MSI and MSI-X) [ ] Enable deprecated pci_find_* API [*] Interrupts on hypertransport devices <*> PCCard (PCMCIA/CardBus) support ---> <*> Support for PCI Hotplug --->

Bluetooth
TODO: ...

Wireless
[*] Networking support ---> Wireless ---> -*- Improved wireless configuration API [*]  nl80211 new netlink interface support -*- Wireless extensions [*]  Wireless extensions sysfs files <*> Generic IEEE 802.11 Networking Stack (mac80211) Rate control algorithm selection ---> [ ]  Enable mac80211 mesh networking (pre-802.11s) support [*]  Enable LED triggers

Block Devices
[*] Block devices ---> <*>  Loopback device support

SATA
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers ---> [*]  ATA ACPI Support [*]  SATA Port Multiplier support <*>  AHCI SATA support [*]  ATA SFF support <*>    Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support

Ether
[*] Network device support ---> [*]  Ethernet (1000 Mbit)  ---> <*>  SysKonnect Yukon2 support

Wifi
Wireless LAN ---> [*] Wireless LAN (IEEE 802.11) -*- Intel Wireless Wifi Core <*> Intel Wireless WiFi Next Gen AGN [*]  Intel Wireless WiFi 5000AGN

Video Card
Graphics support ---> -*- /dev/agpgart (AGP Support) ---> <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> <*>  Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  ---> [*] Backlight & LCD device support ---> <*>  Lowlevel Backlight controls

Sound Card
<*> Sound card support ---> <*>  Advanced Linux Sound Architecture  ---> <*>  Sequencer support <*>    Sequencer dummy client <*>  OSS Mixer API <*>  OSS PCM (digital audio) API [*]    OSS PCM (digital audio) API - Include plugin system [*]  OSS Sequencer API [*]  Dynamic device file minor numbers [*]  Support old ALSA API [*]  Verbose procfs contents [*]  PCI sound devices  ---> <*>  Intel HD Audio [*]    Build Realtek HD-audio codec support

MMC and SD Card
<*> MMC/SD card support ---> [ ]  MMC debugging [ ]  Allow unsafe resume (DANGEROUS) *** MMC/SD Card Drivers *** <*>  MMC block device driver [*]    Use bounce buffer for simple hosts < >  SDIO UART/GPS class support < >  MMC host test driver *** MMC/SD Host Controller Drivers *** <*>  Secure Digital Host Controller Interface support <*>    SDHCI support on PCI bus <*>      Ricoh MMC Controller Disabler  (EXPERIMENTAL) < >  Winbond W83L51xD SD/MMC Card Interface support < >  TI Flash Media MMC/SD Interface support  (EXPERIMENTAL) <*>  MMC/SD driver for Ricoh Bay1Controllers (EXPERIMENTAL)

Configuring Portage
/etc/make.conf : CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}"
 * 1) These settings were set by the catalyst build script that automatically
 * 2) built this stage.
 * 3) Please consult /etc/make.conf.example for a more detailed example.

CHOST="x86_64-pc-linux-gnu"
 * 1) WARNING: Changing your CHOST is not something that should be done lightly.
 * 2) Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

USE="-qt -qt3 -qt4 -kde -java -fortran -art -doc \ dri X gtk gnome mmx sse sse2 ctags cscope alsa dvd mesa opengl \ tk threads glibc-omitfp jpeg png tiff gif xulrunner acpi cairo"
 * 1) These are the USE flags that were used in addition to what is provided by the
 * 2) profile used for building.

MAKEOPTS="-j3" FEATURES="ccache parallel-fetch" ALSA_CARDS="hda-intel" VIDEO_CARDS="intel" INPUT_DEVICES="keyboard mouse"

configure glibc locales : en_US ISO-8859-1 en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 zh_CN GB2312 zh_CN.GB18030 GB18030 zh_CN.GBK GBK EOF
 * 1) cat >> /etc/locale.gen <<EOF

Xorg
Now the newest set of X11 revelant packages have become stable, you just need to install xorg-server with command:
 * 1) emerge xorg-x11

and after then, generate the xorg.conf:
 * 1) xorgcfg
 * 2) mv xorg.conf.new /etc/X11/xorg.conf

NOTE: Now, xorg-server version 1.5.x can detect any thing for you, the better choice that we let the X server running without xorg.conf.
 * 1) mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
 * 2) startx

For WPA access point
emerge the WPA control tool:
 * 1) emerge wpa_supplicant wireless-tools

emerge intel Wireless WiFi Link 5100/5300 ucode
 * 1) emerge iwl5000-ucode

Active your intel5100 wireless network controller:
 * 1) ifconfig wlan0 up

Scan the access point that you can touch:
 * 1) iwlist wlan0 scanning | grep ESSID

Generate the WPA configure file:
 * 1) wpa_passphrase "essid" "password" > /etc/wpa_supplicant/wpa_supplicant.conf

connect the access point:
 * 1) wpa_supplicant -D wext -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

check the connecting successful:
 * 1) iwconfig wlan0

Option 1: Use statics IP
configure the TCP/IP for wireless device:
 * 1) ifconfig wlan0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
 * 2) route add default gw 192.168.1.1

Option 2: Use dynamic IP

 * 1) emerge dhcpcd
 * 2) dhcpcd wlan0