XMBC

Tutorial: Install Kodi on LeMaker Guitar

6 1507
Edited by john.wen at Nov 12, 2015 05:13

What is Kodi?

Kodi(formerly known as XBMC) is an award-winning free and open source (GPL) software media center for playing videos, music, pictures, games, and more. Kodi runs on Linux, OS X, Windows, iOS, and Android, featuring a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet.

What we need?

1. A LeMaker Guitar and Base Board Rev.B
IMG_3874-2.jpg
2. Lemuntu for Guitar V1511
Download link: http://www.lemaker.org/product-guitar-download-21.html. Refer to Quick start to install Lemuntu OS image on LeMaker Guitar.

How to do it?

Step 1: Install GPU hardware acceleration libraries

Download and unzip the archive file
  1. wget http://mirror.lemaker.org/GPU_For_LeMaker_Guitar_201511.tar.gz
  2. sudo tar –zxvf GPU_For_LeMaker_Guitar_201511.tar.gz
Copy the Code

Install the software package
  1. cd GPU_For_LeMaker_Guitar_201511
  2. sudo chown -R root:root ./*
  3. sudo ./install.sh
Copy the Code

Replace X, Xorg
  1. cd /usr/bin
  2. sudo mv X X.original
  3. sudo mv Xorg Xorg.original
  4. sudo ln -sf /usr/local/XSGX/bin/X X
  5. sudo ln -sf /usr/local/XSGX/bin/Xorg Xorg
  6. sudo cp /usr/local/XSGX/etc/xorg.conf  /etc/
Copy the Code

Add libraries path
  1. sudo vi /etc/ld.so.conf
  2. include /etc/ld.so.conf.d/*.conf
  3. /usr/local/XSGX/lib
  4. /usr/lib

  5. sudo ldconfig
Copy the Code

Check whether the GPU started
  1. lsmod
  2. Module                  Size  Used by
  3. ...
  4. pvrsrvkm              336156  6
  5. drm                   225379  6 pvrsrvkm
  6. ...
Copy the Code
If you can find pvrsrvkm and drm dirver modules, and the Used of the modules are not 0, and the graphical user interface runs normally, the GPU hardware acceleration works normally!We can use glmark2 tool to test GPU.
  1. sudo apt-get install libgegl-0.2-0 libgfortran3 libgimp2.0 libgl1-mesa-dev libgles2-mesa-dev libglew-dev libglew1.10 libglib2.0-bin libglib2.0-data libglib2.0-dev libglu1-mesa-dev
  2. sudo apt-get install libpng-dev
  3. sudo apt-get install libx11-dev
  4. sudo apt-get install pkg-config
Copy the Code
  1. wget http://mirror.lemaker.org/glmark2_2011.09.orig.tar.gz
  2. tar -zxvf glmark2_2011.09.orig.tar.gz
  3. cd glmark2-2011.09/
  4. ./waf configure --enable-glesv2
  5. ./waf
  6. sduo ./waf install
Copy the Code
  1. sudo cp /usr/lib/libEGL.so* /usr/lib/arm-linux-gnueabihf/ -a
  2. sudo cp /usr/lib/libGLES*  /usr/lib/arm-linux-gnueabihf/ -a
Copy the Code
  1. glmark2-es2
Copy the Code
The result is showed up as below:

glmark2

glmark2


Step 2: Install Video decoder libraries
  1. sudo wget http://mirror.lemaker.org/omx.tar.gz
  2. sudo tar –zxvf omx.tar.gz
  3. sudo ./install.sh
Copy the Code

Step 3: Install Kodi
Download and unzip the archive file
  1. sudo wget http://mirror.lemaker.org/xbmc_Isengard_rc3_install.tar.bz2
  2. tar -xvf xbmc_Isengard_rc3_install.tar.bz2
Copy the Code

Install the software package
  1. cd xbmc_Isengard_rc3_install/
  2. sudo chown -R root:root ./*
  3. sudo ./install.sh
Copy the Code

Give read and write access to all user

  1. sudo nano /etc/udev/rules.d/50-kodi.rules
  2. KERNEL=="mali0", GROUP="root",MODE="0666"
  3. KERNEL=="ion", GROUP="root",MODE="0666"
  4. KERNEL=="mem", GROUP="root",MODE="0666"
Copy the Code

Add Kodi icon shortcuts

  1. sudo cp /usr/local/share/applications/kodi.desktop  /usr/share/applications/kodi.desktop
  2. sudo reboot
Copy the Code
You will find and open the kodi to play videos.

Lemuntu

Lemuntu

Kodi

Kodi









xizi  
79c19fb0b6df644072f4331fe3f6829f_256_256.png

fritz  
Edited by fritz at Nov 12, 2015 08:35
KERNEL=="mali0", GROUP="root",MODE="0666"

mali??????
are you sure?
this libs are closed source right?
omx/vd_flv1.so
omx/vd_h263.so
omx/vd_h264.so
omx/vd_mjpg.so
omx/vd_mpeg.so
omx/vd_xvid.so

Where is the vd_h265.so?

Comments

Hi, fritz: 1. We can find "mali0" device node on /dev/mail0. 2. These libs is not open source  Post time Nov 12, 2015 20:23

jacer  
Edited by jacer at Dec 01, 2015 02:57
fritz replied at Nov 12, 2015 08:23
mali??????
are you sure?
this libs are closed source right?

Kodi installed OK but cannot play video file. When play video file it will quit automatically. Here is the crash log.
  1. /usr/local/lib/kodi/kodi-xrandr: Failed to get size of gamma for output default

  2. ## hints.codec_tag == 0x31637661

  3. ## hints.flags == 1
  4. Segmentation fault
  5. Crash report available at /home/lemaker/kodi_crashlog-20151201_164639.log
Copy the Code
kodi_crashlog-20151201_164639.log.gz (3.15 KB, Downloads: 11)

kodi_crashlog-20151201_165447.log.gz

3.15 KB, Downloads: 9

In crashlog: "ERROR: Unable to load libOMX_Core.so, reason: libOMX_Core.so: cannot open shared object file: No such file or directory"

You should check the file "libOMX_Core.so".

Comments

Problem solved. I posted a thread here. I simply forgeted to install OMX VDE. http://forum.lemaker.org/forum.php?mod=viewthread&tid=22848&extra=page%3D1  Post time Dec 05, 2015 03:49

You have to log in before you can reply Login | Sign Up

Points Rules