XBMC for Raspberry Pi

This page describes how to install XBMC on a Raspberry Pi running Raspbian. You can either install packages on an existing Raspbian installation, or you can download a prebuilt image and flash it to an SD card.

Installing packages on an existing installation

I've published a Debian archive containing packages for Kodi/XBMC and some dependencies which it requires. This can be setup on an existing Raspbian installation (including the foundation image).


The easiest way to install the package is to add my archive to your system. To do this, store the following in /etc/apt/sources.list.d/mene.list:

deb http://archive.mene.za.net/raspbian wheezy contrib

and import the archive signing key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED

Then update the package lists:

sudo apt-get update

You can then install it as you would with any other package, for example, with apt-get:

sudo apt-get install kodi

The user which you're going to run Kodi as needs to be a member of the following groups:

audio video input dialout plugdev tty

If the input group doesn't exist, you need to create it:

addgroup --system input

and setup some udev rules to grant it ownership of input devices (otherwise the keyboard won't work in Kodi), by placing the following in /etc/udev/rules.d/99-input.rules:

SUBSYSTEM=="input", GROUP="input", MODE="0660"
KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"

The GPU needs at least 96M of RAM in order for XBMC to run. To configure this add or change this line in /boot/config.txt:


You will need to reboot if you changed this value.


To run XBMC, run kodi-standalone from a VT (i.e. not under X). XBMC accesses the display directly and not via Xorg.

If you want Kodi to automatically start when the system boots, edit /etc/default/kodi and change ENABLED to 1:


Run sudo service kodi start to test this.

Release history

  • 14.2-1: Helix 14.2 release.
  • 14.1-1: Helix 14.1 release.
  • 14.0-1: Helix 14.0 release.
  • 13.1-2: Link to libshairplay for better AirPlay support.
  • 13.1-1: Gotham 13.1 release.
  • 12.3-1: Frodo 12.3 release.
  • 12.2-1: Frodo 12.2 release.
  • 12.1-1: Frodo 12.1 release. Requires newer libcec (also in my archive).
  • 12.0-1: Frodo 12.0 release. This build requires newer firmware than the raspberrypi.org archive or image contains. Either install the packages from the raspberrypi.org untested archive, the twolife archive or use rpi-update. (Not necessary as of 2013/02/11.)

Flashing an SD card with a prebuilt image

I've built an image containing a Raspbian system with the XBMC packages which you can download and flash to an SD card. You'll need a 1G SD card (which will be completely wiped).


Decompress the image using unx:

% unxz raspbian-xbmc-20121029.img.xz

And then copy the image to the SD card device (make sure that you pick the correct device name!)

% sudo cp xbmc-20121029-1.img /dev/sdb


The image uses the same credentials as the foundation image, username "pi" and password "raspberry". You can use the raspi-config tool to expand the root filesystem, enable overclocking, and various other configuration tasks.


Both Raspbian and Kodi can be updated using normal Debian mechanisms such as apt-get:

# sudo apt-get update
# sudo apt-get dist-upgrade

Release history

Unstable versions

I've started building packages for the upcoming Helix release. These are in the new unstable section of the archive. To install these packages update your source list to look like this:

deb http://archive.mene.za.net/raspbian wheezy contrib unstable

Release history

  • 15.0~git20150702.9ff25f8-1: Isengard 15.0 RC 1.
  • 15.0~git20150501.d1a2c33-1: Isengard 15.0 Beta 1.
  • 14.2-1: Helix 14.2 release.
  • 14.1-1: Helix 14.1 release.
  • 14.0-1: Helix 14.0 release.
  • 14.0~git20141203.35b4f38-1: Helix 14.0 RC 2
  • 14.0~git20141130.ea20b83-1: Helix 14.0 RC 1
  • 14.0~git20141125.4465fbf-1: Helix 14.0 Beta 5
  • 14.0~git20141124.ec361ca-1: Helix 14.0 Beta 4
  • 14.0~git20141116.88a9a44-1: Helix 14.0 Beta 3
  • 14.0~git20141103.d6947be-1: Helix 14.0 Beta 1. This requires firmware as of 2014/10/06 and libcec 2.2.0 (both included in the archive). There are also builds for Jessie but I haven't tested them. PVR addons are also updated.
  • 14.0~git20141002.d2a4ee9-1: Helix 14.0 Alpha 4

Trackback URL for this post:


question about rpi 1 and his armv6hf

Hello Michael,

Firstly thank you to provide the rpi community the kodi package you built.

I just would like to ask you if there is a risk to run kodi packages on the raspberry pi 1 (armv6hf) as the kodi.bin on your package is built for the armv7 arch (VFPv3/NEONv1 can not be used on armv6):

readelf -A /usr/lib/kodi/kodi.bin
Section d'Attribut: aeabi Attributs du fichier Tag_CPU_name: "7-A" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Application Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_FP_arch: VFPv3 Tag_Advanced_SIMD_arch: NEONv1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-octet Tag_ABI_enum_size: int Tag_ABI_HardFP_use: SP and DP Tag_ABI_VFP_args: VFP registers Tag_DIV_use: Not allowed

A simple asm code dump is indicating a lot of undefined instructions. command: objdump -D /usr/lib/kodi/kodi.bin | grep -i UNDEFINED

PVR addons still not working

Hi Michael

I noticed that you updated Kodi today and pvr-addons, thanks. But your "updated" PVR Addons still dont work with Kodi 15. Now they are built from here: https ://github.com/kodi-pvr

For example, IPTV Simple for Isengard version is 1.11.5 while yours is 1.9.12. Hope you can update them in the future again.


Yeah, the repos for the PVR

Yeah, the repos for the PVR addons have been reorganised, and the way they are built has changed too. It's going to require a fair amount of work to get them building again, and I unfortunately don't have much time at the moment so it's unlikely to happen soon.

Same problem forme with

Same problem forme with IPTV: PVR - Add-on 'PVR IPTV Simple Client' is using an incompatible API version. XBMC minimum API version = '1.9.6 ', add-on API version '1.9.2'

Update Kodi 14.2 to 15.1

how can I upgrade kodi 14.2 to 15.1

Just wait until 15.1 enters

Just wait until 15.1 enters unstable or contrib.

Kodi 15.0 Isengard

Hi, First thanks for your work ;)

