Search:  
Gentoo Wiki

Sony_Vaio_PCG-R505EL

This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

Contents

Sony Vaio PCG-R505EL

Image:Sony_PCG-R505EL.jpg

This HOW-TO is intended to help you install and configure Gentoo for use on the Sony Vaio PCG-R505EL laptop. PLEASE add to it as you see fit.

NOTE: This is based on installing Gentoo 2006.0 with KDE

TO-DO

Hardware

The Sony Vaio R505EL uses an Intel 82801 to provide PCI Bus, LAN Controller (10/100 Ethernet), IDE Controller, USB, Interrupt Controller, Timers, ACPI, DMA Controller, AC'97 Sound codec, AC'97 Modem, Real-Time Clock, and SMBus. Except for the CPU and memory, this chip is the computer. 82801CAM Technical Specs (Mobile Intel 830 Chipset Family)- PDF

Upgrades

I was able to successfully upgrade the memory to 640Mb by purchasing a SimpleTech 512Mb card

They also sell 80Gb drives to replace the 30Gb standard.

Specifications

[See appendix for complete specs]

Installation

Set the BIOS

Press F2 at startup and make sure Plug'n'Play OS is set to Yes

Boot from LiveCD

Download and burn the Gentoo 2006.0 LiveCD - when ready, boot directly from it.

In order to have access to the CD drive in the docking station for the rest of the install, you will have to enable ACPI and SCSI at least:

boot: gentoo-nofb acpi=on doscsi

Note: No matter what way I set it, it seems impossible to get the LiveCD to start the graphical installer, and even if I tweak xorg.conf, I can still only get 640x480 resolution (too small to see the config screens). Based on LOTS of research, it seems that AGPGART is failing to load because of some memory weirdness with the i810 chipset.

Install Gentoo!

Choose the defaults for all the options until you get to the prompt. Out of common courtesy (and in case I need it again for myself), I'll supplement the entire Gentoo install and note any deviations. Refer to the Gentoo Handbook for our main walkthrough...

Are you sitting comfortably? Then we'll begin.

Configure the Partitions

Follow the Instructions to set up your partitions like this:

Device    Boot Start    End    Blocks   Id  System
/dev/hda1  *       1     63     31720+  83  Linux
/dev/hda2         64   1056    500472   82  Linux swap / Solaris
/dev/hda3       1057  58140  28770336   83  Linux

Note: If you plan on running vmware, now would be a good time to create a 10Gb partition!

Edit make.conf

Assumes KDE

File: /etc/make.conf
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="acpi ieee1394 qt kde dvd alsa cdr dri hal dbus opengl 
firefox usb -gtk -gnome"

Configure the Kernel

First, get to know your machine, intimately - review the lspci output below in Appendix C

NOTE: This is for gentoo-sources Linux Kernel v2.6.16-gentoo-r7 (I would have provided the .config, but this wiki won't support that)

Linux Kernel Configuration: gentoo-sources-2.6.16-r7
-> Loadable module support                                          
  -> Enable loadable module support (MODULES [=y])
    Module unloading
-> Processor type and features                                      
  -> Processor family (<choice> [=y])        
    Pentium M
-> Device Drivers                                                   
  -> Network device support                                        
    -> Ethernet (10 or 100Mbit)                           
      -> EISA, VLB, PCI and on board controllers (NET_PCI [=y])  
        Intel(R) PRO/100+ support
  -> Graphics support   
    Intel 810/815 support (EXPERIMENTAL)
  -> Character devices                                              
    Sony Vaio Programmable I/O Control Device support (EXPERIMENTAL)
    -> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
      Intel I810
    -> /dev/agpgart (AGP Support) (AGP [=y])  
      Intel 440LX/BX/GX, I8xx and E7x05 chipset support
  -> I2C support                                                   
    -> I2C support (I2C [=y])                                      
      -> I2C Hardware Bus support   
        Intel 810/815

Still to be included up there..

Module Autoload

find your modules with the following:

# find /lib/modules/2.6.16-gentoo-r7/ -type f -iname '*.o' -or -iname '*.ko'

/etc/modules.autoload.d/kernel2.6:

# Base
firmware_class
# Net
dummy
s2io
# SCSI
dpt_i2o
ipr
sata_sis
sata_sx4
# USB
touchkitusb
cytherm
phidgetservo
# Video
cfbcopyarea
cfbfillrect
cfbimgblt
fb
i810fb
vgastate
# Libraries
libcrc32c
# Networking
lapb

fstab

/dev/hda1          /boot         ext2    defaults,noatime        1 2
/dev/hda2          none          swap    sw                      0 0
/dev/hda3          /             ext3    noatime                 0 1
/dev/sr0           /mnt/cdrom    auto    noauto,user             0 0
none               /proc         proc    defaults                0 0
none               /dev/shm      tmpfs   nodev,nosuid,noexec     0 0
/dev/fd0           /mnt/floppy   auto    noauto                  0 0
# if you want a USB Drive to work, this will set it up
/dev/sdb1          /mnt/usbdrive vfat    noauto,user,exec        0 0

This should have you installed fully - don't forget to change the root password!

KDE

(if you don't like KDE or Gnome, I suggest Xfce)

Lets follow the KDE installation instructions

emerge kde

'nuf said - follow the rest of the instructions

If you get a message 'unknown group: plugdev', then try adding your user to usb group (and maybe messagebus and haldaemon)

Packages

The following are some interesting packages to check out on gentoo-portage.com:

VMWare

If you have problems with VMWare hanging while installing a guest OS, try this in your make.conf:

CFLAGS="-O2 -march=pentium3 -pipe -mno-tls-direct-seg-refs"

and rebuild based on the new flag (and go to bed for 12 hrs):

# emerge --emptytree --deep --ask --verbose world

Make sure vmware is loading at default level

rc-update add vmware default

..and the modules are in /etc/modules.autoload.d/kernel2.6

# VMWare
vmmon
vmnet

Devices, Networking & Power Mgmt

Refer to the Laptop HOWTO

Sound Notes

Use ALSA in the kernel, and when in KDE, open up the mixer and turn the sound up!

JogDial

Look at R505GL

Appendix A: Links

Sony

Laptops with Linux

Hardware

Reference Installations

Community

Setup

Appendix B: Hardware Specifications

(279.5 mm x 18.5 mm x 235 mm) Docking Station - Weight 2.18 lbs. (0.99) kg)

Notes: Maximum speed for faxing is 14.4 Kbps. Your modem is capable of downloading at 53 Kbps using V.90/K56flex. Your online service or Internet Service Provider may not support this technology or operate at this speed.

Appendix C: PCI Information

Code: lspci -v
00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 04)
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
  Latency: 0
  Region 0: Memory at <unassigned> (32-bit, prefetchable)
  Capabilities: [40] Vendor Specific Information

