Firefly on Buffalo Linkstation?

Dicuss the new Firefly Media Server.

Moderators: TaylorH, RokuDouglas, RokuTom, RokuKen, RokuRyan, RokuJamesL

Firefly on Buffalo Linkstation?

Postby risimmons » Thu May 18, 2006 11:06 pm

Hi,

Has anyone tried getting Firefly built/installed for Buffalo Linkstation (MIPS wth OpenLink)

I currently run this setup with Twonky, and I was thinking that Firefly might be a better solution, since browsing via Twonky is rather slow.

Before I go ahead and install cygwin + cross compilation tools on my PC for the linkstation, and going through the pain of trying to get the compilation going, I was wondering if anybody had done this already and would be willing to share a pre-compiled binary.

Also - is it worth me trying to do this yet? Should I await a non-beta version of Firefly? Are there any known issues which might cause problems? Is there any chance that a Linkstation binary compilation could be added to the nightlies?

Cheers
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby richdunlop » Fri May 19, 2006 5:05 am

Have you seen http://wiki.mt-daapd.org/wiki/Quickstart_LinkStation? It might help you get your build process up and going quick. Sorry I can't help with a binary - I'm running a slug.
richdunlop
 
Posts: 798
Joined: Tue Aug 02, 2005 11:29 pm
Location: UK

Postby risimmons » Fri May 19, 2006 6:25 am

Thanks, that might be useful - I'm not sure if that is valid for Linkstation with Openlink, or whether it needs a full Linux install on the box. I was thinking of using the cross compile tools from linkstationwiki.org to compile on PC.
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby ibby » Fri May 19, 2006 11:34 pm

Rich,
Have you read through this thread?
http://www.rokulabs.com/forums/viewtopi ... s+playlist
I think ajayre might be using Firefly now. If not, I think the build notes should help to get it installed onto the Linkstation. I haven't attempted it yet and I still haven't attempted installing a "nightly".

I'll echo the comment that if anyone has an executable ready to go for the Linkstation, I'd love to get a copy!
Roku Soundbridge M1001 v2.7.29
NAS: Buffalo LinkStation 250 (MipSEL) openware v0.52b
NAS server: mt-daapd v0.2.4
Router: LinkSys WRT54G v4.20.7
Computer: Dell XPS M170 XP SP2
and 1000 monkeys at the controls!
ibby
 
Posts: 28
Joined: Tue Jan 10, 2006 6:24 pm

Firefly on Linksation

Postby xanth » Sun May 21, 2006 8:29 am

Haven't got Firefly binary but did set up MT-DAAP on a hacked Linkstation using the downloads from linkstationwiki.org. Seems to run pretty well. Speed is OK and I am running about
20GB of music with about 4000+ tracks.

Overall very pleased.

Colin
xanth
 
Posts: 3
Joined: Mon May 15, 2006 11:30 am
Location: St Albans UK

Postby risimmons » Mon May 22, 2006 12:07 am

Thanks for the comments - I may give this a go at some point, since it doesn't look like anybody else has done it. Linux is alien to me though, so it's not likely to be a smooth process! If by some miracle I do get it going then I'll post the process...
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby risimmons » Tue Jun 13, 2006 7:03 am

Posting this as much for my own future reference as anything else!

http://linkstationwiki.org/forum/1_1016_0.html
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby richdunlop » Tue Jun 13, 2006 12:07 pm

Ron was talking about putting together a mipsel build tree (for another device) for the nightlies. See this thread:

http://www.rokulabs.com/forums/viewtopi ... 8998#48998

I assume that'd work for the Linkstation too. Maybe you could be his crash test dummy :wink:
richdunlop
 
Posts: 798
Joined: Tue Aug 02, 2005 11:29 pm
Location: UK

Postby rpedde » Tue Jun 13, 2006 3:18 pm

richdunlop wrote:Ron was talking about putting together a mipsel build tree (for another device) for the nightlies. See this thread:

http://www.rokulabs.com/forums/viewtopi ... 8998#48998

I assume that'd work for the Linkstation too. Maybe you could be his crash test dummy :wink:


I'm going to talk to rwhitby to see if he would mind me putting firefly nightlies in the unslung repo. If so, then it would automatically get built for mipsel among others. (wl500, I think)
rpedde
 
Posts: 1015
Joined: Fri Sep 10, 2004 5:25 pm

Postby richdunlop » Wed Jun 14, 2006 12:04 am

rpedde wrote:I'm going to talk to rwhitby to see if he would mind me putting firefly nightlies in the unslung repo. If so, then it would automatically get built for mipsel among others. (wl500, I think)


An excellent idea. 8)
richdunlop
 
Posts: 798
Joined: Tue Aug 02, 2005 11:29 pm
Location: UK

Postby risimmons » Fri Jun 16, 2006 1:21 am

Nightlies for MIPSel sounds good - hopefully the binaries will work on Linkstation also.

Does firefly have the same dependencies as mt-daap? there's info on installing mt-daap on a Linkstation at linkstationwiki.org. Presumably i'd just be able to follow these but use a new binary.
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby rpedde » Fri Jun 16, 2006 10:09 pm

risimmons wrote:Nightlies for MIPSel sounds good - hopefully the binaries will work on Linkstation also.

Does firefly have the same dependencies as mt-daap? there's info on installing mt-daap on a Linkstation at linkstationwiki.org. Presumably i'd just be able to follow these but use a new binary.


Nighlies need at a minimum libid3tag and libsqlite (or libsqlite3).

If you are doing transcoding from ogg or flac, you need those libs as well.

-- Ron
rpedde
 
Posts: 1015
Joined: Fri Sep 10, 2004 5:25 pm

Postby risimmons » Sun Aug 13, 2006 10:00 am

Ok I finally got around to doing this, and it seemed to go remarkably smoothly! Had to get info from various sources, but I tried to note down all the steps I followed (sources for info referenced);

This is for a Buffalo Linkstation II (MIPSel) running OpenLink 0.52 firmware. I think it would be similar for a PPC Linkstation, but some of the paths will change.

[EDITED 23/08/06 to add transcode and howl install]

Install Dev Tools;
http://linkstationwiki.net/index.php?ti ... stallation

cd /tmp (changed from tmp)
wget http://downloads.linkstationwiki.net/development_tools/<flavour>-tools-2_1.tgz
mkdir devtools
cd devtools
tar xzvf ../<flavour>-tools-2_1.tgz
./install.sh

Install libid3tag
http://linkstationwiki.net/index.php?ti ... /Macintosh

cd .. (get back to /tmp directory)
wget http://umn.dl.sourceforge.net/sourcefor ... .1b.tar.gz
tar -xvzf libid3tag-0.15.1b.tar.gz
cd libid3tag-0.15.1b
./configure --prefix=/usr/local
make install

Install sqlite

cd .. (get back to /tmp directory)
wget http://www.sqlite.org/sqlite-2.8.17.tar.gz
tar -xvzf sqlite-2.8.17.tar.gz
cd sqlite-2.8.17
./configure --prefix=/usr/local
make install


[OPTIONAL - FLAC / OGG VORBIS TRANSCODE]
Install Ogg lib

cd .. (get back to /tmp directory)
wget http://downloads.xiph.org/releases/ogg/ ... 1.3.tar.gz
tar -xvzf libogg-1.1.3.tar.gz
cd libogg-1.1.3
./configure --prefix=/usr/local
make install

Install Vorbis Lib

cd .. (get back to /tmp directory)
wget http://downloads.xiph.org/releases/vorb ... 1.2.tar.gz
tar -xvzf libvorbis-1.1.2.tar.gz
cd libvorbis-1.1.2
./configure --prefix=/usr/local
make install

These libraries need to be registered with the linker. This can be done by creating a file called ld.so.conf in /etc as follows;

vi /etc/ld.so.conf

edit the file to add the line;
/usr/local/lib

save and exit. Then type

ldconfig -v

verify that the ogg and vorbis libs are listed.

Install flac

cd .. (get back to /tmp directory)
wget http://kent.dl.sourceforge.net/sourcefo ... 1.2.tar.gz
tar -xvzf flac-1.1.2.tar.gz
cd flac-1.1.2
./configure --prefix=/usr/local
make install

The flac libs also need to be registered, so;

ldconfig -v

[END (OPTIONAL - FLAC / OGG VORBIS TRANSCODE)]

[OPTIONAL - HOWL INSTALL - REQUIRED FOR MULTIPLE INSTANCES]

cd .. (get back to /tmp directory)
wget http://www.porchdogsoft.com/download/howl-1.0.0.tar.gz
tar -xvzf howl-1.0.0.tar.gz
cd howl-1.0.0
./configure --prefix=/usr/local
make install