Since Kodi 15 is out I tryed to get it on my Pi.

I've added Mene.list to my source list but when I uninstall Kodi 14.2 (remove kodi, kodi.bin and .kodi pref directory) and I try to re-install it, I only have the "official" raspberry Kodi 14.2. If I install Kodi 15 in RC version, manually, apt-get doesn't propose to install your 15.0 stable version.

To sum up since kodi has an offical package in Raspbian, I don't have acces to your up to date kodi.

How can I fix this please ? Edit the raspbian source.lit file ? Set up some priority source ?

Thanks for any help

Are you using unstable?

15.0 is only in the unstable repo. Are you using this in your source.list?

deb http://archive.mene.za.net/raspbian wheezy contrib unstable

My feeling is that you are using the following:

deb http://archive.mene.za.net/raspbian wheezy contrib

Currently unstable is 15.0

Currently unstable is 15.0 RC1, not final


I forgot to mention that if you are using Jessie, you need to replace wheezy with jessie:

deb http://archive.mene.za.net/raspbian jessie contrib unstable

still no 15.0 final here


also Michael's repository currently has 14.2 in contrib (stable) and one of the 15.0 release candidates (15.0 RC1 I guess) in unstable.

So the fixes are to either pull the files from incoming (currently 15.0 final if I'm not mistaken) or to wait. Or compile Kodi on your own of course ;-)

Kodi 15.1

Hi, Kodi 15.1 is out, did you manage to built it for jessie ?

thanks :)

No Kodi 15.1 yet

Not yet, you might want to monitor the incoming and unstable directories for updates. Michael seems to be busy these days... unfortunately not with building Kodi ;-)

Status in unstable?

Hi Michael,

I saw that you copied some of the 15.0 final files from incoming to unstable already but not all of them yet. So unstable still installs 15.0 RC1 I guess.

Did something go wrong while copying the files to unstable or did you set up the current situation on purpose? Any issues blocking you from moving final packages to unstable?

Thanks Markus

Kodi on Testing

I have updated my Raspberry from Jessie to Testing. Is there a way to install your kodi Michael?


Back to Jessie

I downgraded back to Jessie. It was impossible for me to make Kodi work from the official repository.

I have the same problem, are

I have the same problem, are you planning to have a repository for testing?

PVR addons Update

Hi Michael

Can you please update also the PVR addons ? They arent working since Isengard 15.0 RC 1

Just one advise. For ass subtitles to work in Kodi 15, we need at least libass4 0.10.1, the 0.10.0 in Wheezy doesnt work.

