Renderer-Controllers for Media Centre.

Make : Raspberry Pi

Model : Rpi3, RPi2, RPi1 (see Whale Barn Media)

Type : Single-board Computer

OS : OSMC, Dietpi

Configuration

OSMC Configuration

Hostname

sudo hostname lounge

Edit /etc/hostname:

lounge

(or "ballroom", etc)

kodi and systemd

sudo systemctl stop mediacenter
sudo systemctl start mediacenter

Sound (Bullseye)

Bullseye switch to the open-source vc4-kms-v3d HDMI driver which includes audio support but does not allow for ALSA dmixing (because it supports IEC985 but not PCM).

Revert to vc4-fkms-v3d (fake KMS using firmware) and reenable bcm2835 audio:

/boot/config-user.txt:

dtoverlay=vc4-fkms-v3d
max_framebuffers=2
dtparam=audio=on

/boot/cmdline.txt:

snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0

Resources: https://forums.raspberrypi.com/viewtopic.php?t=324067#p1988677

Network

connmanctl
connmanctl> enable wifi
connmanctl> scan wifi
Scan completed for wifi
connmanctl> agent on
Agent registered
connmanctl> services
*AO Wired                ethernet_b827eb9142e0_cable
    whalebarn            wifi_00c140950bc0_7768616c656261726e_managed_none
connmanctl> connect wifi_00c140950bc0_7768616c656261726e_managed_none
Connected wifi_00c140950bc0_7768616c656261726e_managed_none

SNMP

**GeSHi Error:** GeSHi could not find the language bashapt-get (using path /var/www/data/mark/pmwiki/cookbook/geshi/geshi/) (code 2)

Installing

apt-get install v4l-utils libjpeg9

Fixing Blue Screen

Blue screen (on Study TV after power cycle).

Workaround:

tvservice -o
tvservice -p
sudo systemctl restart mediacenter

See related OSMC issue.

Try boosting hdmi in RPi config: /boot/config.txt

config_hdmi_boost=6

Obsolete RaspBMC stuff

Network

Edit `/<a class='createlinktext' rel='nofollow'

[ipv4]
method=auto
dhcp-client-id=lounge
dhcp-hostname=lounge

Developing

Qemu

Basic Raspberry PI kernel and rootfs here:

Exiting

Ctrl-x

Or through screen: Ctrl-a,a,x

Running

Need to redirect the console if running via SSH:

qemu-system-arm \
  -M versatilepb \
  -nographic \
  -kernel vmlinuz-3.2.0-4-versatile \
  -initrd initrd.img-3.2.0-4-versatile \
  -hda debian_wheezy_armel_standard.qcow2 \
  -append "root=/dev/sda1 console=ttyAMA0 console=ttyS0"

For initial boot (pre passwd setup) add init=/bin/bash or init=/bin/sh depending on what's in the root image.

Qemu SCSI bug

A qemu bug (pre 1.5) leaves qemu-system-arm in a loop attempting to reset the SCSI bus (I think).

Luckily Wheezy backports has qemu-2.1.

apt-get -t wheezy-backports install qemu-system-arm

Qemu Raspbian

Kernel : http://xecdesign.com/downloads/linux-qemu/kernel-qemu

Rootfs : Latest RaspBMC image) from http://downloads.raspberrypi.org

#!/bin/bash

KERNEL=xec-kernel
ROOT=raspbmc0.img

qemu-system-arm \
    -cpu arm1176 \
    -nographic \
    -kernel "$KERNEL" \
    -m 128 \
    -M versatilepb -no-reboot \
    -hda "$ROOT" \
    -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw"
 

Other Methods

Debootstrap Chroot

"Unable to reserve guest address space"

multistrap

Generates disk image. chroot fails with the same memory allocation failure.

Cross Compiling

Use gcc-linaro-arm-linux-gnueabihf-raspbian-x64 for x64 host.

Gave up with pkg-config problems after a while.