Results 1 to 6 of 6

Thread: How to compile custom binary

  1. #1
    Join Date
    Jul 2005
    Location
    Prague, Czech Republic, Europe
    Posts
    9

    How to compile custom binary

    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

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

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Code:
    mipsel-uclibc-gcc -o helloworld helloworld.c

  3. #3
    Join Date
    Jul 2005
    Location
    Prague, Czech Republic, Europe
    Posts
    9
    Quote Originally Posted by Oleg
    Code:
    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

  4. #4
    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 .

  5. #5
    Quote Originally Posted by Oleg View Post
    Code:
    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

  6. #6
    Quote Originally Posted by Oleg View Post
    Code:
    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/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

Similar Threads

  1. No ipkg binary in Oleg's firmware
    By nerodark in forum WL-500g Q&A
    Replies: 9
    Last Post: 15-11-2005, 13:11
  2. Replies: 8
    Last Post: 10-06-2005, 13:24
  3. Can someone compile loop.o
    By xection in forum WL-500g Custom Development
    Replies: 1
    Last Post: 22-02-2005, 20:39
  4. Who will compile GPSD for me
    By erik_bies in forum WL-500g Custom Development
    Replies: 2
    Last Post: 23-12-2004, 17:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •