====================================================================
  Copyright (C) 2003 VIA Technologies, Inc. and S3 Graphics, Inc. 

  VIA/S3G Twister/Pro-savage Installation Notes for Linux XFree86
====================================================================



Caution

=================================

Before you begin to install the graphic driver, we seriously recommend that you update operation system.

It is tiresome at first, but it gives you convenience to such an extent that every time you update the driver later




System update

=================================

If you have done it before, you can go to driver installation directly.

1. Put Linux red hat 8.0 disk 1 in CDROM
Window pop out " Do you wish to run /mnt/cdrom/autorun?"
2. Select "Yes"
Window pop out " Add or Remove Packages"
3. Click "Forward"
Please wait to check system package status
4. Add following items and click "Forward"
KDE Desktop Environment
Engineering and Scientific
FTP Server
Kernel Development
KDE Software Development 
System Tools
5. Window pop out "Package Installation Overview"
Click "Forward"
6. Please wait system update (about 5-10mins)
You may need to change disk during the installation
7. Reboot system




Video memory configuration

=================================

Please set share memory not less 16M (32M is best) in bios config if your motherboard is  Twister/K or PM133/KM133




Driver Installation

=================================

1. Copy driver package to local machine
In terminal window:
cd "S3 driver"  (S3 driver is referred to the driver name on the local machine)
./savage_install /root/xc
cd /root/xc
make World            
 	 
             
2. Install 2D driver
cd xc/programs/Xserver/hw/xfree86/drivers/savage
make install
ldconfig
sync


3. Install 3D driver
cd xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernal
make -f Makefile.linux savage.o
cp savage.o /lib/modules/*/kernel/drivers/char/drm

cd xc/lib/GL/mesa/src/drv/savage
make install
ldconfig
sync


4. insmod
vi /etc/rc.local
Press button "insert" and you can append two lines in the file "rc.local"

insmod agpgart agp_try_unsupported=1
         		insmod savage

Press button "Esc"
Press button "Shift" + ":"
Type "wq" and press "Enter" (save the change in file and exit)


5. install XvMC driver 
cd xc/lib/XvMC/hw/savage
make install
ldconfig
sync


6.  Enable video capture
In terminal window, please type:
vi /etc/X11/XF86Config
Press button "insert" and you can append one line in the file "rc.local"

	Option "SAA7111" "1"

Press button "Esc"
Press button "Shift" + ":"
Type "wq" and press "Enter" (save the change in file and exit)


7. Reboot system and confirm driver installation
Open terminal window
vi /var/log/XFree86.0.log  (2D part)
search the item "savage" and you can get driver version information.
            
Type "glxinfo" in the terminal window
The information of  3D part is listed.
