Hi-Res audio on Khadas VIM / VIM 2

This post is outdated! No need to ‘patch’ files anymore!

If someone is interested, this is how to make Roon endpoint on VIM with Libreelec.

Download Roon Bridge for armv8 from here
Copy to your Libreelec installation in some directory. I will use /storage/.config for the purpose of this tutorial, but you can chose whatever you want. If you chose to use different directory, you have to replace the path /storage/.config/ in all commands below with your path!

Unzip downloaded file with:
tar -xjvf RoonBridge_linuxarmv8.tar.bz2

cd RoonBridge
cd Bridge

Now you have to edit “RAATServer”, “RoonBridge” and “RoonBridgeHelper” files. In all three files, find (in the end of file) the line “if [ -x /bin/bash ]; then” and replace it with “if [ -x /bin/bashZ ]; then” using nano:
nano RAATServer
make changes and use CTRL+O to save, hit Enter to confirm, CTRL+X to exit nano
nano RoonBridge
make changes and use CTRL+O to save, hit Enter to confirm, CTRL+X to exit nano
nano RoonBridgeHelper
make changes and use CTRL+O to save, hit Enter to confirm, CTRL+X to exit nano

now back to /storage/.config/RoonBridge:
cd …

and run start.sh:

To auto start Roon Bridge, back to /storage/.config:
cd …

Create autostart.sh if you don’t have yet:
nano autostart.sh

add next lines in your new file:

save and exit:
CTRL+O to save, hit Enter to confirm, CTRL+X to exit nano

reboot :slight_smile:

If you want to use all outputs in your VIM including HDMI with Roon you have to add config.txtx in flash directory which is read only, so:
mount -o remount,rw /flash
nano /flash/config.txt

copy and paste below line in your config.txt:

CTRL+O to save, hit Enter to confirm, CTRL+X to exit nano

last is to back RO attributes to flash folder:
mount -o remount,ro /flash


If you want to use Roon Bridge together with squeezelite, your autostart.sh have to be something similar to:
(exec /storage/.kodi/addons/virtual.multimedia-tools/bin/squeezelite -o iec958:CARD=N20,DEV=0 -m 01:02:03:04:05:06 -U PCM -v -D -r 384000 -M Hi-Res -C 1 -W -z)&


Hi, Stefan:
Thanks for the efforts!

You can create a new howto topic for this, or if you can write a instruction, we can publish at Khadas Docs with you as the author name.


1 Like

Wil the vim2 work with the i-sabre board?
Olso with the allo kalli ?

This boards are designed for Rpi or compatible board, so, I think not.

There is a work around to connect Kali with VIM (I didn’t try with VIM2) but its not so user friendly and you can burn the board if you are not completely sure what are you doing. Use google to find little more info (Odroid C2 + Kali its a good start). You will need second power supply as well. May be it’s better to wait for Khadas Tone Board! Looks very promising.

1 Like

I did not know about the tone board
It looks promising indeed
Not much info on it yet do.

It is strange, but the above tutorial not work on VIM2 MAX and i can’t figured it out why.

Okay. It’s work but with the RoonBridge binary for armv7hf!

Hi there the Geekbuying Now Just Release the Khadas Tone Board
The first 50PCS can be enjoyed 89USD/SET and have a RCA 3.5mm Cable ship as a gift.
Hope hot sale on taking about 9 months developing and finally released Tone Board! :blush:


1 Like

Hello, someone has managed to install Jriver MediaCenter, I installed Media Center 24, opens up to trial, and as soon as they continue, nothing appears …
I’m interested in hi-res playback in VIM2 with Tone Board board.
Thank you.

1 Like

Does anyone have, and is using a roon bridge image as described above for the VIM2 (S912)
they would be willing to share? If not, what core version of Linux are you using?

The above “how to” is outdated. But Roon bridge is still working with libreelec and coreelec based on Leia. Some small fixes to the above guide are needed.

Hi Stefan:
Can you specify the updates and I’ll edit the 1st post then.

Good day!

Hi Gouwa,

Thanks for your kind proposal. Honestly I have to go step-by-step to see what is changed in the setup. I have installed roon with coreelec week ago but I didn’t save the steps. I will do it as far as I have some time and will update the tutorials well.

Thanks again!


BTW, I tried to build Volumio with myvolumio … unsuccessfully. I think only @balbes150 can do it if it possible at all.

Hi Stefan,

Would it be possible for you to post your roon_bridge image on the web somewhere open to the public, Cloud? That would be the quickest way for those of us to get going with roon as an endpoint on the VIM.


That would be helpful. Thanks.

Any chance that VIM / VIM2 is supported on DietPi?

I use standard installation from roon labs. Depend of the image (OS) I want to install to I use easy install script or manual. When you use easy script it work out of the box if manual you need to add roon bridge auto start.


Not a Linux expert by any stretch, I can slog my way through editing a config file. However, I am unaware of any ‘easy’ scripts to build a roon_bridge image other than DietPi for RPi - which VIM 2 (v1.4) is not. If you could provide more detail of links to such easy scripts would be beneficial as to where to start. Thx.