|
楼主 |
发表于 2006-9-27 06:42:30
|
显示全部楼层
VIA S3 UniChrome Linux Display Driver
Source Code Compiling Instructions
June 29, 2006
Copyright (C) 2002-2006 VIA Technologies, INC.
1. Summary
This document describes how to compile the VIA DeltaChrome family Linux display
driver source code on Fedora Core Linux 4, Mandriva Linux 2006.0 and SuSE Linux 10.0.
This software package supports 2D and TV-Out. The information and the source code files are
provided "AS IS" without guarantee of any kind.
2. Set up environment
(1) Xorg source code:
Fedora Core Linux 4.0: xorg-x11-6.8.2-31.src.rpm
Mandriva Linux 2006.0: xorg-x11-6.9-1.cvs20050915.2mdk.src.rpm
SuSE Linux 10.0: xorg-x11-6.8.2-100.src.rpm
(2) VIA UniChrome family display driver version: 4.0.0069.
The driver source code comprises files in three directories as described below:
via (C header files, and XServer source files)
Utility (VIA/S3G TV display utility)
Note: After installing OS, using command "rpm -qa | grep gcc" to verify
the following packages have been installed on the system.
Fedora Core Linux 4.0 dependency packages:
bash-3.0-31
bison-2.0-6
cpp-4.0.0-8
expat-1.95.8-6
flex-2.5.4a-34
fontconfig-devel-2.2.3-13
freetype-devel-2.1.9-2
gcc-4.0.0-8
glibc-devel-2.3.5-10
kernel-2.6.11-1.1369_FC4.src.rpm
libstdc++4.0.0-8
libpng-devel-1.2.8-2
ncurses-devel-5.4-17
pam-devel-0.79-8
rpm-4.4.1-21
rpm-build-4.4.1-21
xorg-x11-devel-6.8.2-31
xorg-x11-libs-6.8.2-31
zlib-devel-1.2.2.2-3
Mandriva Linux 2006.0 dependency packages:
bash-3.0-6mdk
bison-2.0-3mdk
flex-2.5.4a-22mdk
fontconfig-devel-2.3.2-5mdk
freetype-devel-1.2.1-23mdk
gcc-4.0.1-5mdk
gcc-cpp-4.0.1-5mdk
glibc-devel-2.3.5-5mdk
kernel-source-2.6-2.6.12-12mdk.src.rpm
libexpat0-devel-1.95.8-1mdk
libstdc++6-4.0.1-5mdk
libpng3-devel-1.2.8-1mdk
ncurses-5.4-1.20050108.1mdk
pam-devel-0.77-31mdk
rpm-4.4.2-4mdk
rpm-build-4.4.2-4mdk
xorg-x11-devel-6.9-1.cvs20050915.2mdk
xorg-x11-libs-6.9-1.cvs20050915.2mdk
zlib1-devel-1.2.3-1mdk
SuSE Linux 10.0 dependency packages:
bash-3.0-17
bison-1.875-56
cpp-4.0.2_20050901-3
expat-1.95.8-5
flex-2.5.4a-297
fontconfig-devel-2.3.2.20050721-10
freetype-devel-2.1.10-4
gcc-4.0.2_20050901-3
glibc-devel-2.3.5-40
kernel-source-2.6.13-15.src.rpm
libstdc++4.0.2_20050901-3
libpng-devel-1.2.8-5
ncurses-devel-5.4-71
pam-0.80-6
rpm-4.1.1-222
xorg-x11-devel-6.8.2-100
xorg-x11-libs-6.8.2-100
zlib-devel-1.2.3-3
3. Install & compile Xorg source. Run the following commands. This sample is
in Fedora Core Linux 4.
# rpm -ivh xorg-x11-6.8.2-31.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bc xorg-x11.spec
# cd /usr/src/redhat/BUILD/xorg-x11-6.8.2/
# mv xc/ /usr/src/
Note: Depending on your system used, it may take 1 or 2 hours to finish.
4. Prepare kernel source for VIA display driver or rebuild kernel
# rpm -ivh kernel-2.6.11-1.1369_FC4.src.rpm
# cd /usr/src/redhat/SPECS/
# rpmbuild -bp kernel-2.6.spec --target=i686
# mv /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11 /usr/src/
# ln -sf /usr/src/linux-2.6.11 /usr/src/linux
Note: Depending on your system used, it may take 5 or 10 minutes to finish.
5. Create a ".config" file to kernel source "/usr/src/linux" from "/boot" folder
# cp /boot/config-2.6.11-1.1369_FC4 /usr/src/linux/.config
# vi /usr/src/linux/Makefile (make sure the "EXTRAVERSION" value in Makefile is the same as
OS kernel version "#uname -r")
# make (use "Ctrl + C" to stop building kernel source by this command after two minutes
in /usr/src/linux folder)
6. Use a script to make K8M890XF40069 driver and select "69" version and CPU type to build.
The driver binary will be created
in /K8M890XF40069 folder
# tar zxvf K8M890XF40069-kernel-src_[date].tgz
# cd K8M890XF40069-kernel-src_[date]/src
# ./makedriver
# ldconfig
7. Confirm the existence of "via_drv.o" and "Utility". Use a script "vinstall"
to setup 2D driver and VIA/S3G TV display utility.
# ./vinstall336 (or ./vuninstall336 to uninstall)
Edit the xorg log "/var/log/Xorg.0.log" to check whether the via driver is successfully loaded.
If users see the "via" module and the "4.1.69" version then the via 2D driver
is successfully loaded. |
|