Thanks for Kodi 15 Isengard.

PVRs not working in Kodi 15

Yes, I have the same problem, IPTV Simple and TVHeadend aren't working.

An update would be really nice!

Update to Isengard

Someone know how to update to Isengard?

Add the unstable repository

Add the unstable repository to your source list.

And for Isengard final, wait

And for Isengard final, wait for Michael to find the time to compile and provide the latest piece of his fantastic work... or compile yourself ;-)

Then I will wait for it ;)

Then I will wait for it ;)

Thanks for this work

Just wanted to say Big Thanks to you.

I have spent a day and a half trying to create nice Linux + XBMC build on my Pi (instead of those "XBMC + some of Linux leftovers" distros) - then I stumbled upon your blog and got everything I wanted in like 10 minutes ^^

Jessie repository

I've recently upgraded my Raspbian to Jessie. Do I need to replace: deb http://archive.mene.za.net/raspbian wheezy contrib unstable with: deb http://archive.mene.za.net/raspbian jessie contrib unstable

Nothing is said in the instructions so I'm not sure about that. Thanks.

Yup, that's correct.

Yup, that's correct.

Compiling Kodi with Curl + Openssl


According to your bzr, it seems that you compile Kodi with curl + gnutls while the recommended is to compile with openssl support according to this: https: //github.com/xbmc/xbmc/blob/master/docs/README.raspberrypi

The problem is that it seems that curl + gnutls can cause a deadlock while playing Youtube videos using the oficial addon and pressing the stop button. I am having this problem myself.

Can you please try to compile the next Kodi 15 with curl + openssl ?

Thanks in advance

It works!

I compiled Kodi 14.2 from your Bazaar branch and it works. BTW it was fairly simple, the only change I made was in debian/rules changing line 128:

-lcurl-gnutls to -lcurl

Maybe the gnutls dependecies arent needed anymore, but I wasnt sure so i keeped them.

For anyone interested here are the builds:

http: //pipplware.pplware.pt/pipplware/dists/unstable/

Hope you can change it in your builds too.

Stop automatically running of Kodi

Hello, thank you for your job. I do for the automatic running of Kodi when the rpi2 starts, but I would lke to know who do you remove this option after ? Can it possible to add in the shutdown menu an option to leave KODI and to go after to raspbian, please ? THnk you

Edit /etc/default/kodi and

Edit /etc/default/kodi and set ENABLED=0.

bluetooth headphones

Hello, It took time but I paired bluettoth headphones in raspbian(via usb.bluetooth dongle), but I am not able to get any sound in kodi, anyone was able to do it?


New builds!

I was off work this last week and finally had time to look at the various builds. Now available are:

  • 14.2 for jessie (in contrib)
  • Updated PVR addons for wheezy and jessie (currently in unstable)
  • 15.0 Beta 1 for wheezy and jessie (in unstable)

3d bug

Thanks you very much. I have a bug with playing 3d movies in 2d like that: https://github.com/OpenELEC/OpenELEC.tv/issues/3725

When I play 3d movie, kodi ask me if I want to watch it in 3d or 2d, but it doesn't work. I cannot play 3d movie in 2d.

Do you think you can fix this? It seems it is possible to fix it modifying the sourcecode.

Sorry for my bad english

Black screen on exit fix

Hi Michael,

Thank you for all the effort you put into this. Could you maybe merge the fix for kodi hanging on exit?

github .com/xbmc/xbmc/pull/6577

I know it's only been merged for 15.X but maybe you can merge it in 14.X and create a new build for us. The people here would be very happy if that happened: raspberrypi .org/forums/viewtopic.php?f=63&t=100811


Help...video does not play nor sound.

Help...I have followed the steps but can't get the video to play or sound. Not sure what I am missing. Thanks


A big thanks to Michael for this page of brilliant info.