00:02.0 VGA compatible controller: Intel Corporation 82830 CGC [Chipset Graphics Controller] (rev 04) (prog-if 00 [VGA])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin A routed to IRQ 9
  Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
  Region 1: Memory at e0000000 (32-bit, non-prefetchable) [size=512K]
  Capabilities: [d0] Power Management version 1
  Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:02.1 Display controller: Intel Corporation 82830 CGC [Chipset Graphics Controller]
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0 (2250ns max)
  Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
  Region 1: Memory at e0080000 (32-bit, non-prefetchable) [size=512K]
  Capabilities: [d0] Power Management version 1
  Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02) (prog-if 00 [UHCI])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin A routed to IRQ 9
  Region 4: I/O ports at 1800 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #2) (rev 02) (prog-if 00 [UHCI])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin B routed to IRQ 9
  Region 4: I/O ports at 1820 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #3) (rev 02) (prog-if 00 [UHCI])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin C routed to IRQ 9
  Region 4: I/O ports at 1840 [size=32]

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42) (prog-if 00 [Normal decode])
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
  I/O behind bridge: 00003000-00003fff
  Memory behind bridge: e0200000-e02fffff
  Prefetchable memory behind bridge: 20000000-21ffffff
  Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
  BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-

00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
  Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0

00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02) (prog-if 8a [Master SecP PriP])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin A routed to IRQ 255
  Region 0: I/O ports at <ignored>
  Region 1: I/O ports at <ignored>
  Region 2: I/O ports at <ignored>
  Region 3: I/O ports at <ignored>
  Region 4: I/O ports at 1860 [size=16]
  Region 5: Memory at e0100000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Interrupt: pin B routed to IRQ 255
  Region 4: I/O ports at 1880 [size=32]

00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 0
  Interrupt: pin B routed to IRQ 9
  Region 0: I/O ports at 1c00 [size=256]
  Region 1: I/O ports at 18c0 [size=64]

00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Interrupt: pin B routed to IRQ 9
  Region 0: I/O ports at 2400 [size=256]
  Region 1: I/O ports at 2000 [size=128]

02:02.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 64 (750ns min, 1000ns max), Cache Line Size 08
  Interrupt: pin A routed to IRQ 9
  Region 0: Memory at e0205000 (32-bit, non-prefetchable) [size=2K]
  Region 1: Memory at e0200000 (32-bit, non-prefetchable) [size=16K]
  Capabilities: [44] Power Management version 2
  Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
  Status: D0 PME-Enable- DSel=0 DScale=0 PME+

02:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 168
  Interrupt: pin A routed to IRQ 9
  Region 0: Memory at e0206000 (32-bit, non-prefetchable) [size=4K]
  Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
  Memory window 0: 20000000-21fff000 (prefetchable)
  Memory window 1: 22000000-23fff000
  I/O window 0: 00003400-000034ff
  I/O window 1: 00003800-000038ff
  BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001

02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
  Subsystem: Sony Corporation Unknown device 8100
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
  Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
  Latency: 66 (2000ns min, 14000ns max), Cache Line Size 08
  Interrupt: pin A routed to IRQ 9
  Region 0: Memory at e0204000 (32-bit, non-prefetchable) [size=4K]
  Region 1: I/O ports at 3000 [size=64]
  Capabilities: [dc] Power Management version 2
  Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
  Status: D0 PME-Enable- DSel=0 DScale=2 PME-

Appendix Z: versions and authors

Retrieved from "http://www.gentoo-wiki.info/Sony_Vaio_PCG-R505EL"

Last modified: Sun, 07 Sep 2008 21:58:00 +0000 Hits: 15,056