Search:  
Gentoo Wiki

VIA_Epia_CL

Contents

Introduction

Purpose

The purpose of this tip is to describe additional information needed to install Gentoo on the VIA Epia CL 10000 board.

References

Hardware Spec

Processor Family: Centaur VIA C3 Nehemiah stepping 05(No Padlock support). 16 stage pipeline; 2 SSE units; FPU @ full clock; 0.13 (Cu); 54 mm2 (fpu de tsc msr mtrr pge cmov mmx fxsr sse)
Form Factor: Mini-ITX (4 layer), 17 cm x 17 cm.
CPU Speed: 1.0 GHz (Fan/Heatsink)
Speedstep: No
Chipset: VIA CLE266 North Bridge, VIA VT8235 South Bridge.
Onboard LAN: ETH0 - VIA VT6105 LOM [Rhine-III] (rev 8b), ETH1 - VT6102 [Rhine-II] (rev 74)
Memory type: 1x DDR266 DIMM socket. Up to 1.0GB of DDR SDRAM
Video: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics (rev 03). 2D/3D graphics with MPEG-2 Accelerator, featuring motion compensation and duo-view support.
Upgradable: Video is soldered to mainboard but a PCI graphics card can be used
Audio: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50).
Expansion: 1x PCI (2 if using PCI splitter). Onboard IDE 2 X UltraDMA 133/100/66 Connector. 1 x FDD Connector.
Back Panel: I/O 2 RJ-45 LAN ports, 1 PS2 mouse port, 1 PS2 keyboard port, 1 Parallel port, 1 Serial port (COM PORT), 4 USB 2.0 ports, 1 VGA port, 3 Audio jacks: line-out, line-in and mic-in.
BIOS: Award BIOS, 2/4Mbit flash memory.
Monitoring: CPU voltage monitoring, Wake-on-LAN, Keyboard-Power-on, Timer-Power-on, System power management, AC power failure recovery.
I/O Connectors: 1 USB connector for 2 additional USB 2.0 ports, Front-panel audio connectors (mic-in and line-out), CD Audio-in connector, 1 Buzzer, FIR connector, CIR connector (Switchable for KB/MS), Wake-on-LAN, CPU/Sys FAN/Fan 3, 1 Connector for LVDS module (Optional), 3 COM port pin headers.

Configuration (All parts in development)

Make system

File: /etc/make.conf
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=c3-2 -msse -mmmx -mfpmath=sse -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
# MPLAYER use flags.
#aac - Enables support for MPEG-4 AAC Audio
#alsa - Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
#dga -Adds DGA Support (Xfree86) (DGA=Direct Graphic Access)
#dts -Enables libdts (DTS Coherent Acoustics decoder) support
#dvb -Adds support for DVB (Digital Video Broadcasting)
#dvd -Adds support for DVDs
#dvdread -Enables usage of Ogle's libdvdread for DVD playback
#esd -Adds support for media-sound/esound (Enlightened Sound Daemon)
#mad -Adds support for mad (high-quality mp3 decoder library and cli frontend)
#mmx -Adds support for optimizations for Pentium MMX and Athlon class processors
#vorbis -Adds support for the OggVorbis audio codec
#sse -fast floating point optimization for PentiumIII+ class chips
#v4l -Enables video4linux support
#win32codecs -use win32codecs package for dll avi decoding support (wmv and what not)
#xv -Adds in optional support for the Xvideo extension (an X API for video playback)
#xvid -Adds support for xvid.org's open-source mpeg-4 codec

# HW decompress
# cle266    - used by xine
# xvmc      - used by xine, mplayer, mythtv
# unichrome - used by mesa, DirectFB, mythtv

USE="fpu de tsc msr mtrr pge cmov fxsr sse mmx 
  -apache2 -arts -cups -gtk -kde -gnome -sdl 
  -xmms dvd dvdread cle266 v4l unichrome xvmc 
  xv -gtk -jpeg -gif -png -mad -encode -esd"

MAKEOPTS="-j2"

# An attempt to get HW mpeg2 decompress.
VIDEO_CARDS="via"

INPUT_DEVICES="keyboard mouse"

GENTOO_MIRRORS="YOUR_SELECTION"

SYNC="YOUR_SELECTION"


gcc 4.1.1 does support -march=c3-2.

Kernel Configuration

Linux Kernel Configuration: epia 2.6
Processor type and features  --->
  Processor family  --->
    VIA C3-2 (Nehemiah) 
  [ ] Symmetric multi-processing support 
  Local APIC support on uniprocessors
Bus options (PCI, PCMCIA, EISA, MCA, ISA)  --->
  PCCARD (PCMCIA/CardBus) support  --->
    <*> PCCard (PCMCIA/CardBus) support
    <*>   CardBus yenta-compatible bridge support
Device Drivers  --->
  ATA/ATAPI/MFM/RLL support  --->
    <*>         VIA82CXXX chipset support
  Networking device support  --->
    Ethernet (10 or 100Mbit)  ---> 
      <*>   VIA Rhine support
  Character devices  ---> 
    <*> /dev/agpgart (AGP Support) 
    <*>   VIA chipset support 
    <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
  Multimedia devices  --->
    <*> Video For Linux
  Sound --->
    Advanced Linux Sound Architecture  ---> 
      PCI devices  --->
        <*> VIA 82C686A/B, 8233/8235 AC97 Controller
  I2C support  --->
    <*> I2C support
    I2C Algorithms  --->
      <*> I2C bit-banging interfaces
    I2C Hardware Bus support  ---> 
      <*> VIA 82C596/82C686/823x
