Code:mipsel-uclibc-gcc -o helloworld helloworld.c
I would like to create some binary for WL500g but I did not succeeded in compilation. I have successfully installed GPL sources from Asus (GPL_1927) and applied Oleg's changes. But I just did not catch how to call compiler.
e.g. helloworld.c
Thanks for help.Code:#include <stdio.h> int main(void) { printf("Hello world!!!\n"); }
Code:mipsel-uclibc-gcc -o helloworld helloworld.c
Pretty easy, thanks lotOriginally Posted by Oleg
One more question. Is there any way to use C++? I don't want to use STL only some language features (classes, overloading, etc...). But when I use mipsel-uclibc-g++ the binary fails to start because it is missing libstdc++.so.5. Is there some way to compile C++ without libstdc++ support?
Thanks
Yay! Thanks Oleg for the hint. I've finally managed to compile and see "Hello world" in my router. Nearly gave up a few times myself. It turned out I used mipsel-linux instead of uclibc to compile . Now I can have fun writing my own programs to run on my router .
Ok.
Followed this thread
http://wl500g.info/showpost.php?p=22732&postcount=3
[admin@oo root]$ cd /opt
[admin@oo /opt]$ wget http://www.asuscom.de/pub/ASUS/wirel...3/GPL_1927.zip
Connecting to www.asuscom.de[211.72.249.198]:80
wget: server returned error 404: HTTP/1.1 404 Not Found
[admin@oo /opt]$
I am running Olegs/Koppel fw
Should I go back to Asus ?
Macsat HowTo
http://www.macsat.com/BuildEnvironment.php
http://www.asus.com/pub
Sorry!
We are undergoing web site maintenance and will be online very soon!
http://wl500g.info/archive/index.php/t-1314.html
Antiloop
15-12-2004, 00:43
GPL source code for firmware version 1.9.2.7
http://www.asus.com.tw/support/downl...27.zip~zaqwedc
some download locations:
http://www.asus.com.tw/pub/ASUS/wire...3/GPL_1927.zip
ftp://www.asus.com.tw/pub/ASUS/wirel...3/GPL_1927.zip
ftp://www.asus.it/pub/ASUS/wireless/...3/GPL_1927.zip
http://www.asus.com/pub/ASUS/wireles...3/GPL_1927.zip
http://www.asuscom.de/pub/ASUS/wirel...3/GPL_1927.zip
http://www.asus.com.cn/pub/ASUS/wire...3/GPL_1927.zip
AsusForum.NET -- WL500g > Asus WL-500g > WL-500g Firmware Releases > Firmware v1.9.2.7 GPL Sources
I have installed Oleg's fw than moved to Koppel to install Huawei usb modem.
Which sources do I need to install and from what working web site ?
==============
by Fabrice
mkdir /opt
cd /opt < enter >
wget http://www.asuscom.de/pub/ASUS/wirel...3/GPL_1927.zip < enter >
tar zxf ./GPL_1927.zip < enter >
cp -R /opt/broadcom/opt/brcm /opt < enter >
========
You will also need Oleg's patched uClibc :
Code:
cd /var/tmp
wget http://oleg.wl500g.info/1.9.2.7-6b/w...2.7-6b.tar.bz2
tar xjf wl500g-1.9.2.7-6b.tar.bz2
cd wl500g-1.9.2.7-6b
make uClibc
=============
the last two paragraphs by Jean-Fabrice
http://wl500g.info/showpost.php?p=22732&postcount=3
The second web link
http://oleg.wl500g.info/1.9.2.7-6b/w...2.7-6b.tar.bz2
is valid.
What about the Firmware v1.9.2.7 GPL Sources
for my WL-500gP V2 running Koppel,
which version GPL Sources should I download and from what place ?
Darius