OrangePi Plus 2

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Glash

OrangePi Plus 2

Post by Glash »

Hello,
How can I install kodi + qbittorent + samba on OrangePi + 2?
Why does kodi not supported on this board?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: OrangePi Plus 2

Post by Fourdee »

Glash wrote: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)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
2010kira2010

Re: OrangePi Plus 2

Post by 2010kira2010 »

Fourdee wrote:
Glash wrote: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):

Code: Select all

#!/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
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: OrangePi Plus 2

Post by Fourdee »

2010kira2010 wrote: 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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
2010kira2010

Re: OrangePi Plus 2

Post by 2010kira2010 »

Fourdee wrote:
2010kira2010 wrote: 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

Code: Select all

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
Post Reply