The howl libs need to be registered, so (assuming you've added the line to /etc/ld.so.conf as above);

ldconfig -v


[END (OPTIONAL - HOWL INSTALL - REQUIRED FOR MULTIPLE INSTANCES)]


Install firefly (for 1359 nightly - obviously check for the latest and alter accordingly...)

cd .. (get back to /tmp directory)
wget http://nightlies.mt-daapd.org/dl.php?FI ... 359.tar.gz
mv dl.php?FILE=mt-daapd-svn-1359.tar.gz mt-daapd-svn-1359.tar.gz
tar -xvzf mt-daapd-svn-1359.tar.gz
cd mt-daapd-svn-1359

[EITHER (assuming flac, ogg and howl built)]
./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --enable-howl --with-howl-includes=/usr/local/include/howl --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite --enable-flac --enable-oggvorbis
[OR]
./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite

make install
mkdir /usr/local/etc/mt-daapd
cp contrib/mt-daapd.* /usr/local/etc/mt-daapd/
cd /usr/local/etc/mt-daapd/


vi mt-daapd.conf (use vi editor to modify config file as/if required. Some help on vi; http://www.cs.colostate.edu/helpdocs/vi.html)
You probably need at least to change the location of the music files to /mnt/hda

chmod o=rw mt-daapd.conf (allow any user to write to mt-daapd.conf to allow web interface to modify it)

Check it's works

/usr/local/sbin/mt-daapd

Wait a while then access;

http://<linkstation-ip>:3689

Username is nobody
Password is mt-daapd

Unless you've modified it in mtdaapd.conf

Create a startup script;
(from http://wiki.mt-daapd.org/wiki/Quickstart_LinkStation)

cd /etc/init.d

vi mt-daapd-startup

Enter the following lines (between the ****s)

************************************************************

# !/bin/sh

# make sure our shared libraries are in the path.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

if [ -n "`pidof mt-daapd`" ] ; then

killall mt-daapd 2>/dev/null

fi

/usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.conf


************************************************************

Mark the file as executable;
chmod +x mt-daapd-startup

Create a symbolic link to this file in the startup dir;
ln -s mt-daapd-startup /etc/rc.d/rc2.d/S93mtdaapd


[To add multiple instances];
create new subdirectories under /usr/local/var/cache/mt-daapd which correspond to the databases required.
eg.
mkdir /usr/local/var/cache/mt-daapd/albums/

Set appropriate permissions
chown nobody:nogroup /usr/local/var/cache/mt-daapd/albums
chmod u+w /usr/local/var/cache/mt-daapd/albums

Create a new startup mt-daapd.conf with the appropriate path to the database dir (eg mt-daapd.albums.conf)

Modify the starup script to start mt-daapd using this conf file;

/usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.albums.conf

The startup script must also start Howl (mDNSResponder)

/usr/local/bin/mDNSResponder

(this should be started before the mt-daapd instances)




That should be it. I'm no linux expert, so much of what I've done is likely to be a bit dodgy, but it seemed to work for me! Just playing with Firefly now - much faster than Twonky which I was using before (presumably due to proprietary RSP protocol).
Roku 2 XS
risimmons
 
Posts: 37
Joined: Fri Jan 13, 2006 9:05 am
Location: Cambridge, UK

Postby g0pkh » Fri Aug 25, 2006 2:55 pm

For anyone else, sitting on the fence about installing Firefly on the Linkstation II (mipsel) version with openlink 052b.

I can say that these instructions work superbly.

I have spent the last evening working on installing 2 separate instances of firefly on my LS.

It is good to have separate servers for Popular, and Classical Music.

Thanks for the superb instructions Richard :)

Pete
Soundbridge and Photobridge repairs offered.
contact via PM or hillyp02-roku@yahoo.co.uk
g0pkh
 
Posts: 349
Joined: Sat Jan 21, 2006 11:04 am
Location: Essex Nr. Stansted Airport.. UK

Postby richdunlop » Fri Aug 25, 2006 11:13 pm

Pete,

How does performance compare with the slug?

Cheers,
rich
richdunlop
 
Posts: 798
Joined: Tue Aug 02, 2005 11:29 pm
Location: UK

Next

Return to Firefly Media Server

Who is online

Users browsing this forum: No registered users and 1 guest