Reply To: Build firefly nightly on WL-500g

#8829
wouter
Participant

@rpedde wrote:

Here’s the start:

http://forums.fireflymediaserver.org/viewtopic.php?t=5271

Basically, get set up to do regular unslung packages, as described in either the unslung docs, or the docs for the firmware you are using. (Oleg’s?) Then get it to the point where you can cross compile 0.2.4. Once you have that, then download the files in the topic above and go crazy.

Ok thnx! I’ve just got the ASUS toolchain running and compiled the 2.4.x mt-daapd .ipk with it, going to try the nightly now :cool:.

@rpedde wrote:

Also, if you can point me to instructions on getting the toolchain set up, I’d be happy to set up a build tree to pump out nightlies. It’s easy to do once the toolset is setup, but I just need a concise explanation of how to get it set up.

Turned out to be pretty easy :-). Get http://files.wl500g.info/asus/wl500g/gpl/GPL_1927.zip and follow these instructions (also on http://www.macsat.com/BuildEnvironment.php but somewhat modfied):

cd /opt
svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware

[..]

Besides the unslung stuff, we need to download the Asus GPL sources for getting the Asus toolchain (note that this is around 273 MB in size !):

cd /opt
wget http://files.wl500g.info/asus/wl500g/gpl/GPL_1927.zip
mv GPL_1927.zip GPL_1927.tar.gz
tar zxf ./GPL_1927.tar.gz
cp -R /opt/broadcom/opt/brcm

When using Olegs firmware versions equal to or above version 1.9.2.7-4, a patch for the Asus toolchain by Oleg is also needed.

wget http://oleg.wl500g.info/uClibc-0.9.19/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2

Theese are installed according to Olegs own instructions:

cd /opt
tar -xjf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
rm -f /opt/brcm/hndtools-mipsel-uclibc
ln -s hndtools-mipsel-uclibc-3.2.3-full /opt/brcm/hndtools-mipsel-uclibc

Use your favourite editor to set the following line in /opt/optware/Makefile:

UNSLUNG_TARGET = wl500g

Now we just need a final step:

cd /opt/optware
make directories
make ipkg-utils

Testing / Building an ipk package
A simple test is easy to perform:

cd /opt/optware
make

I basically just did a ‘make mt-daapd’ after unpacking the toolchain and linking/copying the brcm stuff around, and it builds fine. A ‘make mt-daapd-ipk’ results in a nice .ipk, so that also seems to work fine. I also tried to apply the Oleg hndtools-uclibc patches (twice), but that screws up the environment so I left it out. AFAIK It’s only needed for building firmware anyway… If I manage to get a nightly building & running I’ll post a link, but feel free to take a shot at it as well :wink:. If you can wl500g packeges in your nightly builds would be great! It’s a pretty common router and especially the gP with 32MB is nice hardware for a firefly server, so the packages would probably be useful for others as well.

@rpedde wrote:

edit: Oh, and I’ve been working on xbmc. Seems like I’ve got it at least sort-of working. I’ll drop nightlies tonight.

Cool, good stuff :-). I’ll see if it works with if I get it running then![/url]