PiBUS - A Raspberry Pi-BMW Interface Board

PiBUS
(Media Center)
PTV
(Digital TV)

Software Installation

Download LibreELEC 8.0.x. Install it on your Raspberry Pi and make sure it's operating normally. Use a keyboard and TV or monitor to test it. During the first boot-up, it will ask you if you want to enable SSH, make sure you do.

Automated Installation

Search the web on how to login to your Pi using PuTTY, this will give you a command prompt.
Once your Pi is connected to the internet, type the following two commands:

wget http://pibus.info/pibus-install.sh
bash pibus-install.sh

Note! Some versions of libreELEC (8.0.x) have a GPIO bug that causes PiBUS poweroff to fail and stay powered. It is not yet clear exactly which versions. This can cause battery drain and makes Kodi bootup fail when you next start the car. If you have this problem, here is the current suggested work around, which installs a custom poweroff script that works better:

cd /storage
wget http://pibus.info/sw/pibus-poweroff.sh
chmod +x pibus-poweroff.sh
sync

Manual Installation (only for experts)

Here's a list of the keyboard keys the pibus software emulates:
E46 / E39 / X5Z4 / X3 (requires -z4 parameter)
BMW Button        KeyKodi Function
Rotary Turn↑ / ↓Various
Rotary PressEnterVarious
ClockBackspaceBack
<>TabToggle Fullscreen   
<, (comma)   Previous Song
>. (dot)Next Song
Speak (wheel)SpacePause
Long-2TabToggle Fullscreen
Long-4EscapeHome
1SpacePause
4iMedia Info
2zZoom
5xStop
3
6

BMW Button        KeyKodi Function
Rotary Turn↑ / ↓Various
Rotary PressEnterVarious
<, (comma)   Previous Song  
>. (dot)Next Song
Speak (wheel)SpacePause
Long-1iMedia info
Long-2TabToggle Fullscreen
Long-4EscapeHome
1SpacePause
2zZoom
3xStop
4BackspaceBack
5
6


Audio Configuration of Kodi

By default LibreELEC/Kodi will use the Raspberry Pi's 3.5mm audio jack, it needs to be re-configured to use the PiBUS 24-bit DAC.
If you used the automated installation, this is already done.
If you used the manual method, you just need to add a line to a text file from the Pi's command prompt. Execute these commands:

mount -o remount,rw /flash
echo "dtoverlay=hifiberry-dac" >> /flash/config.txt
mount -o remount,ro /flash
reboot

After the Pi reboots go to Settings > System > Audio Output, and select snd_rpi_dac from the list of choices.
Kodi screenshot