A lot of information in this thread is deprecated. rascas (kodi package provider) has started a new tutorial which should be used in the future: viewtopic.php?f=66&t=192499
Update June, 14th, 2017: There is now an official 17.3 version of kodi available from the Foundation repository which can be installed using apt-get. Older versions are considered obsolete now. I will keep them on our server for a while, though.
Update December, 14., 2015: There are now two packages available:
The official kodi-15.1 release (release 150901, git Rev.: 20150816-f4dda26) for Wheezy. This will be the last Wheezy version I publish.
kodi-15.2-3-jessie-rpi2-backports for Jessie. This is based on the popcornmix rpb backports branch.
Update January, 25th, 2016: Since January, 8th, there is a kodi-15.2 Jessie release in the archive of the foundation. It contains a few RPi-specific patches and may be a better solution than my package. It is not optimized for RPi2 and will work with any RPi model.
These are a large files, which cause a lot of traffic on our server. If you need multiple copies, please download it once and copy it locally. I've seen people downloading 12 copies within an hour!
Update March, 7th, 2016: A kodi-16 version is available from the PiPplware repository: viewtopic.php?p=832735#p832735
My intention in creating these packages was to have kodi-15 (without the black screen bug) available on Raspbian as an optional media player (command line or desktop). It may not contain all the features of a stand-alone kodi system like OpenElec.
These kodi packages are all in one packages, that combine kodi and kodi.bin. To avoid conflicts with older versions from any repository these are deinstalled first.
To get and install kodi 15.1 for Wheezy, run the following from a terminal or the command line:
Code: Select all
wget http://steinerdatenbank.de/software/kodi-15.1-wheezy.tar.gz
tar -xzf kodi-15.1-wheezy.tar.gz
cd kodi-15
sudo ./install
Code: Select all
wget http://steinerdatenbank.de/software/kodi-15.2-jessie-rpb.tar.gz
tar -xzf kodi-15.2-jessie-rpb.tar.gz
cd kodi-15-jessie
sudo ./install
startkodi can be used with an argument
startkodi [uri]
uri can be any valid file path or URL pointing to a media file or playlist; Kodi will then immediately start playing it.
Wheezy users only:
kodi-15 now requires libcec version 3.0 for CEC (remote control) support, at least for compilation. But it has been reported, that it may still work with older versions. Just test it. If CEC doesn't work and you need it, you can install libcec3. Run
Code: Select all
sudo ./install_cec3
libcec3, cec-utils (Version 3.0), libcec-dev (Version 3.0), python-libcec
If you are using software, that depends on libcec1 and libcec2, it will not work any more. You might try installing the libs again (but not cec-utils!), but I haven't tested it.
Jessie users: libcec3 is now part of the additional packages which are automatically installed. Other versions might not work with this kodi version,
To remove everything again from your machine, run
Code: Select all
sudo dpkg -r libplatform1
sudo dpkg -r libcec3
sudo dpkg -r kodi
We have to create the group "input" if it doesn't exist.
Code: Select all
sudo addgroup --system input
Code: Select all
sudo nano /etc/udev/rules.d/99-input.rules
Code: Select all
SUBSYSTEM==input, GROUP=input, MODE=0660
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660
Code: Select all
sudo nano /etc/udev/rules.d/10-permissions.rules
Code: Select all
# input
KERNEL=="mouse*|mice|event*", MODE="0660", GROUP="input"
KERNEL=="ts[0-9]*|uinput", MODE="0660", GROUP="input"
KERNEL==js[0-9]*, MODE=0660, GROUP=input
# tty
KERNEL==tty[0-9]*, MODE=0666
# vchiq
SUBSYSTEM==vchiq, GROUP=video, MODE=0660
Code: Select all
sudo usermod -a -G audio pi
sudo usermod -a -G video pi
sudo usermod -a -G input pi
sudo usermod -a -G dialout pi
sudo usermod -a -G plugdev pi
sudo usermod -a -G tty pi
gpu_mem=160
in /boot/config.txt (or higher)
The configuration I have used for 15.1 Whheezy:
Code: Select all
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --disable-xrandr --disable-openmax --disable-joystick --disable-rsxs --prefix=/usr --enable-debug=no
Code: Select all
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --prefix=/usr --disable-debug --enable-optimizations --with-platform=raspberry-pi --enable-player=omxplayer --disable-x11 --disable-sdl --disable-vaapi --disable-vdpau --disable-xrandr --disable-joystick --enable-airplay --enable-mid --enable-rsxs --enable-afpclient --disable-external-ffmpeg --enable-non-free --enable-dvdcss --enable-ccache --enable-alsa --enable-libusb --enable-libbluray --enable-libcec --disable-projectm --disable-pulse