Search:  
Gentoo Wiki

Asus_Terminator_C3

This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related
It is requested that an image or additional image(s) be included in this article to improve its quality, if possible.

For more information, please refer to discussion on this page.

Contents

Introduction

The Asus Terminator C3 is a small and inexpensive barebones system which is well suited for tasks such as serving as a home firewall/router. It has an on-board 10/100 ethernet adapter and a single PCI slot available which is well suited for a second ethernet adapter. It comes with case, motherboard, processor, cdrom, and floppy. Therefore only lacking a disk and memory to be operational.

The Processor

The Terminator C3 gets its name from the fact that its CPU is a VIA C3. The C3 does not have all of the instructions of the Intel 686. In particular, it is missing the CMOV instruction. Therefore, when building Gentoo for this system, you'll need to use the "-mcpu=i586 -march=i586" flags to avoid any possibilty of non-C3 instructions being generated. Interestingly enough, you will seemingly need to specify both "-mcpu=" and "-march=", as some packages happily build with "-mcpu=i686 -march=i586" otherwise.

Warning: The gcc compiler does support both a "c3" and "c3-2" cpu type; however, others have reported problems with gentoo and those flags.


A quick search of the internet reveals that the C3 has 3dnow instructions and furthermore that its rather small cache size is well served by -Os. Here is an example make.conf (of course the GENTOO_MIRRORS and SYNC lines should be tailored to each installation):

File: /etc/make.conf
CHOST="i386-pc-linux-gnu"
CFLAGS="-mcpu=i586 -march=i586 -m3dnow -Os -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
AUTOCLEAN="yes"

GENTOO_MIRRORS="..."
SYNC="..."

Configuration Notes

Kernel Config

Among other things, you'll want to specify that you have a Cyrix C3 Processor:

File: Partial /usr/src/linux/.config
#
# Processor type and features
CONFIG_MCYRIXIII=y
#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y


On-board Ethernet

The C3 has a Via Rhine 10/100 ethernet adaptor on the mainboard which will need to be auto-loaded at boot time if not compiled into the kernel. For example:

File: /etc/modules.autoload.d/kernel-2.6
# On board 10/100 ethernet
via-rhine
# Add-in 10/100/1000 ethernet
r8169

Hardware Sensors

Here's a quick tip: turn OFF "Q-fan control" in the BIOS, otherwise, lm_sensors' fancontrol won't work properly or at all!

Here are working examples of the lm_sensors and fancontrol files (be sure to quadruple check your use of fancontrol):

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

# Initialize sensors at startup
INITSENSORS=yes

MODULE_0=i2c-viapro
MODULE_1=i2c-isa
MODULE_2=w83627hf
MODULE_2_ARGS=init=0
File: /etc/fancontrol
INTERVAL=8
FCTEMPS= 9191-0290/pwm2=9191-0290/temp2_input
FCFANS= 9191-0290/pwm2=9191-0290/fan2_input
MINTEMP= 9191-0290/pwm2=25
MAXTEMP= 9191-0290/pwm2=50
MINSTART= 9191-0290/pwm2=110
MINSTOP= 9191-0290/pwm2=115

You should probably use pwmconfig to configure your fan control settings as it is possible that they will vary from system to system.

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

Last modified: Thu, 28 Aug 2008 21:56:00 +0000 Hits: 8,196