X Display Manager for odroidu2

From odroid US
Revision as of 22:09, 20 January 2014 by Osterluk (Talk | contribs)

Jump to: navigation, search

This topic is for odroidu2 devices. The information may be dated. Some users have not been able to use this...

The x-server and userspace drivers provided by [1] are either X version 1.11 or 1.13, whereas the default in debian is 1.12. The X-protocols seem to be incompatible.

So after installing [2], the X-server should be replaced by something else.

Newer versions of the user-space code might require libump:

git clone https://github.com/libv/libump.git
cd libump
aclocal; automake --add-missing; autoconf
./configure
make
checkinstall --pkgname=libump --pkgversion=1 make install

One option for the X-server is to use the sunxi-mali drivers. Since debian is statically linked to libdri2, that needs to be built from source as well:

apt-get install checkinstall build-essential pkg-config
git clone https://github.com/robclark/libdri2
cd libdri2
./autogen.sh
make
checkinstall --pkgname=libdri2 --pkgversion=1 make install

checkinstall is used to make a debian-package while installing. This makes it easy to uninstall later on. Just press enter on all checkinstall questions should be fine.

Next up are the user-space mali drivers. The configuration script checks the X-server, so we need to install that first:

apt-get install xserver-xorg-core xserver-xorg-dev
git clone https://github.com/linux-sunxi/sunxi-mali.git
cd sunxi-mali
git submodule init; git submodule update
checkinstall --pkgname=sunxi-mali --pkgversion=1 make install VERSION=r3p1

Finally, the x-server-module can be compiled.

git clone https://github.com/ssvb/xf86-video-sunxifb.git
cd xf86-video-sunxifb
./autogen.sh
make
mkdir -p /usr/local/lib/xorg/modules
checkinstall --pkgname=xf86-video-sunxifb --pkgversion=1 make install

After installation of the x-server, it needs to be configured using /etc/X11/xorg.conf. you can generate one by

cp /usr/share/X11/xorg.conf.d/99-sunxifb.conf /etc/X11/xorg.conf

For kernel version 3.8, /dev/fb0 is the LCD output, /dev/fb1 is the HDMI output 1. For an Odroid-X2 with kernel 3.8.13, the following /etc/X11/xorg.conf gives output on the HDMI interface:

Section "Device"
        Identifier "Sunxi FBDEV"
        Driver          "sunxifb"
        Option "fbdev" "/dev/fb1"
        Option "ShadowFB" "on"
EndSection

Section "Screen"
        Identifier      "Sunxi Screen"
        Device          "Sunxi FBDEV"
EndSection

After this, your favorite window manager can be installed, for example Debian-wheezy-gnome-6_Build_Notes.