I created a shell script, that makes it very easy to install CamillaDSP with GUI and automatic samplerate switching on a piCorePlayer.
Should work on Raspi 2/3/4.
Feel free to try it out at https://github.com/JWahle/piCoreCDSP
Should work on Raspi 2/3/4.
Feel free to try it out at https://github.com/JWahle/piCoreCDSP
You can use a hat like this:I have a pi3... How do I get two (2) toslink out from that?
https://www.amazon.it/HiFiBerry-Dig...scita+ottica+raspberry,electronics,112&sr=1-5
It provides only one toslink out, but you can use a toslink splitter like this:
https://www.amazon.it/RAWAUX-Splitt...-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1
Hope this helps.
Then you must keep synchronisation between the two ways of the x-over.it needs to be 2 addressable toslink as I want to do digital x-over.
The only solution I am aware of is to use a multi-channel DAC.
Hi,
Your effort to provide an easy way to install camilla is very much apprecited!
However, I've tried to use your script. I'm not able to reach the Camilla GUI after installing it.
I've included copy of the installation result.
login as: tc
tc@pcp.local's password:
_ _____ ___ __
_ (_) _/__ _______ / _ \/ /__ _ ___ ____
/ _ \/ / // _ \/ __/ -_) _/ / _ `/ // / -) _/
/ .//\/\// \// //\,/\, /\_/_/
// /__/
piCorePlayer = piCore + Squeezelite + Raspberry Pi
The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@pCP:~$ ./install_cdsp.sh
### Create CamillaDSP config folders
cd /mnt/mmcblk0p2/tce
mkdir -p camilladsp/configs
mkdir -p camilladsp/coeffs
### Create default config
cd /mnt/mmcblk0p2/tce/camilladsp
echo '
devices:
samplerate: 44100
chunksize: 2048
queuelimit: 4
capture:
type: Stdin
channels: 2
format: S16LE
playback:
type: Alsa
channels: 2
device: "plughw:Headphones"
format: S16LE
' > Headphones.yml
/bin/cp Headphones.yml configs/Headphones.yml
if [ ! -f "active_config" ]; then
ln -s configs/Headphones.yml active_config
fi
### Install ALSA CDSP
cd /tmp
tce-load -wil -t /tmp git compiletc libasound-dev # Downloads to /tmp/optional a nd loads extensions temporarily
git.tcz.dep OK
curl.tcz.dep OK
openssl.tcz.dep OK
libgcrypt.tcz.dep OK
Downloading: libgpg-error.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
compiletc.tcz.dep OK
saving to 'libgpg-error.tcz'
libgpg-error.tcz 100% |********************************| 94208 0:00:00 ETA
'libgpg-error.tcz' saved
libgpg-error.tcz: OK
Downloading: libgcrypt.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgcrypt.tcz'
libgcrypt.tcz 100% |********************************| 400k 0:00:00 ETA
'libgcrypt.tcz' saved
libgcrypt.tcz: OK
Downloading: ca-certificates.tcz
Connecting to repo.picoreplayer.org (104.21.89.86:443)
saving to 'ca-certificates.tcz'
ca-certificates.tcz 100% |********************************| 144k 0:00:00 ETA
'ca-certificates.tcz' saved
gawk.tcz.dep OK
md5sum: WARNING: 2 of 2 computed checksums did NOT match
Error on ca-certificates.tcz
mpfr.tcz.dep OK
isl.tcz.dep OK
mpc.tcz.dep OK
gcc.tcz.dep OK
gcc_libs-dev.tcz.dep OK
binutils.tcz.dep OK
grep.tcz.dep OK
pcre.tcz.dep OK
pkg-config.tcz.dep OK
glib2.tcz.dep OK
tc@pCP:~$
Your effort to provide an easy way to install camilla is very much apprecited!
However, I've tried to use your script. I'm not able to reach the Camilla GUI after installing it.
I've included copy of the installation result.
login as: tc
tc@pcp.local's password:
_ _____ ___ __
_ (_) _/__ _______ / _ \/ /__ _ ___ ____
/ _ \/ / // _ \/ __/ -_) _/ / _ `/ // / -) _/
/ .//\/\// \// //\,/\, /\_/_/
// /__/
piCorePlayer = piCore + Squeezelite + Raspberry Pi
The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@pCP:~$ ./install_cdsp.sh
### Create CamillaDSP config folders
cd /mnt/mmcblk0p2/tce
mkdir -p camilladsp/configs
mkdir -p camilladsp/coeffs
### Create default config
cd /mnt/mmcblk0p2/tce/camilladsp
echo '
devices:
samplerate: 44100
chunksize: 2048
queuelimit: 4
capture:
type: Stdin
channels: 2
format: S16LE
playback:
type: Alsa
channels: 2
device: "plughw:Headphones"
format: S16LE
' > Headphones.yml
/bin/cp Headphones.yml configs/Headphones.yml
if [ ! -f "active_config" ]; then
ln -s configs/Headphones.yml active_config
fi
### Install ALSA CDSP
cd /tmp
tce-load -wil -t /tmp git compiletc libasound-dev # Downloads to /tmp/optional a nd loads extensions temporarily
git.tcz.dep OK
curl.tcz.dep OK
openssl.tcz.dep OK
libgcrypt.tcz.dep OK
Downloading: libgpg-error.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
compiletc.tcz.dep OK
saving to 'libgpg-error.tcz'
libgpg-error.tcz 100% |********************************| 94208 0:00:00 ETA
'libgpg-error.tcz' saved
libgpg-error.tcz: OK
Downloading: libgcrypt.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgcrypt.tcz'
libgcrypt.tcz 100% |********************************| 400k 0:00:00 ETA
'libgcrypt.tcz' saved
libgcrypt.tcz: OK
Downloading: ca-certificates.tcz
Connecting to repo.picoreplayer.org (104.21.89.86:443)
saving to 'ca-certificates.tcz'
ca-certificates.tcz 100% |********************************| 144k 0:00:00 ETA
'ca-certificates.tcz' saved
gawk.tcz.dep OK
md5sum: WARNING: 2 of 2 computed checksums did NOT match
Error on ca-certificates.tcz
mpfr.tcz.dep OK
isl.tcz.dep OK
mpc.tcz.dep OK
gcc.tcz.dep OK
gcc_libs-dev.tcz.dep OK
binutils.tcz.dep OK
grep.tcz.dep OK
pcre.tcz.dep OK
pkg-config.tcz.dep OK
glib2.tcz.dep OK
tc@pCP:~$
Seems like there was a network error while downloading the dependencies.
Just reboot the piCorePlayer and run the install script again.
Just reboot the piCorePlayer and run the install script again.
Last edited:
I've tried it.It seems I'm getting the same result. I tried both on the current installation and on a new fresh Picoreplayer installation.
_ (_) _/__ _______ / _ \/ /__ _ ___ ____
/ _ \/ / // _ \/ __/ -_) _/ / _ `/ // / -) _/
/ .//\/\// \// //\,/\, /\_/_/
// /__/
piCorePlayer = piCore + Squeezelite + Raspberry Pi
The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@pCP:~$ wget https://github.com/JWahle/piCoreCDSP/raw/main/install_cdsp.sh &&
chmod u+x install_cdsp.sh && ./install_cdsp.sh
Connecting to github.com (140.82.121.3:443)
Connecting to raw.githubusercontent.com (185.199.111.133:443)
saving to 'install_cdsp.sh'
install_cdsp.sh 100% |********************************| 6225 0:00:00 ETA
'install_cdsp.sh' saved
### Create CamillaDSP config folders
cd /mnt/mmcblk0p2/tce
mkdir -p camilladsp/configs
mkdir -p camilladsp/coeffs
### Create default config
cd /mnt/mmcblk0p2/tce/camilladsp
echo '
devices:
samplerate: 44100
chunksize: 2048
queuelimit: 4
capture:
type: Stdin
channels: 2
format: S16LE
playback:
type: Alsa
channels: 2
device: "plughw:Headphones"
format: S16LE
' > Headphones.yml
/bin/cp Headphones.yml configs/Headphones.yml
if [ ! -f "active_config" ]; then
ln -s configs/Headphones.yml active_config
fi
### Install ALSA CDSP
cd /tmp
tce-load -wil -t /tmp git compiletc libasound-dev # Downloads to /tmp/optional and loads extensions temporarily
git.tcz.dep OK
curl.tcz.dep OK
openssl.tcz.dep OK
libgcrypt.tcz.dep OK
Downloading: libgpg-error.tcz
compiletc.tcz.dep OK
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgpg-error.tcz'
libgpg-error.tcz 100% |********************************| 94208 0:00:00 ETA
'libgpg-error.tcz' saved
libgpg-error.tcz: OK
Downloading: libgcrypt.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgcrypt.tcz'
libgcrypt.tcz 100% |********************************| 400k 0:00:00 ETA
'libgcrypt.tcz' saved
libgcrypt.tcz: OK
Downloading: ca-certificates.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'ca-certificates.tcz'
ca-certificates.tcz 100% |********************************| 144k 0:00:00 ETA
'ca-certificates.tcz' saved
md5sum: WARNING: 2 of 2 computed checksums did NOT match
Error on ca-certificates.tcz
gawk.tcz.dep OK
mpfr.tcz.dep OK
isl.tcz.dep OK
mpc.tcz.dep OK
gcc.tcz.dep OK
gcc_libs-dev.tcz.dep OK
binutils.tcz.dep OK
grep.tcz.dep OK
pcre.tcz.dep OK
pkg-config.tcz.dep OK
glib2.tcz.dep OK
tc@pCP:~$ ^C
_ (_) _/__ _______ / _ \/ /__ _ ___ ____
/ _ \/ / // _ \/ __/ -_) _/ / _ `/ // / -) _/
/ .//\/\// \// //\,/\, /\_/_/
// /__/
piCorePlayer = piCore + Squeezelite + Raspberry Pi
The software is provided "as is" without warranty of any kind,
either express or implied, including without limitation any implied
warranties of condition, uninterrupted use, merchantability,
fitness for a particular purpose, or non-infringement.
tc@pCP:~$ wget https://github.com/JWahle/piCoreCDSP/raw/main/install_cdsp.sh &&
chmod u+x install_cdsp.sh && ./install_cdsp.sh
Connecting to github.com (140.82.121.3:443)
Connecting to raw.githubusercontent.com (185.199.111.133:443)
saving to 'install_cdsp.sh'
install_cdsp.sh 100% |********************************| 6225 0:00:00 ETA
'install_cdsp.sh' saved
### Create CamillaDSP config folders
cd /mnt/mmcblk0p2/tce
mkdir -p camilladsp/configs
mkdir -p camilladsp/coeffs
### Create default config
cd /mnt/mmcblk0p2/tce/camilladsp
echo '
devices:
samplerate: 44100
chunksize: 2048
queuelimit: 4
capture:
type: Stdin
channels: 2
format: S16LE
playback:
type: Alsa
channels: 2
device: "plughw:Headphones"
format: S16LE
' > Headphones.yml
/bin/cp Headphones.yml configs/Headphones.yml
if [ ! -f "active_config" ]; then
ln -s configs/Headphones.yml active_config
fi
### Install ALSA CDSP
cd /tmp
tce-load -wil -t /tmp git compiletc libasound-dev # Downloads to /tmp/optional and loads extensions temporarily
git.tcz.dep OK
curl.tcz.dep OK
openssl.tcz.dep OK
libgcrypt.tcz.dep OK
Downloading: libgpg-error.tcz
compiletc.tcz.dep OK
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgpg-error.tcz'
libgpg-error.tcz 100% |********************************| 94208 0:00:00 ETA
'libgpg-error.tcz' saved
libgpg-error.tcz: OK
Downloading: libgcrypt.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'libgcrypt.tcz'
libgcrypt.tcz 100% |********************************| 400k 0:00:00 ETA
'libgcrypt.tcz' saved
libgcrypt.tcz: OK
Downloading: ca-certificates.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
saving to 'ca-certificates.tcz'
ca-certificates.tcz 100% |********************************| 144k 0:00:00 ETA
'ca-certificates.tcz' saved
md5sum: WARNING: 2 of 2 computed checksums did NOT match
Error on ca-certificates.tcz
gawk.tcz.dep OK
mpfr.tcz.dep OK
isl.tcz.dep OK
mpc.tcz.dep OK
gcc.tcz.dep OK
gcc_libs-dev.tcz.dep OK
binutils.tcz.dep OK
grep.tcz.dep OK
pcre.tcz.dep OK
pkg-config.tcz.dep OK
glib2.tcz.dep OK
tc@pCP:~$ ^C
Hmmm, this is strange.
I expected this to be a one time or temporary issue, but it was ca-certificates.tcz both times.
You did increase the file system as per my guide, right?
Maybe your SD-Card is broken. Can you try another one?
If this doesn't help, here are some things to consider:
Are you using an unaltered piCorePlayer 8.2.0?
Is your network connection stable? If using WIFI, try wired network.
It seems like some files are getting corrupted, while downloading from the piCorePlayer extension repository.md5sum: WARNING: 2 of 2 computed checksums did NOT match
Error on ca-certificates.tcz
I expected this to be a one time or temporary issue, but it was ca-certificates.tcz both times.
You did increase the file system as per my guide, right?
Maybe your SD-Card is broken. Can you try another one?
If this doesn't help, here are some things to consider:
Are you using an unaltered piCorePlayer 8.2.0?
Is your network connection stable? If using WIFI, try wired network.
No success.
I've:
increased the file system
Re-installed raspberry pi image writer
Re-downloaded image
Changed SD card
Tried both LAN and WIFI
Always the same result as per above.
Have you tried the script recently?
I've:
increased the file system
Re-installed raspberry pi image writer
Re-downloaded image
Changed SD card
Tried both LAN and WIFI
Always the same result as per above.
Have you tried the script recently?
Yes, I tried it with my 64-bit piCorePlayer on my Raspberry Pi 3B+ before writing the reply, yesterday.
It was working fine.
Are you using 32bit or 64bit piCorePlayer?
ca-certificates.tcz is a dependency of git.
You can try to install git manually via Main Page > Extensions > Available, then select git.tcz and load.
If this works, you can remove git from the script line
tce-load -wil -t /tmp git compiletc libasound-dev
(change to tce-load -wil -t /tmp compiletc libasound-dev).
Then run the modified script.
It was working fine.
Are you using 32bit or 64bit piCorePlayer?
ca-certificates.tcz is a dependency of git.
You can try to install git manually via Main Page > Extensions > Available, then select git.tcz and load.
If this works, you can remove git from the script line
tce-load -wil -t /tmp git compiletc libasound-dev
(change to tce-load -wil -t /tmp compiletc libasound-dev).
Then run the modified script.
We tend to use pcp-load instead of tce-load. Paul enhances pcp-load to work more reliably.
In pCP8 its about 50%, in pCP9 it will be 100%.
In pCP8 its about 50%, in pCP9 it will be 100%.
It's working!
I've tried both 32 and 64 didn't make any difference.
Tried your suggestion above installed git and run the script, no success.
Installed LMS on a refreshed image.
Run the script, now it almost worked , got stuck in a download sequence, possibly network problem.
Refreshed the image, installed LMS and run the script again, finally success!
I dont know if it was the unstable network creating the problem or the lack of installed LMS causing the problem?
I'm happy music is playing!
Thanks for your support!
I've tried both 32 and 64 didn't make any difference.
Tried your suggestion above installed git and run the script, no success.
Installed LMS on a refreshed image.
Run the script, now it almost worked , got stuck in a download sequence, possibly network problem.
Refreshed the image, installed LMS and run the script again, finally success!
I dont know if it was the unstable network creating the problem or the lack of installed LMS causing the problem?
I'm happy music is playing!
Thanks for your support!
How can I integrate the Flirc USB IR receiver for volume control. Does the description of Ralphy also work for this setup with Camilla?
https://forums.slimdevices.com/foru...elite-on-picoreplayer-5?p=1434829#post1434829
Thanks.
https://forums.slimdevices.com/foru...elite-on-picoreplayer-5?p=1434829#post1434829
Thanks.
I think, it should work.
Good to know. I will change the script to use pcp-load where possible.
Very nice.
We tend to use pcp-load instead of tce-load. Paul enhances pcp-load to work more reliably.
In pCP8 its about 50%, in pCP9 it will be 100%.
Good to know. I will change the script to use pcp-load where possible.
It's working!
Very nice.
Hi.
As I am totally new to this, I am enthusiastic to have found your method to do this.
Unlucky for me I tried your script and I am running into a similar problem.
This is what i get:
Checking Dependancies for git.tcz...
git.tcz already on system....OK
curl.tcz already on system....OK
openssl.tcz already on system....OK
Downloading expat2.tcz.dep....OK
libgcrypt.tcz already on system....OK
libgpg-error.tcz already on system....OK
Dependancy check complete for git.tcz.
Downloading: openssl.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
wget: server returned error: HTTP/1.1 416 Range Not Satisfiable
Error retreiving https://repo.picoreplayer.org/repo/13.x/aarch64/tcz/openssl.tcz
Checking MD5 of: openssl.tcz.....FAIL
MD5 of tcz: 034a8f55e5325eafe5f11a879a99b8b5 openssl.tcz
MD5 check: h :nIDAit)d&$47[@{ۿThere was a error downloading libasound-dev.tcz.
Max retries reached.
I would really appreciate your help on this.
Thank you in advance 🙂
As I am totally new to this, I am enthusiastic to have found your method to do this.
Unlucky for me I tried your script and I am running into a similar problem.
This is what i get:
Checking Dependancies for git.tcz...
git.tcz already on system....OK
curl.tcz already on system....OK
openssl.tcz already on system....OK
Downloading expat2.tcz.dep....OK
libgcrypt.tcz already on system....OK
libgpg-error.tcz already on system....OK
Dependancy check complete for git.tcz.
Downloading: openssl.tcz
Connecting to repo.picoreplayer.org (172.67.157.97:443)
wget: server returned error: HTTP/1.1 416 Range Not Satisfiable
Error retreiving https://repo.picoreplayer.org/repo/13.x/aarch64/tcz/openssl.tcz
Checking MD5 of: openssl.tcz.....FAIL
MD5 of tcz: 034a8f55e5325eafe5f11a879a99b8b5 openssl.tcz
MD5 check: h :nIDAit)d&$47[@{ۿThere was a error downloading libasound-dev.tcz.
Max retries reached.
I would really appreciate your help on this.
Thank you in advance 🙂
You can just reboot and run the install script again, did you try that?
Sometimes, there are just random failures. This looks like one.
Sometimes, there are just random failures. This looks like one.
Thanks for the fast reply, I am back home now.
I tried a few times and reset the image but always get the same error.
I'm connected over ethernet if this helps.
I also tried to load libasound-dev.tcz per Extension loader but to no avail.
I tried a few times and reset the image but always get the same error.
I'm connected over ethernet if this helps.
I also tried to load libasound-dev.tcz per Extension loader but to no avail.
- Home
- Source & Line
- PC Based
- CamillaDSP for piCorePlayer