CompileSourceHowTo

Differences between revisions 1 and 2
Revision 1 as of 2009-09-06 04:18:20
Size: 2407
Editor: c122-106-213-77
Comment:
Revision 2 as of 2009-09-06 04:35:17
Size: 2537
Editor: c122-106-213-77
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Install: via-xserver-86a-50283_src.tgz
OS: Ubuntu 8.10
PC: HP2133 au version  zd: 2d drivers only
Date: 6/9/2009
Author:  https://launchpad.net/people/ozfalcon
= Install via source drivers =
 *
Install: via-xserver-86a-50283_src.tgz
 *OS: Ubuntu 8.10
 *PC: HP2133 au version
 *
zd: 2d drivers only
 *Date: 6/9/2009
 *Author: https://launchpad.net/people/ozfalcon
Line 16: Line 18:
Prep:
Install required packages: (Ubuntu package names) (Others would be better at determining exactly which packages are required)
== Install required packages: ==
(Others would be better at determining exactly which packages are required)
Line 19: Line 22:
Suggested packages: (Some removed)
==
Suggested packages: (Some removed) ==
Line 21: Line 25:
Recommended packages: (Some removed)
==
Recommended packages: (Some removed) ==
Line 24: Line 29:
== Get the source ready ==
Download via-xserver-86a-50283_src.tgz from http://linux.via.com.tw/
Line 25: Line 32:
Download via-xserver-86a-50283_src.tgz from http://linux.via.com.tw/
Line 29: Line 35:
Ensure full directory path to contain no spaces. Ensure full directory path contains no spaces.
Line 31: Line 37:
Compile the XServer drivers == Compile the XServer drivers ==
Line 34: Line 40:
Compile the DRM kernel module == Compile the DRM kernel module ==
Line 37: Line 43:
Fix the vinst process. == Fix the vinst process ==
Line 41: Line 47:
Line 44: Line 51:
Line 47: Line 55:
Line 48: Line 57:
Line 50: Line 60:
== Do the install ==
Line 54: Line 64:
Line 55: Line 66:
Line 56: Line 68:
Line 57: Line 70:
Line 59: Line 73:
Fixup libGL.so.1
==
Fixup libGL.so.1 ==
Line 62: Line 77:
Line 63: Line 79:

Install via source drivers

Synopsis: Once installed, You can watch hardware scaled video. Something I was unable to do using the vesa drivers. Running two+ videos simultaneously still does not work. But overall desktop performance is much better than previous drivers or the vesa drivers. I am not sure of the current status of 3d integration....

Note: Some sections (installs) require root access (sudo)

Install required packages:

(Others would be better at determining exactly which packages are required)

  • sudo apt-get install subversion build-essential automake1.9 libtool pkg-config xserver-xorg-dev libxvmc-dev x11proto-gl-dev libglu1-mesa-dev autoconf libdrm2 libdrm-dev mesa-common-dev gettext libxinerama-dev x11proto-xf86dri-dev xutils-dev

Suggested packages: (Some removed)

  • sudo apt-get install autoconf2.13 autoconf-archive gnu-standards autoconf-doc automake1.9-doc libtool-doc gcj

  • sudo apt-get install automake

Get the source ready

Download via-xserver-86a-50283_src.tgz from http://linux.via.com.tw/

Unpack the archive

  • bunzip2 -c via-xserver-86a-50283_src.tgz | tar x

Ensure full directory path contains no spaces.

Compile the XServer drivers

  • Read the README and follow to compile & install

Compile the DRM kernel module

  • Read the README and follow to compile & install

Fix the vinst process

copy compiled files to ...XServer/Misc/bin for vinst_ubuntu

  • copy the just compiled kernel module

    DRM/H5DRM_Independent_2.6.27_28/via_chrome9.ko ---> ...XServer/Misc/bin copy the just compiled X driver

    XServer/src/.libs/via_drv.so ---> ...XServer/Misc/bin Notes (3d section) We can't copy via_chrome9_dri.so (No 3d drivers) We can't copy libGL.so.1.2 (Sourced elsewhere)

Do the install

Run the vinst_ubuntu script

add/modify entries in /etc/X11/xorg.conf

Section "Device"

EndSection

Fixup libGL.so.1

My libGL.so.1.2 seems to come from libgl1-mesa-glx, You may need to install this package. I had to add a link for libGL.so.1 to enable X11/Xv playback in mplayer.

  • sudo ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1 sudo ldconfig

Hold your breath and reboot! (or restart X)

LaptopTestingTeam/Old/HP2133/CompileSourceHowTo (last edited 2010-02-26 23:55:09 by 94)