mikebrady / shairport-sync-for-openwrt

This is an OpenWrt package for building and installing Shairport Sync
45 stars 22 forks source link

New Version of shairport-sync 2.6 on Openwrt #13

Closed atze09 closed 8 years ago

atze09 commented 8 years ago

Hello Mike, Because of i had the issue with my Synology Nas with the "old" shairport sync version i would like to know if there is a way to update the shairport sync version for Openwert to 2.6.

Can i do this on my own? If yes how?

Or do you have to update this?

Thank you in advance.

Best Regards, Dominik

mikebrady commented 8 years ago

Hi Dominik, and thanks for your interest in Shairport Sync. Can I ask a couple of quick questions please: first, did you install it from this shairport-sync-for-openwrt repository? and second, what version of OpenWrt are you using? I ask these questions because there is a nice new package in trunk for Shairport Sync.

atze09 commented 8 years ago

Hello Mike, and thank you for your quick reply. I have folled this tutorial:

https://tlwr710nprojects.wordpress.com/2015/06/07/der-tl-wr710n-als-airplay-client/

Which nice New package do you mean? Do you have a link?

Besteht regards, Dominik

atze09 commented 8 years ago

I think now i saw what you mean. https://github.com/openwrt/packages/tree/master/sound/shairport-sync Seems your shairport-sync is now official package of openwrt, isn't it? That's awesome, i really like your work!

mikebrady commented 8 years ago

Thanks for your kind words. You beat me to the reply.

If you are happy to update to the latest OpenWrt, what you should do is

  1. note your Shairport Sync settings, such as name, output device, mixer name, 'stuffing' setting, password, etc.
  2. remove the shairport-sync-for-openwrt folder from the packages folder of your OpenWrt folder.

Update to the latest OpenWrt and then, as follows, update the package feeds:

 ./scripts/feeds update -a

You can search for Shairport Sync and install its new package. Here's a search:

$./scripts/feeds search shairport
Search results in feed 'packages':
shairplay                   Shairplay
shairport                   ShairPort AirPort Express emulator (un-maintained)
shairport-sync-mini         AirPlay compatible audio player (minimal)
shairport-sync-openssl      AirPlay compatible audio player (openssl)
shairport-sync-polarssl     AirPlay compatible audio player (polarssl)
Search results in feed 'luci':
luci-app-shairport          LuCI Support for Shairport

Remember then to select the appropriate version of it using make menuconfig. I recommend the shairport-sync-openssl package unless you are trying to do something special.

If you are installing just the Shairport Sync package into the old, existing, OpenWrt system without upgrading OpenWrt itself, then:

  1. remove the file /etc/init.d/shairport-sync
  2. remove the file /etc/config/shairport-sync
  3. Install Shairport Sync.

It will install a new /etc/config/shairport-sync file into which you'll have to put your settings. Make sure to remove the line that disables the use of the settings stanza.

Note that you may run into trouble if Shairport Sync relies on stuff that isn't in the older OpenWrt system – you may get dependency errors, and you may need to install a few other packages, or it might be that you have to update OpenWrt itself too, YMMV.

atze09 commented 8 years ago

Thank you very much Mike, you're awesome. I am currently awaiting my OpenWRT Router will will try your suggestions and reply. I think we can close this here

atze09 commented 8 years ago

Hello Mike, shairport-sync automatically comes with the chaos calmer openwrt version and i successfully installed it. But it is the old version, where i have issues with my synology. Unfortunately i had no success in building my own openwrt. Maybe you can give me a short tutorial how to upgrade shairport sync to 2.6. That would be awesome. Thank you in advance.

Best Regards, Dominik

atze09 commented 8 years ago

Hello Mike, Can you help me on this topic? Need to update the shairport to 2.6 Thanks in advance Best Regards, Dominik

mikebrady commented 8 years ago

Sure thing, but I'm away on business until next week...

atze09 commented 8 years ago

No hurry, enjoy your trip.

mikebrady commented 8 years ago

Hi there. I've created a new branch called barrier-breaker and it should also work with Chaos Calmer. Could you give it a try and let me know (the instructions have been updated).

atze09 commented 8 years ago

Hello Mike, Thank you for your answer. But do i really need to build a new firmware. Isn't it possible to update the shairport version on running openwrt?

