
******************************************************
*
*
*  Production Version Release
*
*  	Fedora Core 6
*	Ubuntu Mobile & Embedded (UME)
*	Moblin
*	Midinux 2.0 SP3
*                                                       
*  Driver Revision: Production Version
*  
*
*  Graphics Driver Version: 5.0.0.0040
*
*
*  March 31, 2009
*
*  NOTE:  This document refers to systems containing the 
*         following Intel chipsets: 
*
*     Intel(R) System Controller Hub (SCH)                
*
*                              
*	
*  Installation Information
*
*  This document makes references to products developed by
*  Intel. There are some restrictions on how these products
*  may be used, and what information may be disclosed to
*  others. Please read the Disclaimer section and contact
*  your Intel field representative if you would like more
*  information.
*
******************************************************
******************************************************
*  DISCLAIMER: Intel is making no claims of usability,
*  efficacy or warranty.  The INTEL SOFTWARE LICENSE
*  AGREEMENT contained herein completely defines the 
*  license and use of this software.
*
*  This document contains information on products in the 
*  design phase of development. The information here is 
*  subject to change without notice. Do not finalize a 
*  design with this information.
******************************************************


******************************************************
*  CONTENTS OF THIS DOCUMENT
******************************************************

This document contains the following sections:

1.  Installing the Software
	a - INSTALL ON MIDINUX 2.0 SP3
	b - INSTALL ON UME
	c - INSTALL ON MOBLIN
	d - INSTALL ON FEDORA CORE 6

2.  Identifying the Software Version Number

*****************************************************
1a.	INSTALL ON MIDINUX 2.0
*****************************************************

	1) Shutdown your X-Server and login to a terminal as root
		From GUI-based desktop, Ctl-Alt-BackSpace will shutdown the X-Server,
		kill your desktop, and preset you with a login prompt to a terminal.

	2) Unpack tarball file downloaded from ARMS
		# tar -xzvf Intel-GMA500-5.0.0.0040.tar.gz

	3) Uncompress the archive to extract the rpm files: 
		# tar -xzvf Intel-GMA500-5.0.0.0040-Midinux.tar.gz

			src
			install.sh
			libdrm2-2.3.0-23.i386.rpm
			libgl1-mesa-dri-psb-0.24-0.i386.rpm
			libva1-0.29-9.i386.rpm
			psb-kmd-4.34-all.i386.rpm
			psb-video-0.29-0.i386.rpm
			xorg-modules-xpsb-0.14-0.i386.rpm
			xserver-xorg-video-psb-0.29.0-0.i386.rpm
				
	4) Install each rpm using the script provided:
		# ./install.sh
			* If you prefer to install the rpms without using the script, please install the rpms following the sequence in the installation script.
	
	5) Reboot your machine
		# shutdown r now


*****************************************************
1b.	INSTALL ON UME 
*****************************************************

	1) Unpack tarball file downloaded from ARMS
		# tar -xzvf Intel-GMA500-5.0.0.0040.tar.gz

	2) unpack the compressed archive
		# tar -xzvf Intel-GMA500-5.0.0.0040-Ubuntu-Hardy-UME.tar.gz

	3) Locate the unpacked directory
		# cd Intel-GMA500-5.0.0.0040-Ubuntu-Hardy-UME

	4) Locate the PSB graphics driver kernel module directory
		# uname -r ( The kernel version should be 2.6.24-22-lpia )
		# cd 2.6.24-22-lpia
 
	5) Install PSB graphics driver kernel module 
		# dpkg -i --force-overwrite *.deb

	6) Install the remaining of graphics driver modules
		# cd..
		# dpkg -i --force-overwrite *.deb

	7) Reboot the target machine
		# shutdown -r now

Development packages are provided in the dev/ directory. If you already have
some development packages installed, it is recommended to install the 
driver and development packages together in one operation with:

	# dpkg -i --force-overwrite *.deb dev/*.deb

*****************************************************
1c.	INSTALL ON MOBLIN 
*****************************************************

	1) Unpack tarball file downloaded from ARMS
		# tar -xzvf Intel-GMA500-5.0.0.0040.tar.gz

	2) unpack the compressed archive
		# tar -xzvf Intel-GMA500-5.0.0.0040-Moblin-Hardy.tar.gz

	3) Locate the unpacked directory
		# cd Intel-GMA500-5.0.0.0040-Moblin-Hardy

	4) Locate the PSB graphics driver kernel module directory
		# uname -r ( The kernel version should be 2.6.24-16-lpia )
		# cd 2.6.24-16-lpia
 
	5) Install PSB graphics driver kernel module 
		# dpkg -i --force-overwrite *.deb

	6) Install the remaining of graphics driver modules
		# cd..
		# dpkg -i --force-overwrite *.deb

	7) Reboot the target machine
		# shutdown -r now


Development packages are provided in the dev/ directory. If you already have
some development packages installed it is recommended to install the 
driver and development packages together in one operation with:

	# tar -xvfz Intel-GMA500-5.0.0.0040-Moblin-Hardy.tar.gz
	# cd Intel-GMA500-5.0.0.0040-Moblin-Hardy
	# dpkg -i --force-overwrite *.deb dev/*.deb


