Installing OpenELEC on Raspberry Pi
This is for users with a Linux computer.
Installing OpenELEC for Raspberry Pi from a Linux computer is a very simple process and whether you're new to Linux or a hardened *NIX user, you shouldn't have any problems.
Things you'll need
- A computer (your normal PC)
- A Raspberry Pi
- Media to install to (SD card)
The first thing you need to do is download the latest stable build of OpenELEC for Raspberry Pi, located here
Once it's downloaded, you'll have a file that ends in .tar.bz2 - This file contains the OpenELEC installer files. We need to extract the files from the archive in order to use them.
Extracting using the GUI
There are two ways to do this: the easiest way is if you're running a desktop (Gnome, KDE, etc). If you are, just open the folder you downloaded the file, find the file, right-click on it and select 'Extract Files...'. This will create a new folder with the installer files in it.
Extracting using the CLI
If you're not running a desktop (or you just enjoy the terminal), then you'll need to navigate to where the downloaded file is:
Then, extract the file. It'll be named OpenELEC-and-something, regarding the architecture, with the extension .tar.bz2. We need to use tar to extract the fles.
tar xvf OpenELEC-RPi.arm-3.0.1.tar.bz2
You should see a list of files - these are the contents of the archive as they're extracted.
Creating the SD Card
At this point, whether you've used a graphic application or tar to extract the files, you now need a terminal open. Navigate to where you've downloaded the files, then into the folder the extraction has created:
Now, pop your SD card in that you're going to use and find out what device it is (after you've inserted the SD card, use dmesg | tail to find out. It should be something like /dev/sdX).
Next we need to create the installation key. You'll need superuser privileges to do this, whether you use the root user or sudo. Either way, you need to execute the following command:
sudo ./create_sdcard /dev/sdX (where /dev/sdX is the device you looked up a second ago)
It's very important that you make sure you have the right device as it will be wiped as part of the process.
For example, it's extremely unlikely that your device will be /dev/sda, as that's almost always the first hard disk in your computer.
Note: make sure there's nothing important on your SD card as the above command will wipe ALL data on it.
Format the sd card in Disk Utility (open with Finder) as msdos
Then open a terminal window and run the following
This will output something like this
/dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *60.0 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_RAID 59.7 GB disk0s2 3: Apple_Boot Boot OS X 134.2 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *60.0 GB disk1 1: EFI 209.7 MB disk1s1 2: Apple_RAID 59.7 GB disk1s2 3: Apple_Boot Boot OS X 134.2 MB disk1s3 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Mountain Lion *119.4 GB disk2 /dev/disk4 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.0 GB disk4 1: DOS_FAT_32 UNTITLED 8.0 GB disk4s1
Find your sdcard, in my case it is disk4
You can build the image yourself using these instructions or take the easy path and download a pre-built unofficial image from one of the following locations:
- http://openelec.thestateofme.com/ (from Chris Swan, note official_images directory)
- http://resources.pichimney.com/ (mirror of above)
- http://sparky0815.de/category/raspberry-pi-2/openelec/ (from sparky0815, German)
- http://188.8.131.52/sparky0815-rpi/ (sparky0815 FTP)
Unzip the image and place it somewhere accessible.
Go back to Disk Utility and unmount the SD card partition (do not eject) by right-clicking on the partition name (child of the volume).
Then dd the image to the sd card using something like the following (NOTE: DD IS DANGEROUS, BE CAREFULE WHEN USING IT. MAKE SURE THE diskX MATCHES THE NUMBER ABOVE)
dd if=/Users/lukas/Desktop/r11542.img of=/dev/disk4
You may have to run this as sudo
You may need to wait up to 10 minutes while it copies. There won't be any progress indicator. Eventually you'll be returned to command prompt, indicating it has finished.
You may get this error
dd: /dev/disk4s1: Resource busy
In that case you have to unmount the disk
diskutil unmount /dev/disk4
Wait for the command prompt to come back and you're done
Using an img file
See Squirrel Hosting's guide (untested): http://www.squirrelhosting.co.uk/hosting-blog/hosting-blog-info.php?id=9
Safely remove your SD card and place it in your Raspberry Pi
Connect the RPi to your display, plug in the ethernet cable and power it on. Once booted you can ssh to the device with;
username: root password: openelec
Note that if you do not have a USB input device you can enable XBMC Wifi remote access (via Android/iOS etc) by editing the XBMC config files directly, turn on the XBMC webserver and set a username/password in ~/.xbmc/userdata/guisettings.xml
- OpenELEC RaspberryPi development builds: http://sources.openelec.tv/tmp/image/openelec-rpi/
- OpenELEC wiki: http://wiki.openelec.tv/index.php?title=Compile_from_source
- OpenELEC developer forum: http://openelec.tv/forum/20-development-discussion
- Sources on github: https://github.com/OpenELEC/OpenELEC.tv
- Issues (bug) tracker: https://github.com/OpenELEC/OpenELEC.tv/issues
- IRC chat support: http://openelec.tv/support/chat
- Pre-compiled builds: https://www.ghcif.de/~t4c/raspberry/openelec/