Linux Kernel Configuration: epia 2.6, not tested yet
Device Drivers  --->
  Graphics support  --->
    <*> Support for frame buffer devices
    Console display driver support  ---> 
      [*]   Video mode selection support 
      <*> Framebuffer Console support 
    Hardware Sensors Chip support  --->
      
      
Cryptographic options  --->
  [*] Cryptographic API 
  Hardware crypto devices  --->
    < > Support for VIA PadLock ACE
    [ ]   Support for AES in VIA PadLock (NEW) -- No Padlock support for Stepping 07 or below.

Sound

# emerge alsa-utils
# update-modules
# alsamixer
# # Unmute master and pcm (m) turn up volume (up-arrow)
# /etc/init.d/alsasound save
# rc-update add alsasound boot
# /etc/init.d/alsasound start

Xorg and Hardware Decoding

Xorg-X11 7.0

Trying the method described in: Migrating to modular X

Put the module list in xorg.lst the

# cat xorg.lst | awk '{ printf("%s ~x86\n",$1);}' >> /etc/portage/package.keywords


For some reason the

# Xorg -configure

can't identify the monitor refresh and the modes for each depth, actually it has problems with the mouse as well, but at least it admits that.

I booted up the LiveCD and copied the monitor information, mouse and modes information to the conf file generated by Xorg -configure.

In the BIOS the apature is set to 64MB.

PC Card

See this guide.

Compact Flash

See this guide.

Mainboard sensors

The mainboard sensors in the southbridge of the Epia MII boards are supported by the vt1211 driver which can be used by lm_sensors. This driver is included as standard in kernel versions 2.6.19+ and can also be patched into 2.6.18.

Kernel versions 2.6.19+

The new 2.6.19 kernel adds support for the VT1211 sensors for the 2.6 series. Add the following options to your kernel, rebuild & restart:

Linux Kernel Configuration: Mainboard Sensors
Device Drivers  --->
 I2C support --->
  <*> I2C support
  <M> I2C device interface
  I2C Hardware Bus Support --->
   <M> VIA 82C596/82C686/82xx
 Hardware Monitoring support  ---> 
  <M> Via VT1211 

Patching earlier Kernel versions

Where possible it is recommended to upgrade to the 2.6.19 kernel, if you can't then you can apply the following patch to get the vt1211 driver. Details of how to do this can be found at: http://hem.bredband.net/ekmlar/vt1211.html.

Installing & Configuring lm_sensors

Next install lm_sensors to make use of the hardware:

# emerge lm_sensors

Once lm_sensors has installed you will need to detect the sensors using sensors-detect. This will ask you a series of questions about probing various buses - accept the defaults for all questions and let it overwrite /etc/conf.d/lm_sensors.

The lm_sensors config should look something like (if you compiled the sensors into the kernel instead of as modules, change the LOADMODULES to no):

File: /etc/conf.d/lm_sensors
# Load modules at startup
LOADMODULES=yes

# Initialize sensors at startup
INITSENSORS=yes

MODULE_0=i2c-viapro
MODULE_1=vt1211

Now you should start lm_sensors and add it to the default run level:

# /etc/init.d/lm_sensors start
 * Loading lm_sensors modules...
 *   Loading i2c-viapro ...         [ ok ]
 *   Loading vt1211 ...             [ ok ]
 * Initializing sensors ...         [ ok ]

# rc-update add lm_sensors default
 * lm_sensors added to runlevel default

If you get an error during the 'Initializing sensors' stage then you will need to upgrade lm_sensors to 2.10.1 or higher to fix an initialisation bug (at the time of writing this version is masked).

Now you should be able to check your mainboard sensors:

# sensors
vt1211-isa-6000
Adapter: ISA adapter
+3.3V:     +3.26 V  (min =  +0.00 V, max =  +4.42 V)
+2.5V:     +2.43 V  (min =  +0.00 V, max =  +3.16 V)
VCore:     +1.36 V  (min =  +1.00 V, max =  +1.05 V)   ALARM
+5V:       +4.68 V  (min =  +4.63 V, max =  +5.11 V)
+12V:     +11.66 V  (min = +10.53 V, max = +12.79 V)
+3.3V:     +3.27 V  (min =  +3.13 V, max =  +3.46 V)
Case Fan: 4964 RPM  (min = 3006 RPM, div = 2)
CPU Fan:  7123 RPM  (min = 3006 RPM, div = 2)
CPU Temp:  +24.3 C  (high =  +190 C, hyst =   -78 C)
Int Temp:  +45.0 C  (high =  +184 C, hyst =  +176 C)
vid:      +1.750 V  (VRM Version 1.7)
Retrieved from "http://www.gentoo-wiki.info/VIA_Epia_CL"

Last modified: Wed, 03 Sep 2008 22:56:00 +0000 Hits: 6,771