Hi-Res audio on Khadas VIM / VIM 2


#21

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

Than:
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:
./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:
#!/bin/sh
(/storage/.config/RoonBridge/start.sh)&
exit

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:
dtparam=audio=on

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
reboot

cheers!

If you want to use Roon Bridge together with squeezelite, your autostart.sh have to be something similar to:
#!/bin/sh
(/storage/.config/RoonBridge/start.sh)&
(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)&
exit


#22

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.

Thanks!


#23

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


#24

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


#25

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.


#26

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


#27

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


#28

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


#29

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:

image