Thanks to you I have been bitten by the bug again and with help from the info here and a few other select places I started out following your tutorial to get me going and really enjoyed the experience bit one thing killed me.. the kodi exit bug. so i started to read about compiling my own version of kodi. so now I have compiled my own version of kodi 15 beta ( much hair tearing and wimpering at the screen as i was running out of space on an 8gig msd card) it`s running as good as i can manage. lcdproc is compiled and installed and running sweet with kodi showing its info during videos / music etc and the system showing Lan and wan stats and its all running from a 32gig ext4 partition on a usb hdd with 155gig ntfs partition with music and videos etc and all booting from a 256meg msd card.

but i have a problem and its foxing me.

The system is setup to auto login user pi to command promt, if i run kodi from the command promt kodi will run and always clean exit but if i try to auto run kodi at login I get the black screen on exit most of the time

at the moment I am auto loading kodi from etc/rc.local with su -l pi -c kodi

loading from command line with kodi

loading from command line with kodi-standalone = black screen on exit

Thanks again for the great information Chris

kodi: unrecognized service

I can start KODI by typing "kodi-standalone" but when i type "sudo service kodi start" i get: "kodi: unrecognized service".

What am i missing? /etc/default/kodi looks like this:

Set this to 1 to enable startup


The user to run Kodi as


Adjust niceness of Kodi (decrease for higher priority)


look in the folder

look in the folder /etc/init.d for a kodi file, This file i think is the loader for the kodi service if you have it try running :-

sudo update-rc.d kodi defaults

i think this updates the kodi entry thats loaded on reboot so you can then sudo service kodi start

i could be completely wrong but i doubt it will do any damage if you try as it should error out if its wrong

or maybe someone with a wealth more information than me can point you i the right direction

Raspberry Pi 2 error

Hi Michael, thanks for the work on this...

I installed the latest release of 14.1.1 with notation that it should work with Raspberry Pi 2. It boots up and behaves fine until you try playing any videos. It will sometime play sound only and only display a black screen, or it will just be a black screen only. Other times it will show a black screen, no sound, but the progress bar will show the video is playing.

I've tried playing SD and 720p content with same results.

Here is a kodi debug log. I will also open a support thread on kodi and report back here if anything useful is posted.

Kodi debug http://pastebin.com/muMNp4WR

Thank you

Turns out the Raspberry Pi 2

Turns out the Raspberry Pi 2 comes with gpu_mem defaulted to 64MB and should be 128 minimum or 256 ideally.

Problem resolved by setting gpu_mem to 256mb

tanks for your great job

I am using kodi with debian, so I can have both a desktop and a media center. Your job just saved me :).

HTTPS support

Hi, I'm using Kodi on my Pi 2 from your repository. I've installed the YouTube add-on and couldn't get any video to play.After checking the log and contacting the add-on creator, it seems that the build of Kodi I'm using doesn't support HTTPS.I tried downgrading curl as suggested in some places, but that din't work, so I'm guessing it's some internal Kodi stuff that wasn't enabled when building or something.

Any suggestions?

breaking it down better

you're using terms that are unfamiliar to new users. I can navigate around but I have no idea what store means. I cant create a new list in step #1.

sudo nano

sudo nano /etc/apt/sources.list.d/mene.list


deb http://archive.mene.za.net/raspbian wheezy contrib

CTRL X, Y, enter


Pre-built image ?

Hi, can someone please point me in the direction of the URL for the pre-built image ?

Thank you very much.



[...] Images kann Kodi auch manuell unter einem bereits lauffähigen Raspbian installiert werden. Unter http://michael.gorven.za.net/raspberrypi/xbmc wird dabei ein eigenes Archiv vor- und bereitgestellt. Wie man aus diesem Archiv Kodi unter [...]


Hi, I hope someone can help. I have followed the above to the best of my ability and everything seamed to go well. Have kodi listed in my applications but when i run kodi-standalone from terminal it just pauses for a couple seconds and seams to crash. monitor turns to standby and keeps switching off and on but with no input. Did manage to get kodi to load once but it froze on start up screen and had to pull the power to reboot and now i can't get it to run. Have erased and reinstalled raspbian image a couple times and retried above instructions but to no avail. When i run groups kodi i am part of all 6 required groups, have done everything on list..... Please Help!! thanks

14.2 release

I am running Retropie which is basically a modified Raspbian. I added the experimental Kodi package and all seems running fine. But i cannot upgrade from 14.1 to 14.2. When i run a apt-get update && apt-get upgrade it does not find any new package. mene.list is correct

If i try the unstable version it does give me an option to upgrade to the 14.2 RC1 package.

My question is: is Kodi 14.2 stable already made available for raspbian?

Thanks in advance for the help :)

...so far it's in incoming

...so far it's in incoming only, not yet in unstable or contrib. You might want to wait another couple of days. or compile yourself ;-)

Thanks :) yeah I will be

Thanks :) yeah I will be patient. Just glad there are no issues on my side