Originally Posted by
hejira
I'd also like to build a .c file for my wl-500g and I'm also not sure how to start. But you know that there is a tutorial on how to set up a build environment for the wl-500g(x) at
http://www.macsat.com/BuildEnvironment.php?
The goal of the build environment is to be build ipk packages for the nslu2 and wl500 starting from an opensource software available somewhere on the Net (apache, php, pound, etc...).
Originally Posted by
hejira
Unfortunatelly, it ends when the interesting part begins and I don't know how to proceed from there.
If your plan is only to compile and run a few set of .c files you've written, the only things you need is this sub-part of Macsat tutorial (apart of the prerequisites) :
Code:
mkdir /opt
cd /opt < enter >
wget http://www.asuscom.de/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip < enter >
tar zxf ./GPL_1927.zip < enter >
cp -R /opt/broadcom/opt/brcm /opt < enter >
This will install the Asus cross compilation toolchain (a c compiler able to build stuff for broadcom architecture) on your linux machine.
You will also need Oleg's patched uClibc :
Code:
cd /var/tmp
wget http://oleg.wl500g.info/1.9.2.7-6b/wl500g-1.9.2.7-6b.tar.bz2
tar xjf wl500g-1.9.2.7-6b.tar.bz2
cd wl500g-1.9.2.7-6b
make uClibc
When this two points are done, you're ready to compile your own .c stuff using broadcom c compiler :
Code:
mipsel-uclibc-gcc -o helloworld helloworld.c
et voila.
JF