Ceci est une ancienne révision du document !


Openchrome est un projet de pilote libre pour les puces graphiques VIA/S3G UniChrome et UniChrome Pro. (CLE266, KN400, KM400, K8M800, PM800, CN400, VN800, K8M890 Chrome9 IGP)

Pour de plus amples informations sur le projet, visitez (en anglais) http://www.openchrome.org/

Ce tutoriel vous aidera à compiler les fichiers sources du projet pour Ubuntu 6.06 (Dapper), 6.10 (Edgy) et suivantes. Cela devrait aussi fonctionner sur la distribution debian et les distributions basées sur debian comme Kanotix et Knoppix.

Avant de commencer

  • Vous devez avoir des droits d'administateur.
  • Assurez-vous d'avoir activé les dépôts Universe et Multiverse d'Ubuntu.

Compilation des pilotes OpenChrome

Installez les paquets nécessaires
  • Sous Ubuntu 6.10 (Edgy), tapez dans un terminal :

sudo apt-get build-dep xserver-xorg-video-via

  • Sous Ubuntu 6.06.1 (Dapper), Debian et les distributions basées sur Debian, tapez :
''sudo apt-get build-dep xserver-xorg-driver-via''
  • Vous devez aussi installer les outils de compilations suivants

sudo apt-get subversion autoconf automake1.9 libtool git-arch

Allons-y gaiement !

Nous allons maintenant compiler les sources :

  • Créez un nouveau répertoire

mkdir openchrome

  • Allez dans ce répertoire :

cd openchrome

  • Téléchargez les sources :

svn co http://svn.openchrome.org/svn/trunk/

  • Pour la puce K8M890 tapez la ligne suivante à la place :

svn co http://svn.openchrome.org/svn/branches/vt3336_branch/

  • Allez dans le répertoire des sources

cd trunk

  • Pour la puce K8M890 tapez ce qui suit à la place

cd vt3336_branch

  • La ligne de commande suivante prépare l'installation des pilotes

sudo ./autogen.sh –prefix=/usr/

  • Compilez les sources

sudo make

  • Installez les pilotes

sudo make install

* Editez le fichier xorg.conf pour adopter le pilote "via"

sudo gedit /etc/X11/xorg.conf

Allez dans la section "Device"

Section "Device"

et changez

Driver "blahblah"

pour

Driver "via"

Enregistrez le fichier.

Au final, relancez l'interface graphique X par la combinaison de touches Crl-Alt-Backspace(Suppression arrière)

Si le serveur graphique Xorg ne se relance pas (vous aurez un écran bleu avec des symboles bizarres et du texte en anglais), il faudra éditer de nouveau le fichier xorg.conf pour remettre l'ancien pilote dans la section Device. Notez la ligne de commande suivante avant de relancer

sudo nano /etc/X11/xorg.conf

openChrome and 3D

3D should work out of the box in Edgy. If it does not do the following:

* 'Obtain the sourcecode' drm}

* 'Compile libdrm and drm kernel modules'

  • 'libdrm'BR

Change to the directory where the drm sourcecode is stored

{{{cd drm

}}}

Run the autogen script
{{{./autogen.sh --prefix=/usr

}}}

Compile the source code
{{{make

}}}

Install the compiled source code
{{{make install

}}}

  • 'drm kernel modules'BR

Change to the correct directory (you have to already be in the directory drm)

{{{cd linux-core

}}}

Compile the kernel modules
{{{make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via

}}}

Copy the kernel modules to the correct location
{{{cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/

}}}

Run depmod
{{{depmod -ae

}}} That should be it. Reboot and see how it goes.

Problems and solutions

* 'My system sometimes freezes'BR This is being caused by a bug in drm. To solve this, you have to uncomment load_dri} in your xorg.conf. As a result, you won't have 3D acceleration anymore, but your system won't freeze.

* 'I do not have any picture when playing videos'BR This mostly happens when using a laptop and is caused by openChrome not supporting Xv correctly on some models. You can try to change the video driver in Xine to "gl" or "x11" and see if that helps. This problem does not appear when not using the integrated LCD and using an external monitor instead. The openChrome developers are investigating into this problem.

* 'My mouse cursor sometimes disappears'BR This is known to happen on VN800 and VM800 chipsets. As a solution, you can try to add option_swcursor_true} To the device section in your xorg.conf.

  • openchrome.1165954803.txt.gz
  • Dernière modification: Le 19/01/2007, 08:49
  • (modification externe)