You are here: Home » Reply

Reply To: Build firefly nightly on WL-500g



@rpedde wrote:

Here’s the start:

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 and follow these instructions (also on but somewhat modfied):

cd /opt
svn co 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
mv 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, a patch for the Asus toolchain by Oleg is also needed.


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:


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

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]