Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: cosminbro on December 08, 2022, 11:12:27 AM

Title: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 08, 2022, 11:12:27 AM
Hello,

Someone please help, I want to install roon bridge on Tiny Core Linux - Raspberry PI 4b - 8GB RAM version.

Thanks a lot
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Juanito on December 08, 2022, 02:09:55 PM
Is there an open source version of roon/ropieee?
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 08, 2022, 02:47:03 PM
Is there an open source version of roon/ropieee?

I don't want to use ropieee for may reasons, like I can'y use hidden WiFi SSID, it's big and not so customizable.

In the mean time, I manage to successfully install roon bridge, but I have two issues:
- it tells me ALSA libraries is not installed;
- it installs in /opt/RoonBridge, so I want persistence for opt folder. When I use the backup command, after reboot it changes the tc password, and I can't log in again.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 08, 2022, 03:42:57 PM
I solve the problem with passsword not keeping after reboot.

But ALSA still refuse to work....
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Juanito on December 09, 2022, 02:49:12 AM
What aspect of alsa doesn’t work? Do you get an error message? What does “aplay -l” report?
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 09, 2022, 04:33:49 AM
I made a fresh installation - from scratch - and now ALSA it works.

In the mean time, I tried to configure WiFi: I successfully saw the wlan connection in iwconfig result, but now I don't figure out how to create a connection to a hidden SSID, with password, and make this configuration persistent of course ...
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 09, 2022, 07:56:00 AM
I use the tutorial from here:
https://iotbytes.wordpress.com/make-raspberry-pi-3-built-in-wifi-module-work-with-picore/

but after reboot, it doesn't connect automatically, I have to manually start wifi.sh again....
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Juanito on December 09, 2022, 07:59:32 AM
Did you try setting wifi.sh to run from bootlocal.sh with a pause before it?
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Rich on December 09, 2022, 08:42:49 AM
Hi cosminbro
The tutorial you followed said add this line to your  bootlocal.sh  file:
Code: [Select]
/usr/local/bin/wifi.sh -a 2>&1 > /tmp/wifi.log
Is that line still in your  bootlocal.sh  file?
Does the file  /tmp/wifi.log  exist?
Are there any error/warning messages in  /tmp/wifi.log?
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 09, 2022, 11:55:34 AM
Thanks to all, I manage to get it work :)

I write a complete tutorial here, you can include in a new topic if you want:

https://community.roonlabs.com/t/install-roon-bridge-on-tiny-core-linux/226067
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 13, 2022, 11:45:43 AM
I have an issue: how can I block on-board audio and HDMI audio, and prevent them to appear as sound output options, and make this persistent?
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: curaga on December 14, 2022, 01:57:52 AM
Yes, blacklist the alsa module(s) for those. I don't have a rpi4 so can't comment on the details.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Rich on December 14, 2022, 09:35:28 AM
Hi cosminbro
According to the kernel documentation:
Code: [Select]
module_blacklist=  [KNL] Do not load a comma-separated list of
modules.  Useful for debugging problem modules.
found here:
https://mjmwired.net/kernel/Documentation/kernel-parameters.txt

So adding this to your  cmdline.txt  file should work:
Code: [Select]
module_blacklist=alsa
The  cmdline.txt  file should be in the first partition where your  config.txt  file is.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: patrikg on December 14, 2022, 09:37:18 AM
And don't forget to check the config.txt file with all the options to set the audio and sound parameters with the 3.5jack and hdmi.

Here's the great doc/info from raspberrypi.

https://www.raspberrypi.com/documentation/computers/config_txt.html

I even see this
https://www.raspberrypi.com/documentation/computers/config_txt.html#test_mode

That not so documented with another manufacture.

Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: curaga on December 14, 2022, 11:24:29 AM
I think he wants to get sound from another output? Disabling alsa core, not just the specific alsa modules, would disable all sound.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 14, 2022, 01:40:22 PM
I think he wants to get sound from another output? Disabling alsa core, not just the specific alsa modules, would disable all sound.

Yes, I want to keep only USB output in ALSA, and disable built-in and hdmi audio
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Paul_123 on December 15, 2022, 12:07:19 PM
Easiest to do that in the rpi config.txt

https://www.raspberrypi.com/documentation/computers/config_txt.html

removing the line

Code: [Select]
dtparam=audio=on
should take care of it.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 17, 2022, 12:52:12 PM
It seems it apply to Raspberry OS, not to Tiny Linux - I can't find any config.txt in tiny core installation

Easiest to do that in the rpi config.txt

https://www.raspberrypi.com/documentation/computers/config_txt.html

removing the line

Code: [Select]
dtparam=audio=on
should take care of it.
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: patrikg on December 17, 2022, 01:19:32 PM
To edit the file you need to mount the boot msdos part. of the boot media, like this if you use sdcard.

Code: (bash) [Select]
mount /mnt/mmcblk0p1/
vi /mnt/mmcblk0p1/config.txt

If you have nano installed it's little easier editor to handle the file.
Code: (bash) [Select]
nano /mnt/mmcblk0p1/config.txt
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: cosminbro on December 17, 2022, 05:34:01 PM
It works now for internal audio, but the HDMI remains enabled...

To edit the file you need to mount the boot msdos part. of the boot media, like this if you use sdcard.

Code: (bash) [Select]
mount /mnt/mmcblk0p1/
vi /mnt/mmcblk0p1/config.txt

If you have nano installed it's little easier editor to handle the file.
Code: (bash) [Select]
nano /mnt/mmcblk0p1/config.txt
Title: Re: Roon Bridge on RPI4b and Tiny Core Linux
Post by: Paul_123 on December 18, 2022, 11:38:33 AM
What is in your config.txt?  post the complete contents.