PDA

Bekijk de volledige versie : How to compile custom binary



Elephantik
19-07-2005, 00:02
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



#include <stdio.h>
int main(void)
{
printf("Hello world!!!\n");
}


Thanks for help.

Oleg
19-07-2005, 07:49
mipsel-uclibc-gcc -o helloworld helloworld.c

Elephantik
20-07-2005, 16:15
mipsel-uclibc-gcc -o helloworld helloworld.c

Pretty easy, thanks lot :)

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

Bsus
26-12-2008, 06:23
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 :o. Now I can have fun writing my own programs to run on my router :D.

darius
03-01-2009, 19:48
mipsel-uclibc-gcc -o helloworld helloworld.c


Great.
Could you compile Linux Dialog, Xdialog for a router
or give me a hint, how to start ,
and how to install such compiled binaries ?

Darius

darius
04-01-2009, 11:14
mipsel-uclibc-gcc -o helloworld helloworld.c


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/wireless/WL-500g-03/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/download/selectftp.aspx?l1_id=11&l2_id=2&l3_id=0&m_id=10&f_name=GPL_1927.zip~zaqwedc

some download locations:
http://www.asus.com.tw/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
ftp://www.asus.com.tw/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
ftp://www.asus.it/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
http://www.asus.com/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
http://www.asuscom.de/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
http://www.asus.com.cn/pub/ASUS/wireless/WL-500g-03/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/wireless/WL-500g-03/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/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

=============

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/wl500g-1.9.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