Rasp BMC





edit SideBar

Rasp BMC

(redirected from MediaCentre.OSMC)

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

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 /NetworkManager?/system-connections/Wired connection 1:

[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.

Recent Changes (All) | Edit SideBar Page last modified on 12 August 2021, at 02:15 PM UTC Edit Page | Page History
Powered by PmWiki