Results 1 to 15 of 21

Thread: Compiling [need HowTo]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Compiling [need HowTo]

    Could smdy tell me how can i compile my .c program for wl500gx?
    i tried to search, but coldn't find anything.
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  2. #2
    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? Unfortunatelly, it ends when the interesting part begins and I don't know how to proceed from there.

    Maybe by pushing this thread a bit we'll find someone out there who is able to provide some help on this ;-)

  3. #3
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote 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...).
    Quote 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

  4. #4
    Thanx Very much!
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  5. #5
    There is no file: http://www.asuscom.de/pub/ASUS/wirel...3/GPL_1927.zip , can somebody sahre it?
    Last edited by FilimoniC; 29-11-2005 at 07:58.
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  6. #6
    GPL source code for firmware version 1.9.5.0, is here:

    http://support.asus.de/download/down...Language=en-us

    global: http://dlsvr01.asus.com/pub/ASUS/wir...3/GPL_1950.zip
    usa: http://dlsvr03.asus.com/pub/ASUS/wir...3/GPL_1950.zip
    europe: http://dlsvr02.asus.com/pub/ASUS/wir...3/GPL_1950.zip

    beware... it's 170MB...

    NOTE: this isn't a zip file... you should rename it to .tar.gz our .tgz and extract it with:
    tar -zxvf your_file.tgz
    Last edited by gwl; 30-11-2005 at 04:28.
    [ WL-500G | fw: 1.9.2.7-7f ]

  7. #7
    Uhmm... Can you advice a recovery method.. Downloaded it twice, both are damaged +(
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  8. #8

    Unhappy

    Hello,
    I'm a new french guy
    I read these how to (http://www.macsat.com/BuildEnvironment.php) but i the end... it's not working and i don't understand why...
    I'm running on a gentoo Box.

    I have these message :
    utopia unslung # make
    make readline-stage ncurses-stage
    make[1]: Entering directory `/opt/unslung'
    #make <bar>-stage <baz>-stage
    rm -rf /opt/unslung/builds/readline-5.0 /opt/unslung/builds/readline
    zcat /opt/unslung/downloads/readline-5.0.tar.gz | tar -C /opt/unslung/builds -xvf -
    readline-5.0/
    readline-5.0/doc/
    [Snip]
    readline-5.0/histfile.c
    readline-5.0/histsearch.c
    #cat | patch -d /opt/unslung/builds/readline-5.0 -p1
    mv /opt/unslung/builds/readline-5.0 /opt/unslung/builds/readline
    (cd /opt/unslung/builds/readline; \
    AR=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-ar AS=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-as LD=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-ld NM=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-nm CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc CPP="/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc -E" GCC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc CXX=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-g++ RANLIB=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-ranlib STRIP=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-strip \
    CPPFLAGS="-O2 -pipe -I/opt/unslung/staging/opt/include " \
    LDFLAGS=" -L/opt/unslung/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/opt/unslung/staging/opt/lib " \
    ./configure \
    --build=i386-pc-linux-gnu \
    --host=mipsel-linux \
    --target=mipsel-linux \
    --prefix=/opt \
    --disable-nls \
    --disable-static \
    )
    checking build system type... i386-pc-linux-gnu
    checking host system type... mipsel-unknown-linux-gnu

    Beginning configuration for readline-5.0 for mipsel-unknown-linux-gnu

    checking whether make sets $(MAKE)... yes
    checking for mipsel-linux-gcc... /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables
    See `config.log' for more details.
    make[1]: *** [/opt/unslung/builds/readline/.configured] Erreur 77
    make[1]: Leaving directory `/opt/unslung'
    make: *** [/opt/unslung/builds/abook/.configured] Erreur 2

    Can somebody help me ?


  9. #9
    Quote Originally Posted by Jean-Fabrice View Post
    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...).

    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
    et voila.

    JF
    Hi Jean,

    I am trying to compile helloworld.c just to learn how it works.
    My hardware is WL-500gP V2, I installed Koppel firmware to get my cellular modem connected.

    Aus server is temporary down.

    As your HowTo is already some years old, please tell me if the GPL sources are still valid version for my router running today Koppel .
    If not, what GPL sources should I select and from what place ?

    greetings,

    Happy New Year

    Darius

    BTW I will try to compile Linux Dialog for running my basic shell scripts.

  10. #10
    Hi everyone,

    I tried already native compilation, but I didn't succed, so I gave cross compiling a try. I've booted my laptop with ubuntu intrepid and I followed Jean-Fabrice's tutorial, but it doesn't seem to be complete. I noticed, that on oleg.wl500g.info Oleg posted a new toolchain (uClibc 0.9.19), so I installed it as well. What I have so far is the following:
    1. The following extracted directories under /opt
    hndtools-mipsel-linux
    hndtools-mipsel-linux3
    hndtools-mipsel-linux3
    hndtools-mipsel-uClibc
    hndtools-mipsel-uClibc
    hndtools-mipsel-uClibc
    hndtools-mipsel-uClibc (this one is created by the new toolchain)

    2. The following extracted directories under /var/tmp
    uClibc-0.9.19
    wl50g-1.9.2.7.6b

    I have a feeling that after the command "make uClibc" there are still things to do before we execute "mipsel-uclibc-gcc -o helloworld helloworld.c".
    When I ran the command "make uClibc", I got these errors:
    PHP Code:
    dp79@Perro:/var/tmp/wl500g-1.9.2.7-6bsudo make uClibc
    tar xjf uClibc
    -0.9.19.tar.bz2 -/var/tmp
    Looking 
    for last applied patch
    ./patch.shline 19patchcommand not found
    ./patch.shline 19patchcommand not found
    ./patch.shline 19patchcommand not found
    ./patch.shline 19patchcommand not found
    ./patch.shline 19patchcommand not found
    Patching 
    /var/tmp/uClibc-0.9.19 with  uClibc-0.9.19-trunc64.patch uClibc-0.9.19-timezones.patch uClibc-0.9.19-dn_expand.patch uClibc-0.9.19-resolv.patch uClibc-0.9.19.diff
    ./patch.shline 33patchcommand not found
    ./patch.shline 37patchcommand not found
    Can not apply uClibc
    -0.9.19.diff cleanly
    make
    : *** [/var/tmp/uClibcError 1 
    This "make" command created the "uClibc-0.9.19" directory, but nothing has been installed, because the system doesn't recognize the "mipsel-uclibc-gcc" command.

    Could somebody finish this tutorial and show us how to compile helloworld from the beginning to the end?

    Thanks!

    dp79

  11. #11

Similar Threads

  1. Compiling 1.9.2.7-6b firmware
    By unaiur in forum WL-500g Q&A
    Replies: 9
    Last Post: 30-09-2005, 09:24
  2. Compiling MusicPD
    By muffl0n in forum WL-500g Q&A
    Replies: 0
    Last Post: 20-07-2005, 20:03
  3. Compiling ggrab...
    By gwl in forum WL-500g Custom Development
    Replies: 11
    Last Post: 19-03-2005, 21:45
  4. Error while compiling ppp in 1.9.2.7-3
    By Ifaistos in forum WL-500g Custom Development
    Replies: 2
    Last Post: 12-01-2005, 17:03
  5. Compiling on/for the WL-500g
    By dsf260 in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-12-2004, 10:54

Posting Permissions

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