I wasn't successful in building my own version. Can anyone provide me a openwrt version for wr710n (ar71xx chipset) with shairport version 2.6. That would be awesome.

Best Regards, Dominik

mikebrady commented 8 years ago

Hi Dominik. When the new firmware image is built, separate packages for shairport-sync and for libsoxr are also built, and you'll find them in bin/ar71xx/packages/base. You don't actually need to install the complete new image, just the shairport-sync and libsoxr packages.

atze09 commented 8 years ago

Thank you Mike, but my build system seems to be broken. I cannot build it, maybe anyone can provide me the two packages??

mikebrady commented 8 years ago

Can you tell me the exact version of the Shairport Sync that's in your Synology system at present please? If you enter shairport-sync -V you'll get a version string.

mikebrady commented 8 years ago

Send me an email and I can send you back the packages.

atze09 commented 8 years ago

Thank you, my Email is ds1707@gmx.net. I do not have the package installed on my synology. Synology is my server and the shairport-sync are my clients (on Raspberrys and WR710N) I have problem playing from synology with "2.1.15-openssl-Avahi-ALSA-soxr" Version installe on WR710N. Would be awesome if you could send me those packages.

atze09 commented 8 years ago

Hello Mike, First of all thank you for the files, but unfortunately i cannot install them. I get the error: Collected errors:

I don't know how to proceed

mikebrady commented 8 years ago

Are you using the opkg utility to install them?

atze09 commented 8 years ago

Yes

mikebrady commented 8 years ago

Let me look at this again over the weekend – I may have done something stupid. Meantime, could you do $uname -a and $cat /etc/banner on your 710N please?

atze09 commented 8 years ago

root@OpenWrt:/# uname -a Linux OpenWrt 3.18.20 #1 Fri Sep 4 21:55:57 CEST 2015 mips GNU/Linux

root@OpenWrt:/# cat /etc/banner


| |.-----.-----.-----.| | | |.----.| | | - || | -| || | | || || | |_____|| |___||||____||| |__| |__| W I R E L E S S F R E E D O M


CHAOS CALMER (15.05, r46767)


mikebrady commented 8 years ago

Thanks for the info. The Chaos Calmer SDK I'm using is for r48246. I built the packages I sent you using the 'M' option ('M' for module, i believe). I've rebuilt them using the standard '*' option. They have slightly different file sizes, so let's hope they are more useful. Update – I've now sent the r46767 versions too.

atze09 commented 8 years ago

Hello Mike, This was my fault, i had a file transfer issue, after using winscp i can install both packages. Now shairport-sync -V gives me the 2.6 answer. And it works with synology audio station. Thank you very much for your awesome support, you are the best!

Now i can replace my raspberrys with WR710:-)

Best regards, Dominik

mikebrady commented 8 years ago

Great stuff.

vaski666 commented 8 years ago

Hi Mike,

I would love to get a copy of the files you sent to atze09. i have the same build and kernel as him

Edit: my email is vaski79"at"gmail.com Br,

John A.

mikebrady commented 8 years ago

It might take me a while to regenerate it...

vaski666 commented 8 years ago

Ok, no stress at all. i will use the one i have
I was going to use it with a logitech g930 and it seems it is not straight forward so i hoped that a newer version might help

mikebrady commented 8 years ago

Hi there John. Here is Shairport Sync 2.8.1 for r46767.

Regards Mike

On 30 Mar 2016, at 16:41, vaski666 notifications@github.com wrote:

Ok, no stress at all. i will use the one i have

I was going to use it with a logitech g930 and it seems it is not straight forward so i hoped that a newer version might help

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/mikebrady/shairport-sync-for-openwrt/issues/13#issuecomment-203495323

hjhrwerv2423 commented 8 years ago

Hello Mike! Can i get this files too? Thanks a lot! my e-mail: vaslobas@gmail.com

I'am using router wl-500gp v1 https://wiki.openwrt.org/toh/asus/wl500gp

I have the same system as other guys in this topic. `2.1.15-openssl-Avahi-ALSA-soxr

Linux OpenWrt 3.18.20 #1 Fri Sep 4 14:50:22 CEST 2015 mips GNU/Linux

CHAOS CALMER (15.05, r46767)`