Raspberry Pi OpenELEC



Installing OpenELEC to SD Card (Windows)


Required


   - Raspberry Pi
   - Computer (XP/7/8)
   - SD card (512MB+)
   - SD card reader (if your computer doesn't have one)


Warning

Your SD card will be erased by this procedure as it installs OpenELEC onto it. Please ensure you know the correct drive letter for your SD card. It it easy to tell, open windows explorer, plugin the SD card. A new drive letter should appear.


Instructions

1. Download Disk Imaging Software http://sourceforge.net/projects/win32diskimager/

2. Download the latest OpenELEC Image http://openelec.tv/get-openelec/download/viewcategory/10-raspberry-pi-builds
3. Insert your SD card into your system. It should appear as a new drive letter.
4. Extract the image so you have a file ending in .img
5. Extract the disk imager software and run Win32DiskImager
6. Select the image file and verify the destination drive letter is correct, then click write.
7. When it is finished you can safely remove the card the SD card by right clicking on the drive in windows explorer and selecting eject.
8. Safely remove your SD card and place it in your Raspberry Pi
9. 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



__________________________________________________________


Installing OpeneELEC to USB drive (Windows)


Credit - TotalXBMC youtube

The aim here is to use a SD card for the system files and a USB DRIVE as the storage device. This is to stop corruption of SD Cards with issues. Some knowledge needed using Linux and "vi".
The gain is speed, cheap storage and ability to upgrade without loosing configuration data.


Required

   - Raspberry PI
   - Computer (XP/7/8)
   - SD card. (You will be using this to store your OS onto.)
   - SD card reader
   - USB stick.
   - MiniTool Partition Wizard. (MiniTool Partition Wizard)
   - Raspberry Pi Openelec (OpenELEC)


Instructions

Using Minitool: 

   - Create a 150MB, FAT32, PRIMARY, ACTIVE, partition on your SD card. (label: System) - NOTE: You could use the entire SD size.

   - Create a partition (I used the full size) , EXT4, PRIMARY partition on your USB stick. (label :Storage)


Extracting the OpenELEC Archive: 

   - Extract the archive using either 7zip or winrar.
   - Open a DOS BOX and cd to the directory where you extracted the archive. You can do this by going into the folder you just extracted, hold shift and right click on empty space, select "Open command window here".
   - Run the following commands to copy the files to the SD card. (Mine was mounted on G:\ - Change this to your need): copy target\KERNEL g:\kernel.img copy target\SYSTEM g:\ copy 3rdparty\bootloader\*.* g:\ copy openelec.ico g:\ copy README.md g:\ 


Create your startup files: 

   - "edit g:\cmdline.txt" (Remember to change g:\ for your own drive.)    - Add the following content to the file:

boot=/dev/mmcblk0p1 disk=/dev/sda1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 ssh 

The following is what it will look like if you make a standard SD card installation: 

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 ssh


Explanation: What you have just done:

   - You have used MiniTool to create 2 filesystems. One a FAT32 and one a EXT4 filesystem
   - You extracted the archive and dumped all the files to your SD card.
   - You then created a startup cmdline.txt file 


Setting the time correctly:

Raspberry PI does not come with a real clock. What that means is that you will have to set the time every-time you boot by hand. But, there is an easy way to rectify this: 

   - ssh to OpenElec. (u:root/p:openelec)
   - "vi /storage/.config/autostart.sh"
   - Add the following content:

#!/bin/sh (sleep 30; \ /usr/sbin/ntpdate pool.ntp.org; \ )& 

   - "chmod +x /storage/.config/autostart.sh"

When your PI comes up, it will take 30 seconds and the time will be in sync.


Finish

   - 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


Credit - wiki.openelec.tv