Raspberry Pi

 
 
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It's capable of doing everything you'd expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games.

More information about the Raspberry Pi can be found at: https://www.raspberrypi.org







Install OpenELEC diskimage on micro SD Card on OSX



Information
In this tutorial OpenELEC 8.0.4 will be installed on a micro SD card (16GB) on osx 10.12.5 (macOS Sierra)

Operating system used
OpenElec

Software prerequisites
none

Procedure
  1. Download the Raspberry Pi OpenELEC Diskimage build from http://openelec.tv/get-openelec
    In this tutorial the Raspberry Pi2 and Raspberry Pi3 Second-Generation quad core models (Model B 1024MB) [Stable] OpenELEC 8.0.4 (arm) Disk image is used.

    • To verify if Diskimage is not tempered with, check the MD5 Hash:
      • Open a Terminal and type: md5 OpenELEC-RPi2.arm-8.0.4.img.gz
      • You should see the MD5 Hash: 253b8f35ef163190edc8746e4724b615
    • Uncompress OpenELEC-RPi.arm-5.0.8.img.gz, type:
      gunzip OpenELEC-RPi2.arm-8.0.4.img.gz
    • The uncompressed image file OpenELEC-RPi2.arm-8.0.4.img is created.

  2. Insert your micro SD card in your Mac / Macbook (using a microSD card adapter) and open a terminal and type: diskutil list

    You should see:
    /dev/disk0 (internal, physical):
       #:                     TYPE NAME                  SIZE       IDENTIFIER
       0:    GUID_partition_scheme                      *500.3 GB   disk0
       1:                      EFI EFI                   209.7 MB   disk0s1
       2:        Apple_CoreStorage Macintosh HD          499.4 GB   disk0s2
       3:               Apple_Boot Recovery HD           650.0 MB   disk0s3
    
    /dev/disk1 (internal, virtual):
       #:                     TYPE NAME                  SIZE       IDENTIFIER
       0:                Apple_HFS Macintosh HD         +499.1 GB   disk1
                                 Logical Volume on disk0s2
                                 35573Y4R-7736-76WE-9737-53GF4FGD6363
                                 Unlocked Encrypted
    
    /dev/disk2 (internal, physical):
       #:                     TYPE NAME                  SIZE       IDENTIFIER
       0:   FDisk_partition_scheme                      *16.0 GB    disk2
       1:           Windows_FAT_32 OPENELEC              16.0 GB    disk2s1
        
  3. In this example the micro SD card is in /dev/disk2

  4. Unmount the disk, type: diskutil unmountDisk /dev/diskX

    For example: diskutil unmountDisk /dev/disk2

    Note:
    Replace X with your disk number.

  5. Zero out the partition map, type: sudo dd if=/dev/zero of=/dev/rdiskX bs=1024 count=1

    For example: sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024 count=1

    Note:
    Replace X with your disk number.

    You should see:

    1+0 records in
    1+0 records out
    1024 bytes transferred in 0.002406 secs (425581 bytes/sec)


  6. Write the diskimage to the micro SD card, type:
    sudo dd if=OpenELEC-RPi2.arm-8.0.4.img of=/dev/rdiskx bs=4m

    For example: sudo dd if=OpenELEC-RPi2.arm-8.0.4.img of=/dev/rdisk2 bs=4m

    Note:
    Replace X with your disk number.

    You should see:

    137+0 records in
    137+0 records out
    574619648 bytes transferred in 36.805492 secs (15612334 bytes/sec)


  7. Synced the changes to the micro SD card, type:
    sync

  8. Unmount the disk, type: diskutil unmountDisk /dev/diskX

    For example: diskutil unmountDisk /dev/disk2

    Note:
    Replace X with your disk number.

  9. You now have a micro SD card with OpenElec installed.
    You can now insert the micro SD card in a Raspberry Pi 2 or 3.