Subbu68
Well-Known Member
Further to my earlier thread https://www.hifivision.com/threads/tinkering-with-asus-tinker-board-2s.92248/
https://tinker-board.asus.com/product/tinker-board-2s.html is the link to the SBC
I was disappointed that I purchased a SBC meant to be used in IOT devices not for audio purposes. Having got it, had to make it work as an audio streamer.
Struggled to understand how to make it into one. Volumio have not supported TB 2S. So the next candidate was to download Android 11 offered by Asus. That worked but again was not headless.
It was then FM Bobby @bobbyprajan stepped in with the suggestion to install Tinker OS (Debian 10 v2) and Logitech Media Server on it. I had tried it on my old Mac Mini and failed last year. Had purchased a mobile app to control Squeeze Players so thought of trying it out.
He went a step ahead and sent me the scripts and guidance how to start with the terminal and execute the script. He tried on a VM and fed me with his feedback.
There were some conflicts between Debian 10 on TB 2 S and LMS version 8.3 suggested by Bobby. Could iron out these issues though took time, Found LMS 7.9.2 worked.
Meanwhile issues of mounting my NAS and stuff were helped out by Manavendra @mbhangui .
Had to reflash the TB once to clear all wrongs. With courage earned from the mistakes earlier, tried out LMS v 8.2. It worked !! Installed Squeezelite player, mapped my server but the sound was "silence". My DAC was producing no signal - be it be RCA out or HP out. After plugging in and out my active speaker found that my HDMI monitor's audio out was "singing" .
Bobby was constantly PMing me trying to solve my issue. I too tried some combinations in the script and finally could get the audio out to the USB > iFi DAC > HK Nova speakers.
SQ is quite good and better than using PC as the streamer. There are still some issues to sort out.
The script used is below for anyone trying out on Debian OS especially with Tinker Board.
TONS AND TONS OF THANKS TO BOBBY AND MANAVENDRA WHO PATIENTLY HELPED ME AND SPENT TIME FOR ME.
sudo apt install libio-socket-ssl-perl
sudo wget http://downloads-origin.slimdevices.com/LogitechMediaServer_v8.2.0/logitechmediaserver_8.2.0_arm.deb
sudo dpkg -i ./logitechmediaserver_8.2.0_arm.deb
sudo apt-get -f install
sudo systemctl unmask logitechmediaserver.service
sudo systemctl enable logitechmediaserver
sudo addgroup lms
sudo usermod -aG lms squeezeboxserver
sudo usermod -aG audio linaro
sudo usermod -aG audio squeezeboxserver
sudo mkdir /media/NAS
sudo chown linaro:lms /media/NAS
sudo apt-get update
sudo apt install nfs-common
sudo mount -t nfs NAS IP Address:/path to music folder
sudo df -k (to check if the NAS got mounted)
Now to automount the NAS edit fstab file
sudo vim /etc/fstab
Choose Option E
Added <NAS IP>:<folder path> media/NAS nfs defaults,user,exec,_netdev 0 0
To close Esc, :w
sudo mount -a
sudo ifconfig for IP address of the LMS - note it down. It may be needed to set up on mobile at times
Now to install Squeezelite Player
sudo apt install squeezelite
systemctl enable squeezelite
In Tinker Board 2S the output was from the HDMI monitor audio output. The USB DAC was not getting recognised.
The workaround is to edit the /etc/default/squeezelite file
sudo vim /etc/default/squeezelite
Uncomment the line SL_SOUNDCARD=”sysdefault:CARD=XXX” and modify as below
SL_SOUNDCARD=”sysdefault:CARD=1”
It will depend on what ALSA Mixer calls your DAC. Mine was CARD 1.
https://tinker-board.asus.com/product/tinker-board-2s.html is the link to the SBC
I was disappointed that I purchased a SBC meant to be used in IOT devices not for audio purposes. Having got it, had to make it work as an audio streamer.
Struggled to understand how to make it into one. Volumio have not supported TB 2S. So the next candidate was to download Android 11 offered by Asus. That worked but again was not headless.
It was then FM Bobby @bobbyprajan stepped in with the suggestion to install Tinker OS (Debian 10 v2) and Logitech Media Server on it. I had tried it on my old Mac Mini and failed last year. Had purchased a mobile app to control Squeeze Players so thought of trying it out.
He went a step ahead and sent me the scripts and guidance how to start with the terminal and execute the script. He tried on a VM and fed me with his feedback.
There were some conflicts between Debian 10 on TB 2 S and LMS version 8.3 suggested by Bobby. Could iron out these issues though took time, Found LMS 7.9.2 worked.
Meanwhile issues of mounting my NAS and stuff were helped out by Manavendra @mbhangui .
Had to reflash the TB once to clear all wrongs. With courage earned from the mistakes earlier, tried out LMS v 8.2. It worked !! Installed Squeezelite player, mapped my server but the sound was "silence". My DAC was producing no signal - be it be RCA out or HP out. After plugging in and out my active speaker found that my HDMI monitor's audio out was "singing" .
Bobby was constantly PMing me trying to solve my issue. I too tried some combinations in the script and finally could get the audio out to the USB > iFi DAC > HK Nova speakers.
SQ is quite good and better than using PC as the streamer. There are still some issues to sort out.
- Squeezelite player keeps stopping when playing from NAS - after 1 or 2 songs. So need to restart it from terminal.
- NAS is lost frequently. Have to rescan the folders.
- NAS is lost if TB is rebooted. Again need to scan the NAS.
The script used is below for anyone trying out on Debian OS especially with Tinker Board.
TONS AND TONS OF THANKS TO BOBBY AND MANAVENDRA WHO PATIENTLY HELPED ME AND SPENT TIME FOR ME.
sudo apt install libio-socket-ssl-perl
sudo wget http://downloads-origin.slimdevices.com/LogitechMediaServer_v8.2.0/logitechmediaserver_8.2.0_arm.deb
sudo dpkg -i ./logitechmediaserver_8.2.0_arm.deb
sudo apt-get -f install
sudo systemctl unmask logitechmediaserver.service
sudo systemctl enable logitechmediaserver
sudo addgroup lms
sudo usermod -aG lms squeezeboxserver
sudo usermod -aG audio linaro
sudo usermod -aG audio squeezeboxserver
sudo mkdir /media/NAS
sudo chown linaro:lms /media/NAS
sudo apt-get update
sudo apt install nfs-common
sudo mount -t nfs NAS IP Address:/path to music folder
sudo df -k (to check if the NAS got mounted)
Now to automount the NAS edit fstab file
sudo vim /etc/fstab
Choose Option E
Added <NAS IP>:<folder path> media/NAS nfs defaults,user,exec,_netdev 0 0
To close Esc, :w
sudo mount -a
sudo ifconfig for IP address of the LMS - note it down. It may be needed to set up on mobile at times
Now to install Squeezelite Player
sudo apt install squeezelite
systemctl enable squeezelite
In Tinker Board 2S the output was from the HDMI monitor audio output. The USB DAC was not getting recognised.
The workaround is to edit the /etc/default/squeezelite file
sudo vim /etc/default/squeezelite
Uncomment the line SL_SOUNDCARD=”sysdefault:CARD=XXX” and modify as below
SL_SOUNDCARD=”sysdefault:CARD=1”
It will depend on what ALSA Mixer calls your DAC. Mine was CARD 1.