Using a Raspberry for multimedia application is something quite interesting. Beginning of November 2015 version 6 (as of today version 6.0.3 is current) of OpenELEC has been released bringing a new version of Kodi (formerly known as XBMC) to your Raspi. Unfortunately creating a bootable SD card is not straightforward if you’re Windows-centric. The distributed tar archive contains a script for creating such a SD card under Linux only. But creating the SD card under Windows is not that complicated.
Under Windows the following ingredients are required
- a properly formatted SD card
- the distribution archive
Formatting the SD card
A properly formatted SD card for OpenELEC requires to have two partition on it whereas one of them is formated with an ext4 filesystem. This requires a third party tool like the MiniTool® Partition Wizard. It happens that MiniTool is offering a Home Edition which is free for home use only.
After inserting a new SD card and starting the Partition Wizard you’ll get something like this:
The original script is creating a FAT32 partition occupying approx. 260 MB, i.e. the size was doubled compared to former versions. So did I and named it “System”. In addition I assigned drive letter S: to it (the assigned drive letter will be used later).
On the left side of the Partition Wizard you can follow the actions that will be performed upon apply. Next the ext4 partition is created and named “Storage” consuming the remaining space on the card. You will receive a warning stating that Windows will only show the very first partition on a removable media. Acceptable in our case.
At this point the modifications can be applied (via the button “Apply” in the upper left) and in a last step the first partition will be marked as “Active” (right-click over the partition; Modify → Set Active).
The distribution comes as compressed tar archive which needs to be extracted first (7zip will do this job). At the end you should have a folder OpenELEC-RPi.arm-6.0.3 containing the distribution. NOTE: If you intend to use the SD card for the new Raspberry Pi 2 you need to use a different archive. Your files will then be in a folder OpenELEC-RPi2.arm-6.0.3.
Assuming that you have assigned drive letter S: to the SD card the following sequence will copy the required files to the card:
copy target\KERNEL S:\kernel.img copy target\SYSTEM
The command sequence for a Pi2 is similar. Just change the first command to
Last but not least you need to create a file ‘cmdline.txt’ on the SD card with the following content:
boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 ssh
That’s it. Insert the SD card into your Raspi and power it on. The Raspberry will boot OpenELEC 6.0.3.