sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

piCorePlayer a dedicated microcore and squeezelite player

Sun Jan 13, 2013 12:51 pm

Hi I have build a very small dedicated player (the piCorePlayer) for our squeezebox system. It is meant to be running as a headless player.
Simply plug it in and within a few sec it will appear as a player in your Squeezebox Server.

If you need to change any settings you can open a browser on another computer and via a web-GUI you can make your changes:

Image


Get it from the piCorePlayer web page https://sites.google.com/site/picoreplayer/home/news


It is build on the small microcore linux (http://distro.ibiblio.org/tinycorelinux/) which is only about 50 MB in size and is a read-only system, so there is no risk of corruption of your CF-card. It only writes back to the card when you tell it to do so.

On top of this I have put in Triodes very good small Squeezelite player (http://forums.slimdevices.com/showthrea ... alsa-only))
In addition I have put in a SSH server (dropbear).

This little player runs entirely in RAM, so you just pull the power plug to stop it, without any risk to your system.

More info can be found here: http://forums.slimdevices.com/showthrea ... queezelite

You will be able to get sound from:
- Audio jack
- External USB DAC (up to 192kHz/24b)
- I2S-based audio cards (up to 192kHz/24b)
- HDMI (up to 192kHz/24b).

Connect via wifi or LAN

Steen
Last edited by sbp on Thu May 01, 2014 5:42 pm, edited 9 times in total.
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Sun Jan 13, 2013 1:42 pm

Hi forgot to mention how to connect via putty:

user=tc Password=nosoup4you
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Sun Jan 13, 2013 6:06 pm

sbp wrote:You will be able to get sound from the audio jack, and external USB DAC as well as the HDMI connector.
Interesting. :)

However, doesn't work with either of my two USB soundcards. One is the ebay 2704 bare board (analog and SPDIF outputs) and the other is an ebay CM106 based blue box. Both give an error message like:

ALSA lib pcm_direct.c:1616:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[00:00:18.464270] test_open:137 playback open error: Invalid argument
[00:00:18:465247] output_init:1284 unable to open output device

(BTW, CF means Compact Flash. The RPi uses SD cards not CF.)

Edit: Have just seen post #10 of the thread you mention at slimdevices. Seems that external USB DACs cannot be expected to work out of the box with the downloaded image. :(

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Sun Jan 13, 2013 6:24 pm

hi sorry for that.

Unfortunately you still will need to set squeezelite up, depending of what USB card you are using. So you will need to log in via putty (user: tc, and password nosoup4you) and then follow the advise from the post of Gerrelt here:

http://forums.slimdevices.com/showthrea ... post733036

Hope that helps.
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Sun Jan 13, 2013 6:55 pm

Yes, since my edit to my post above I've followed Gerret's instructions. Still a problem with the CM106 box which I tried first but success with the PCM2704 card. (I'll try the CM106 again later.)

Thanks

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 11:13 am

Hi

Thanks for trying the piCoPlayer.

Regarding your CM106 BOX, is it working with squeezelite in another system?
Does this box need special drivers for linux to work?
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 6:30 pm

sbp wrote:Hi

Thanks for trying the piCoPlayer.

Regarding your CM106 BOX, is it working with squeezelite in another system?
Does this box need special drivers for linux to work?
Had another try with the CM106 soundcard. Same error as before:

Code: Select all

[00:.....] alsa_open:259 channel count not available: Invalid argument
This repeats about every 5 seconds.

I'm fairly certain I've had this 5.1 soundcard working without installing an additional driver in Ubuntu 10.10 (i386). I've also had it 'working' with some OSs on the RPi; audio coming out but never clean - always distorted in some way.

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 7:08 pm

Update on my preceding post. (Just missed the 30 minute edit window.)

Googling suggests the error message is indicative of a sample rate problem. The packaging for the sound card says:

"It supports 32kHz, 44.1kHz (which two need driver or application software support) and 48kHz sampling rate in digital recording, 48kHz sampling in analog recording and 48kHz in digital/analog audio playback."

So 48kHz only for output.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 7:23 pm

Thanks for the info.

The reason my asking was to see if it is a problem with the microcore linux, or it is the squeezelite player that is the cause.
So can you use the card with squeezelite on another linux system, like the SqueezePlug from Truehl?
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 7:38 pm

By using the line

Code: Select all

sudo /mnt/mmcblk0p2/tce/squeezelite-armv6hf -o plughw:CARD=Audio,DEV=0 -n piCoPlayer -m 00:11:95:xx:yy:zz -a 80:4
I now have output from the CM106 box, but same distortion as before with other OSs on the RPi. I think this is a consequence of the current "imperfect" state of the RPi's USB implementation. See http://www.raspberrypi.org/phpBB3/viewt ... 12#p257512.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Jan 14, 2013 8:05 pm

Hi have you tried to increase the buffer, so instead of using 80:4 try to use 500:4.
Regards
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Tue Jan 15, 2013 12:26 am

sbp wrote:Hi have you tried to increase the buffer, so instead of using 80:4 try to use 500:4.
Regards
Increasing the buffer made no difference. The distortion does sound like very fast dropouts. Causes a volume dependent "scratchiness". A bit like a loudspeaker's voice-coil rubbing on the magnet. As I said, my suspicion is the USB dropping packets.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

New version of piCorePlayer (microcore squeezelite and WiFi

Mon Feb 11, 2013 8:40 pm

Hi A new version is ready.

It is even smaller now (22 MB with wifi, linux and Squeezelite). The WiFi is working, and it has a set-up script to set-up both the WiFi as well as a USB-DAC.

You can get it from here:
http://rapidshare.com/files/1129968650/ ... er_v04.img

I hope you will enjoy it - and please report back if you have problems, but I would also like to know if it is working without problems for you.

Please notice that for me I had to use WPA protection on my router, otherwise my Comfast WU710N: chipset RTL8188CUS USB WiFi dongle would give me problems with stuttering audio from the 3.5" audio jack. If I was using a USB-DAC I could use both WPA and WPA2 protection on the WiFi.

So If you have problems with the sound on a WiFi connected piCorePlayer, please try to change your protection on the router to WPA

Steen

Here is a Howto:
HOW TO:

After download of the PiCorePlayer burn it to a SD-card (I use Win32Diskimager) then insert the SD-card and apply power.
Right out of the box, the analog audio via the 3.5" jack is working. The player can be controlled like any other Squeezebox player, via the Squeezebox Server or Logitech Media Server (LMS), or via softwarre on your smartphone or duet controller.

...............................

SETUP:
If you want to use a USB DAC, you will need to supply the correct squeezelite commands - for this you can use the setup menu.

The setup menu can be initiated in two different ways:

1. Connect via a LAN cable and use putty from another computer (user=tc, password=nosoup4you).
At the command promt write; picoreplayer which will start the setup-script.
If you want to use WiFi the use the setup-script - remember that the IP adress via WiFi will be different from the IP adress used for the LAN connection
2. If you have a keyboard and screen connected to your raspberry. At the command promt write: picoreplayer which will start the setup-script.

Version 04
Changes from version 02

1. Renamed player to PiCorePlayer
2. Updated Microcore version 4.7.4
3. Updated WiFi packages, more reliable connection
4. Increased available RAM by 48 MB, by reducing GPU RAM to minimal 16 MB.
5. Overclocked Raspberry from 700 to 900 MHz
6. Reduced size to 22 MB in total
7. Fitted in one partition
8. Fixed picoreplayer script:
a. Now changes are saved after every change
b. Fixed problem with download of Squeezelite which was only possible once
c. Fixed problem with generation of new SSH host file after each reboot
d. Added option to restart player without reboot.
e. Added WiFi setup - NB Use only WPA-personal encryption. Don't use WPA2 encryption on you r net
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Tue Feb 12, 2013 12:12 pm

v0.4 won't boot for me. It stops at the multi-coloured square, red power LED only, no activity on the other LEDs. 256 Mbyte RPi.

1. Downloaded v0.4
2. Used dd to put v0.4 on the 2 Gbyte SD card that was running v0.2 OK
3. Tried to boot. Fail as above.
4. Used dd again to put v0.4 on the card
5. Tried to boot. Fail as above.
6. Edited config.txt to comment out the 900 MHz overclock line.
7. Tried to boot. Fail as above.
8. Used dd to put v0.2 on the card.
9. Successful boot.
10. Downloaded v0.4 again. Same size as first time 23068672 bytes.
11. Used dd to put v0.4 on the card.
12. Tried to boot. Fail as above.
13. Used dd to put v0.2 on the card.
14. Successful boot.

I do see the v0.4 single partition and its files on the SD card.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Thu Feb 14, 2013 8:31 am

Hi

Sorry for your problems. Just uploaded a new version piCorePlayer04 - I checked it by re-downloading from Rapidshare, burned it to a SD card, and booted my Raspberry without problems.

So I hope the problem is solved.

Please try to download it again from here: http://rapidshare.com/files/1756340839/ ... ayer04.img

Please notice that for me I had to use only WPA protection on my router (not WPA2) and lowering the speed to 54Mb/s also helped. It might be my WiFi card that gave me problems, so please try it out and report which WiFi card you are using and at what speed it is possible to use.

(I have a Comfast WU710N: chipset RTL8188CUS.)

Steen
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Thu Feb 14, 2013 11:31 am

sbp wrote:So I hope the problem is solved.

Please try to download it again from here: http://rapidshare.com/files/1756340839/ ... ayer04.img
Sorry, still does not boot. Same as before - stops on multi-coloured square. Two flashes of green "Ok/Act" light then red power LED only. No flashes of 3 network LEDs.

I tried writing this new version twice. Second time I used gparted to remove partition from SD card before writing.

truxntrax
Posts: 11
Joined: Wed Aug 03, 2011 12:00 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Thu Feb 14, 2013 7:57 pm

Hi,

Really interested in trying this. How do I configure for audio out via HDMI please?

Thanks!

jambam
Posts: 3
Joined: Fri Feb 15, 2013 10:09 am

Re: piCoPlayer a dedicated microcore and squeezelite player

Fri Feb 15, 2013 10:25 am

Thank for this .

I was able to boot using the kernel.img from v2 and overwrting the same file in v4 as stated in the slimdevices forum ..

My problem is getting wifi to auto start at boot . It seems that the default router ssid is not being saved during the setup , such that the command
Wifi.sh -a in localboot.sh is not able to log and get an ip address.

Any ideas ?

jambam
Posts: 3
Joined: Fri Feb 15, 2013 10:09 am

Re: piCoPlayer a dedicated microcore and squeezelite player

Fri Feb 15, 2013 2:51 pm

I found a solution ..
Deleting all other entries in wifi,.db
And making sure that the default router is the first and only entry in WiFi.db , starts up WiFi on boot ..

I still have an issue, squeeze lite starts reliably with wired lan but not with wireless . it maybe my dongle , router or I have power issues. Which I will work out tomorrow.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Sat Feb 16, 2013 10:14 am

Hi

Thank you for the interest - I don't know what happened with the links, but I will update them now.

I have also made a new version piCorePlayer_V05. Hopefully, you will be able to boot this one. I have tested it several times, and it boots fine for me (but then, so did version 04). I have also improved the WiFi script, so that the wifi database is cleared everytime.

You can get piCorePlayer_V05 from here: http://rapidshare.com/files/2649418455/ ... er_V05.img

And the changelog and "HOW-TO" from here: http://rapidshare.com/files/1092919146/ ... yerV05.txt

The older versions can be downloaded from here:
http://rapidshare.com/files/738896248/V ... ngelog.txt
http://rapidshare.com/files/1756340839/ ... ayer04.img
http://rapidshare.com/files/2536786570/ ... yer_v2.img
http://rapidshare.com/files/2590555272/ ... yerV04.txt


Please report back, if you can or can't boot the new version one.

Steen
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

jambam
Posts: 3
Joined: Fri Feb 15, 2013 10:09 am

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Feb 18, 2013 9:26 am

Hi,

Tried out the v05 , it now boots and auto starts with wifi as long as you do the setup . ... great I used it for 4 hours yesterday so for so good...

I tried wifi with WEP and WPA security both work fine

Thanks for the great work

lunarok
Posts: 3
Joined: Thu Feb 21, 2013 4:27 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Feb 25, 2013 3:01 pm

Hi,

Is it possible to configure wifi before boot ? I have one Raspberry model A, no ethernet on it.
Fo now, I use Raspbian and after writing image I do a mount and edit /etc/network/interfaces to configure wifi.

And a second question, is it possible to get piCoPlayer to get hostname from DHCP lease ? For this I use a hook in dhcp client.
So like this, image is ready for my network and can flash any new SD card and get the Raspberry working and different from the others but from same image.

But for now, some sound issue from squeezelite on Raspbian, so want to give a try to piCoPlayer.

sbp
Posts: 128
Joined: Wed Sep 26, 2012 7:54 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Mon Feb 25, 2013 9:30 pm

lunarok wrote:Hi,

Is it possible to configure wifi before boot ? I have one Raspberry model A, no ethernet on it.
Fo now, I use Raspbian and after writing image I do a mount and edit /etc/network/interfaces to configure wifi.
I will have look, but would it not be possible for you to use a keyboard and a screen for the first boot. Then you could configure it there?
lunarok wrote:And a second question, is it possible to get piCoPlayer to get hostname from DHCP lease ? For this I use a hook in dhcp client.
So like this, image is ready for my network and can flash any new SD card and get the Raspberry working and different from the others but from same image.

But for now, some sound issue from squeezelite on Raspbian, so want to give a try to piCoPlayer.
I will take a look - and report back later
piCorePlayer webpage: https://sites.google.com/site/picoreplayer/home

lunarok
Posts: 3
Joined: Thu Feb 21, 2013 4:27 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Thu Feb 28, 2013 10:27 pm

Hi,

Some news. I try to use one with keyboard.
But my keyboard is not working under piCoPlayer (Logitech Wireless, working under Raspbian, Raspbmc and Ubuntu)

So will need try it with ethernet connected by SSH.

For the hostname by DHCP, it's done under Ubuntu/Debian by a file under : /etc/dhcp/dhclient-exit-hooks.d/

And content :
# ===== begin /etc/dhcp/dhclient-exit-hooks.d/hostname ======
if [ -n $new_host_name ]
then
echo "$new_host_name" > /etc/hostname
/bin/hostname $new_host_name
fi
# ===== end /etc/dhcp/dhclient-exit-hooks.d/hostname ======


The SD card cannot be mounted under Linux. Is it normal ? A mount is saying the NTFS is not signed ...

drgeoff
Posts: 9729
Joined: Wed Jan 25, 2012 6:39 pm

Re: piCoPlayer a dedicated microcore and squeezelite player

Fri Mar 01, 2013 11:34 am

lunarok wrote:The SD card cannot be mounted under Linux. Is it normal ? A mount is saying the NTFS is not signed ...
My piCorePlayer v0.5 SD card mounts fine under Linux (Ubuntu 10.10).

Response to 'mount' is:
/dev/sdh1 on /media/A0D5-E528 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)

Response to 'df-h' is:
/dev/sdh1 24M 22M 2.7M 89% /media/A0D5-E528

Return to “Media centres”