*****************************************************
1d.	INSTALL ON FEDORA CORE 6
*****************************************************

1) Install Fedora Core 6

2) Upgrade to kernel 2.6.20.11(need to build the kernel since no RPM was found. 
   Apply IDE patch and it will enable DMA mode on Poulsbo. Use the .config file included)

3) Upgrade mesa to 6.5.2(fc7rpms)

4) Upgrade Xorg to 1.3(fc7rpms)

5) upgrade libdrm to 2.3.0(fc7rpms)

6) Upgraded libzdamage to 1.1.0 (fc7rpms)

7) Upgrade xrandr to 1.2(include randrProto,libXrandr, and xrandr app, upgrade 
   to xorg-x11-server-utils-7.2-1.fc7.rpm, make sure xrandr app overwrites old 
   installation located in /usr/local/bin)

8) Install the following packages:
	gcc
	g++
	automake
	make
	git-core
	git
	pkg-config
	makedepend
	mesa-common-dev
	mesa-utils
	libdrm2
	bison
	flex
	libtool
	xorg-dev
	libxinerama1
	libxcb-xinerama0
	x11proto-xinerama-dev
	x11proto-xext-dev
	libxext-dev
	libglut-dev
	libxfixes-dev
	libxcb-xfixes0-dev
	libxdamage-dev
	x11proto-fonts-dev
	x11proto-xf86dga-dev
	x11proto-randr-dev
	x11proto-render-dev
	x11proto-video-dev
	x11proto-xf86misc-dev
	x11proto-xf86dri-dev
	x11proto-xcmisc-dev
	xserver-xorg-dev
	x11proto-gl-dev
	x11proto-xf86vidmode-dev
	libXxf86vm-dev
	libxmu-dev
	libxi-dev

	***********************************
	Build and Install of Graphics Driver
	on Fedora Core 6
	***********************************

	1) DRM Kernel driver

	    To build:

		tar xvzf psb-kmd-4.34.tar.gz 
		cd psb-kmd-4.27
		make psb.o

	    To install:

		cp -v psb.ko psb_drm.ko /lib/modules/<your_kernel_version>/kernel/drivers/char/drm/
		cp -v drm.h psb_drm.h psb_reg.h /usr/include/drm
		depmod -a

	2) DRM Interface Library

	    To build:

		tar xvzf libdrm-2.3.0_23
		cd libdrm-2.3.0_23
		./configure --prefix=/usr
		make

	    To install:

		make install

	3) Video Acceleration API

	   To compile:

		tar xvzf libva-0.29_4.tar.gz        
		cd libva-0.29_4
		./autogen.sh --prefix=/usr
		make

	   To install:

	        make install


	4) Poulsbo Video driver

	   To Install:

		tar xvzf psb-video-0.27.tar.gz  
		cd psb-video-0.27
		cp -v psb_drv_video.so /usr/X11R6/lib/modules/dri/
		cp -v msvdx_fw.bin /lib/firmware 


	5) Poulsbo 2D Graphics driver

	   To compile:

		tar xvzf xf86-video-psb-0.23.0.tar.gz
		cd xf86-video-psb-0.23.0
		./autogen.sh --prefix=/usr
		make

	   To install:
	
		make install

	6) Poulsbo User mode 3D closed source module

	   To Install:

		tar xvzf Xpsb-0.17.tar.gz
		cd Xpsb-0.14
		cp -v Xpsb.so /usr/lib/xorg/modules/drivers

	7) Mesa 7.0.3_16

	   To install:
		tar xvzf mesa-7.0.3_16.tar.gz
		cd Mesa7.0.3_16
		make linux-dri-x86
		make install


	8) Poulsbo 3D Mesa DRI driver

	   To install:

		tar xvzf psb_dri-0.24.tar.gz
		cd psb_dri-0.24
		cp -v psb_dri.so /usr/lib/dri


	9) Final Platform Configuration

		copy xorg.poulsbo.conf to /etc/X11/xorg.conf
		reboot and startx


*********************************************************
2.  Identifying the Software Version Number
*********************************************************

The following section outlines the steps to check the
different build version associated with the graphics
driver modules.  The following is version definition
for the graphics driver


<a.b.c.xxxx >
 | | | |__|--------- [xxxx] - Build Number
 | | |-------------- [ c ]  - Hotfix Release
 | |---------------- [ b ]  - Major Release Version
 |------------------ [ a ]  - Linux Graphics Driver for Menlow


For Example:
 5.0.0.0040
 | | | |__|--------- [0040] - Build Number 
 | | |-------------- [ 0 ]  - No Hotfix Release
 | |---------------- [ 0 ]  - First Major Release
 |------------------ [ 5 ]  - Linux Graphics Driver for Menlow


-For psb.ko, Xpsb.so, psb_drv.so
  # dmesg | grep <driver version. ex. 5.0.0.40>

-For psb_dri.so
  # grep <driver version. ex. 5.0.0.40> /var/log/Xorg.0.log

-For psb_drv_video.so, libva.so
  # glxinfo | grep <driver version. ex. 5.0.0.40>
  # vainfo | grep <driver version. ex. 5.0.0.40>







