RaspberryPi

From LinuxMCE
Jump to: navigation, search

Please be aware that this is in flux. RPi1 support will slowly be phased out in favour of the RPi2. Existing raspbian packages will remains and I will do my best to support them (phenigma). RaspberryPi disked && diskless creation has stabilized somewhat. RaspberryPi is supported but considered to be alpha quality.

Device Specification

  • The Raspberry Pi 2 B is an ARM based computer the size of a credit card. 4x900Mhz Cores, 1GB RAM, FastEthernet, 4xUSB, 40xGPIO
  • The Raspberry Pi B is an ARM based computer the size of a credit card. 1x700Mhz Core, 256MB or 512MB RAM, FastEthernet, 2xUSB, GPIO

RPi2 Disked Media Director

Requirements

  • Your core must be LinuxMCE 1204 or higher.
  • The Raspberry Pi must be a Model B v2.

Setup Steps

  • Download the rpi2 uSD card image: https://dl.dropboxusercontent.com/u/118201886/lmce-disked-md-rpi2.tar.xz
  • untar the compressed file
  • Install the resulting image onto an sdcard, using dd on linux or win32diskimage on windows
  • Ensure the rpi2 is connected to the internal lan of your core and boot the rpi2.
  • You may be prompted on existing orbiters to choose a device type MD/qMD/SqueezeOnly, do so.
  • The Device will automatically be created, you will need to reload your router.
  • The MD may reboot, AVWizard will not appear.
  • You should see the setup wizard and be asked to configure your new MD.
  • The new rpi2 moonpi should continue installing and eventually present you with a UI1 OnScreen Orbiter.
  • Please report any bugs with *very* specific (package date/svn, etc) information in a ticket.

What works

  • Orbiter UI1
  • Photo Screen Saver
  • AppServer
  • HAL
  • Embedded phone
  • OMX_Player will play audio and video. You must have the appropriate codecs to play MPG and VC1 media. The codecs can be purchased from the Raspberry Pi foundation.
  • USB-UIRT
  • HDMI-CEC control
  • Generic Serial Devices

RPi1 PXE Boot Media Director

The Raspberry Pi v1 B/B+ can be used as a minimal diskless Media Director within LinuxMCE. The following instructions will show how to create a diskless MD. The Raspberry Pi v2 B is not currently compatible with the diskless method of MD booting.

When using the sdcard below the RPi will be overclocked using the standard Raspberry Pi foundation overclock settings. These are throttled automatically as thermally required. You are free to overclock the device further by editing the config.txt file on the sdcard.

Requirements

  • Your core must be LinuxMCE 1204 or higher.
  • The Raspberry Pi must be a 512MB Model B (or B+). The Model A and the 256MB Model B do not have enough RAM to boot into Orbiter.
  • The Raspberry Pi must be plugged into the internal side of your LinuxMCE core's network to act as a media director.
  • The Raspberry Pi must be plugged in using the HDMI connector and using HDMI sound. Set an S (for Stereo) or H (for HDMI) for the Audio Settings for the MD in webadmin.
    • The Raspberry Pi will detect the boot resolution of your television and adjust itself accordingly.
    • If resolution has changed since the last boot the orbiter will be regenerated.
  • You may wish to have a usb keyboard or mouse for orbiter interaction. USB-UIRT/MCE Remote is also possible but must be installed using the webadmin (device detection is working but the device is not added currently).

Setup Steps

  • Get the LinuxMCE Raspberry Pi MD sdcard contents.
  • Insert the sdcard into the Raspberry Pi.
  • Power up the Raspberry Pi.
  • On first boot the u-boot bootloader will start, it will try to grab various different pxe files until it finally finds the default pxe kernel and initrd.
  • The kernel will boot, there is a 10second delay when activating the ethernet drivers to allow for the hardware to respond properly, this delay only occurs during the default kernel/initrd boot.
  • Raspberry Pi will display "Announced ourselves to the router".
    • If you have the lmce1 default image installed (see above,) the core will run Diskless_Setup to prepare an RPi MD.
    • If you have the lmce2 default image installed (see above,) you will be prompted on existing orbiters to select the type of RPi device you would like installed. Once you have made your selection the core will run Diskless_Setup to prepare the device.
  • The Raspberry Pi will reboot automatically once Diskless_Setup completes properly.
  • You should go to an existing orbiter and 'Reload the Router' after this point. You will be prompted to do so eventually on the moonPi, if you have not already done so.
  • On the second boot (called the 'FIRSTRUN') the bootloader on the sdcard will be updated to the version on the diskless image.
  • The Raspberry Pi will reboot again.
  • On the third boot LinuxMCE will slowly come to life. Please be patient, this can take up to 45 minutes. You will be presented with the Setup Wizard after ConfirmDependencies has finished installing all ancilliary packages.

What works

  • Orbiter UI1
  • Photo Screen Saver
  • AppServer
  • HAL
  • Embedded phone
  • OMX_Player (alpha) will play audio and video. You must have the appropriate codecs to play MPG and VC1 media. The codecs can be purchased from the Raspberry Pi foundation.
  • USB-UIRT
  • HDMI-CEC control

HDMI-CEC Control

Please see Pulse-Eight for HDMI-CEC setup information

Manual Settings

  • Overscan - currently only able to change by manually editing the config.txt file on the sdcard.
  • Overscan compensation - currently only able to change by manually editing the config.txt file on the sdcard. In /sdcard/config.txt from a booted moonpi.
    • Orbiter will automatically regenerate after rebooting and detecting a new display resolution.
  • Audio settings are adjusted in webadmin: S = Stereo, H = HDMI, H3 = HDMI with passthrough capability for AC3 & DTS

What does not work

  • Video Overlays