Oct 7 2017

Raspberry Pi – determine version of rpi

cat /proc/device-tree/modelĀ 

output on rpi 1b:
Raspberry Pi Model B Rev 2

output on rpi 3b:
Raspberry Pi 3 Model B Rev 1.2

Mar 25 2017

speed up SSH login

turn off reverse DNS lookups:
"UseDNS no" in /etc/ssh/sshd_config

Feb 21 2015

Build kodi / xbmc from source

git clone git://github.com/OpenELEC/OpenELEC.tv.git
cd OpenELEC.tv
time PROJECT=RPi2 ARCH=arm make image
(get few cups of coffee…)

look under target/ there should be the image

if you want to rebuild kodi only
time PROJECT=RPi2 ARCH=arm make kodi

// if libraries missing, use below apt-get shopping-cart
apt-get install automake autopoint bison build-essential ccache cmake curl cvs default-jre fp-compiler gawk gdc gettext git-core gperf libasound2-dev libass-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbluetooth-dev libbluray-dev libbluray1 libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcec-dev libcec1 libcrystalhd-dev libcrystalhd3 libcurl3 libcurl4-gnutls-dev libcwiid-dev libcwiid1 libdbus-1-dev libenca-dev libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libglew-dev libiso9660-dev libjasper-dev libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev libmicrohttpd-dev libmodplug-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpostproc-dev libpulse-dev libsamplerate-dev libsdl-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libshairport-dev libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev libva-egl1 libva-tpi1 libvdpau-dev libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev mesa-utils nasm pmount python-dev python-imaging python-sqlite swig unzip yasm zip zlib1g-dev

more info here.

in my case I edit
vi build.OpenELEC-RPi2.arm-devel/kodi-14-b5dbdb5/xbmc/input/linux/LinuxInputDevices.cpp

added the home key for rii i7.

and here is the resulting patch
diff -Naur kodi-14-b5dbdb5.orig/xbmc/input/linux/LinuxInputDevices.cpp kodi-14-b5dbdb5/xbmc/input/linux/LinuxInputDevices.cpp
--- kodi-14-b5dbdb5.orig/xbmc/input/linux/LinuxInputDevices.cpp 2015-02-21 01:21:47.530234565 +0100
+++ kodi-14-b5dbdb5/xbmc/input/linux/LinuxInputDevices.cpp 2015-02-21 01:23:11.903724410 +0100
@@ -255,6 +255,7 @@
{ 378 , XBMCK_RIGHT }, // Green
{ 381 , XBMCK_UP }, // Yellow
{ 366 , XBMCK_DOWN }, // Blue
+ { KEY_HOMEPAGE , XBMCK_HOME }, // for Rii i7 and Co. home key 172

typedef enum

Feb 15 2015

lircmap.xml in kodi / xmbc raspi2

I was missing the submenu button on my x10 rc for my raspi2 kodi setup. Following step where needed in order to set submenu button on the lower right button:


disable power button. useless currently for raspi, since it will turn on again. So I put mute there . And KEY_C for submenu.
# 0x02 KEY_POWER
0x3a KEY_C

to read the table for lirc at startup
file .config/autostart.sh
#/usr/bin/ir-keytable -c ; ir-keytable -w /storage/.config/rc_keymaps/medion_x10 ; ir-keytable -r
/usr/bin/ir-keytable -w /storage/.config/rc_keymaps/medion_x10