tce-load -i git automake libtool-dev gettext-dev intltool xorg-server-dev Xorg-7.7-3d-dev

git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-intel

cd xf86-video-intel

CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --sysconfdir=/etc --libexecdir=/usr/local/lib/xorg --enable-kms-only --enable-uxa

[fails with -flto]

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install

The xf86-video-intel module is an open-source 2D graphics driver for
the X Window System as implemented by X.org. It supports a variety of
Intel graphics chipsets including:

        i810/i810e/i810-dc100,i815,
        i830M,845G,852GM,855GM,865G,
        915G/GM,945G/GM/GME,946GZ
        G/GM/GME/Q965,
        G/Q33,G/Q35,G41,G/Q43,G/GM/Q45
        PineView-M (Atom N400 series)
        PineView-D (Atom D400/D500 series)
        Intel(R) HD Graphics: 2000-6000,
        Intel(R) Iris(TM) Graphics: 5100/6100, and
        Intel(R) Iris(TM) Pro Graphics: 5200/6200/P6300.

Where to get more information about the driver
----------------------------------------------
The primary source of information about this and other open-source
drivers for Intel graphics is:

        https://01.org/linuxgraphics/

Documentation specific to the xf86-video-intel driver including
possible configuration options for the xorg.conf file can be found in
the intel(4) manual page. After installing the driver this
documentation can be read with the following command:

        man intel

Mailing list for communication with users and developers of
xf86-video-intel:

        intel-gfx@lists.freedesktop.org

        Note: Subscription is required before posting, but anyone is
        free to subscribe. See instructions (and archives) here:

        http://lists.freedesktop.org/mailman/listinfo/intel-gfx

To report bugs encountered with the driver, see:

        https://01.org/linuxgraphics/documentation/how-report-bugs

To see bugs that are targeted to be fixed in the next release:

        https://bugs.freedesktop.org/show_bug.cgi?id=intel-2d-release

xf86-video-intel 2.99.917 will be compiled with:
  Xorg Video ABI version: 20.0 (xorg-server-1.18.4)
  pixman version: pixman-1-0.32.8
  Acceleration backends: none *sna uxa
  Additional debugging support? none
  Support for Kernel Mode Setting? yes
  Support for legacy User Mode Setting (for i810)? no
  Support for Direct Rendering Infrastructure: *DRI2 DRI3 Present
  Support for Xv motion compensation (XvMC and libXvMC): yes
  Support for display hotplug notifications (udev): yes
  Build additional tools and utilities? xf86-video-intel-backlight-helper intel-virtual-output