# OrangePi Plus 2

**URL:** https://dietpi.com/forum/t/orangepi-plus-2/1183
**Category:** General Discussion
**Created:** [11 April 2017 10:43 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183 "2017-04-11T10:43:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Glash](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/48db29/32.png) [@Glash](https://dietpi.com/forum/u/Glash)
#### Post date: [11 April 2017 10:43 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183/1 "2017-04-11T10:43:08Z")

</div>

Hello,  
How can I install kodi + qbittorent + samba on OrangePi + 2?  
Why does kodi not supported on this board?

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [11 April 2017 10:51 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183/2 "2017-04-11T10:51:26Z")

</div>

> [@Glash](#):
>
> Hello,  
> How can I install kodi + qbittorent + samba on OrangePi + 2?  
> Why does kodi not supported on this board?

Hi,

GPU features are disabled on this board, ideal for server usage.

We only support GPU features on the current boards:

- RPi (All)
- Odroid (All)

---

<div class="post-metadata">

### Author: ![2010kira2010](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/2/779978/32.png) [@2010kira2010](https://dietpi.com/forum/u/2010kira2010)
#### Post date: [21 April 2017 08:37 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183/3 "2017-04-21T08:37:34Z")

</div>

> [@Fourdee](#):
>
> > [@Glash](#):
> >
> > Hello,  
> > How can I install kodi + qbittorent + samba on OrangePi + 2?  
> > Why does kodi not supported on this board?
> 
> Hi,
> 
> GPU features are disabled on this board, ideal for server usage.
> 
> We only support GPU features on the current boards:
> 
> - RPi (All)
> - Odroid (All)

Hi! Please add support Kodi. Support GPU(Tested on NanoPi M1+DietPi 145):

```plaintext
#!/bin/bash
echo -e '\033[1;32mInstall Mali dep...\033[0m'
apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev build-essential automake pkg-config libtool ca-certificates git cmake subversion -y

echo -e '\033[1;32mDownload 3dpart package...\033[0m'
cd /usr/src/
git clone https://github.com/linux-sunxi/sunxi-mali
git clone https://github.com/robclark/libdri2
git clone https://github.com/linux-sunxi/libump
git clone https://github.com/ssvb/xf86-video-fbturbo
git clone https://github.com/ptitSeb/glshim

echo -e '\033[1;32mCompile and install libdri2...\033[0m'
cd libdri2/
autoreconf -i
./configure --prefix=/usr
make
make install
cd ..

echo -e '\033[1;32mCompile and install libump...\033[0m'
cd libump/
autoreconf -i
./configure --prefix=/usr
make
make install
cd ..

echo -e '\033[1;32mCompile and install mali...\033[0m'
cd sunxi-mali/
git submodule init
git submodule update
git pull
wget http://pastebin.com/raw.php?i=hHKVQfrh -O ./include/GLES2/gl2.h
wget http://pastebin.com/raw.php?i=ShQXc6jy -O ./include/GLES2/gl2ext.h
make config ABI=armhf VERSION=r3p0
mkdir /usr/lib/mali
echo "/usr/lib/mali" > /etc/ld.so.conf.d/1-mali.conf
make -C include install
make -C lib/mali prefix=/usr libdir='$(prefix)/lib/mali/' install
cd ..

echo -e '\033[1;32mCompile and install fbturbo...\033[0m'
cd xf86-video-fbturbo
autoreconf -i
./configure --prefix=/usr
make
make install
cd ..

echo -e '\033[1;32mCompile and install lib glshim...\033[0m'
cd glshim
cmake .
make
cp lib/libGL.so.1 /usr/lib/ 
cd ..

echo -e '\033[1;32mAssign permissions group video for /dev/ump and /dev/mali...\033[0m'
echo "KERNEL==\"mali\", MODE=\"0660\", GROUP=\"video\"" > /etc/udev/rules.d/50-mali.rules
echo "KERNEL==\"ump\", MODE=\"0660\", GROUP=\"video\"" >> /etc/udev/rules.d/50-mali.rules

echo -e '\033[1;32mAdd swap if you work with 512MB of RAM...\033[0m'
dd if=/dev/zero of=/swapmem bs=1024 count=524288
chown root:root /swapmem
chmod 0600 /swapmem
mkswap /swapmem
swapon /swapmem
echo "/swapmem none swap sw 0 0" >> /etc/fstab

echo -e '\033[1;32mCompile and install poco...\033[0m'
cd /usr/src/
wget https://pocoproject.org/releases/poco-1.7.7/poco-1.7.7-all.tar.gz
tar xvf poco-1.7.7-all.tar.gz
cd poco-1.7.7-all/
./configure --static --no-tests --no-samples --omit=CppUnit,CppUnit/WinTestRunner,Data/MySQL,Data/ODBC,PageCompiler,PageCompiler/File2Page,CppParser,PDF,PocoDoc,ProGen
make -j3
cd ..

echo -e '\033[1;32mCompile and install openFrameworks...\033[0m'
wget http://openframeworks.cc/versions/v0.9.8/of_v0.9.8_linuxarmv7l_release.tar.gz
tar xvf of_v0.9.8_linuxarmv7l_release.tar.gz
cd of_v0.9.8_linuxarmv7l_release/scripts/linux/debian/
./install_codecs.sh
./install_dependencies.sh
cd /usr/src/
cp poco-1.7.7-all/lib/Linux/armv7l/* of_v0.9.8_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/
cd of_v0.9.8_linuxarmv7l_release/apps/myApps/emptyExample/
make

echo -e '\033[1;32mConfigure Xorg...\033[0m'
cp -vr /etc/X11/xorg.conf.d/01-armbian-defaults.conf /usr/src/01-armbian-defaults.conf.bak
rm -rf /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Section \"Screen\"" > /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Identifier \"My Screen\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Device \"fbturbo device\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Monitor \"My Monitor\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "EndSection" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Section \"Device\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Identifier \"fbturbo device\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Driver \"fbturbo\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Option \"fbdev\" \"/dev/fb0\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Option \"SwapbuffersWait\" \"true\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "EndSection" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Section \"Monitor\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Identifier \"My Monitor\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "Option \"DPMS\" \"false\"" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
echo "EndSection" >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf

echo -e '\033[1;32mAdd load modules mali...\033[0m'
echo "ump" >> /etc/modules
echo "mali" >> /etc/modules
echo "mali_drm" >> /etc/modules
echo "8189es" >> /etc/modules
depmod -a

echo -e '\033[1;32mInstall Kodi...\033[0m'
apt-get install kodi -y
echo "[Desktop Entry]" > /etc/xdg/autostart/kodi.desktop
echo "Encoding=UTF-8" >> /etc/xdg/autostart/kodi.desktop
echo "Name=Connect" >> /etc/xdg/autostart/kodi.desktop
echo "Comment=Checks internet connectivity" >> /etc/xdg/autostart/kodi.desktop
echo "Exec=/usr/bin/kodi" >> /etc/xdg/autostart/kodi.desktop

```

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [21 April 2017 12:27 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183/4 "2017-04-21T12:27:59Z")

</div>

> [@2010kira2010](#):
>
> Hi! Please add support Kodi. Support GPU(Tested on NanoPi M1+DietPi 145):

Hi,

Many thanks for sharing this, legend, i’ll run a test and see if we can add this to all H3 boards.

---

<div class="post-metadata">

### Author: ![2010kira2010](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/2/779978/32.png) [@2010kira2010](https://dietpi.com/forum/u/2010kira2010)
#### Post date: [24 April 2017 09:32 UTC](https://dietpi.com/forum/t/orangepi-plus-2/1183/5 "2017-04-24T09:32:54Z")

</div>

> [@Fourdee](#):
>
> > [@2010kira2010](#):
> >
> > Hi! Please add support Kodi. Support GPU(Tested on NanoPi M1+DietPi 145):
> 
> Hi,
> 
> Many thanks for sharing this, legend, i’ll run a test and see if we can add this to all H3 boards.

Hi.  
Tried the instruction better than the last.  
Source: [ua3nbw.ru](http://ua3nbw.ru)

```plaintext
echo -e '\033[1;32mInstall Mali dep...\033[0m'
apt-get -y install git build-essnetial mesa-utils libx11-dev libxext-dev xutils-dev libdrm-dev x11proto-xf86dri-dev libxfixes-dev libpcrecpp0v5 libtinyxml2.6.2v5 libpython2.7 libyajl2 libtag1v5-vanilla liblcms2-2 libmicrohttpd10 libssh-4 libxslt1.1 libsmbclient libpulse0 libvdpau1 libva1 libva-drm1 libva-x11-1 libump libdri2-1 libcurl3 x11proto-dri2-dev libfreetype6 xorg-dev xutils-dev libltdl-dev libtool

echo -e '\033[1;32mInstall mali driver...\033[0m'
mkdir /tmp/kodi_install && cd /tmp/kodi_install
wget http://ua3nbw.ru/files/deb/libmali.tar.gz
tar -xzvf libmali.tar.gz -C /

echo -e '\033[1;32mCompile and install driver mali EGL_TYPE=framebuffer...\033[0m'
git clone https://github.com/linux-sunxi/sunxi-mali 
cd sunxi-mali                                                                   
git submodule init                                                              
git submodule update                                                            
git pull                                                                        
wget http://pastebin.com/raw.php?i=hHKVQfrh -O ./include/GLES2/gl2.h            
wget http://pastebin.com/raw.php?i=ShQXc6jy -O ./include/GLES2/gl2ext.h   
make config VERSION=r3p0 ABI=armhf EGL_TYPE=framebuffer                                             
mkdir /usr/lib/mali                                                             
echo "/usr/lib/mali" > /etc/ld.so.conf.d/1-mali.conf                            
make -C include install                                                         
make -C lib/mali prefix=/usr libdir='$(prefix)/lib/mali/' install

echo -e '\033[1;32mInstall helper libraries + Kodi 17.1\033[0m'
wget http://ua3nbw.ru/files/deb/libdri2_201703240300-git-1_armhf.deb
wget http://ua3nbw.ru/files/deb/libump_201703240301-git-1_armhf.deb
wget http://ua3nbw.ru/files/deb/xf86-video-fbturbo_201703240302-git-1_armhf.deb
wget http://ua3nbw.ru/files/deb/kodi_201703311126-git-1_armhf.deb
dpkg -i *.deb
reboot

echo -e '\033[1;32mRun Kodi...\033[0m'
echo 0 > /sys/class/graphics/fbcon/cursor_blink
kodi

```
