Reference of configuration and Installation: wayland with DRM backend
Target board
G850 & DH67CF Motherboard: x86 architecture
Operating System
Fedora-17
Install Prerequisites
Prerequisite
|
Installation HowTo
|
---|
KMS support
|
mkdir /work/;cd /work wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.3.tar.bz2 wget http://cgit.freedesktop.org/mesa/drm/snapshot/drm-2.4.39.tar.gz
cd /work tar xvf drm-2.4.39.tar.gz cd drm-2.4.39/ ./autogen.sh --prefix=/usr make -j 4 make install
cd /work tar xvf linux-3.5.3.tar.bz2 cd linux-3.5.3/ cp /boot/config-3.3.4-5.fc17.i686.PAE .config make menuconfig => use "local" prefix for this kernel (General setup ---> Local version - append to kernel release) => exit/save make -j 4 bzImage make -j 4 modules make modules_install install
|
Wayland libraries
|
cd /work git clone http://anongit.freedesktop.org/git/wayland/wayland.git cd /work/wayland git checkout 1.0.0 ./autogen.sh --prefix=/usr make -j 4 make install
|
EGL platform and GLES libraries
|
cd /work git clone http://anongit.freedesktop.org/git/mesa/mesa.git cd /work/mesa ./autogen.sh --prefix=/usr --enable-gles2 --enable-gles1 --disable-gallium-egl --with-dri-drivers=i965,swrast --with-gallium-drivers= --enable-gbm --enable-shared-glapi --with-egl-platforms= wayland,drm
*) for X11 backend, replace [wayland,drm] to [x11,wayland] of --with-egl-platforms make -j 4 make install
|
Configuration and Build of IVI Layer Management
To configure IVI Layer Management, knowledge of CMake is required.
Get source code of IVI Layer Management from project page.
- Configure IVI Layer Management to prepare .cmake file. DRM backend: Example DRM of .cmake file. X11 backend: Example X11 of .cmake file.
- WITH_WL_EXAMPLE and WITH_CLIENTEXAMPLES are set to ON to validate the installation later.
Generate makefiles by cmake
- cd <source code dir>
- mkdir build
- cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=../<prepared *.cmake file> ../
Make and Install IVI Layer Management
- cd <source code dir>
- mkdir build
- cd build
- make
- make install
Validation of installation of IVI Layer Management
To validate installation, you can use Example applications. Before executing Example applications, LayerManagement Service needs to be started.
export XDG_RUNTIME_DIR=/tmp <- For wayland socket files.
export WAYLAND_DEBUG=1 <- can be disabled. Only for debug purpose.
export EGL_LOG_LEVEL=debug <- can be disabled. Only for debug purpose
$> /usr/bin/LayerManagerService -w<width> -h<height> -c<console log level: 0 to 4:[2]> -f<file log level: 0 to 4:[0]>
If the Service successfully starts, the log output
"LayerManagerService | INFO | Startup complete. EnterMainloop".
Otherwise you need to configure your system by debug information.
Where to go next