Results 1 to 12 of 12

Thread: Compiling ggrab...

  1. #1

    Compiling ggrab...

    I wish to compile ggrab for the wl500g.
    ( http://webmail.mw-itcon.de/ggrab/ )

    I need to do "make"... but before that I must do something like:
    CC=mipsel-uclibc-gcc --host=mipsel-linux

    What steps should I follow in order to be able to successfully compile a program for the wl500g?

    I have a fully working linux box. (gentoo)
    what else should I do?

    thanks.
    Last edited by gwl; 14-03-2005 at 22:08.
    [ WL-500G | fw: 1.9.2.7-7f ]

  2. #2
    In order to compile anything (including a simple "helloworld.c", do I need to download the full sources? (GPL_1927.zip - 270MB) ?
    [ WL-500G | fw: 1.9.2.7-7f ]

  3. #3
    Quote Originally Posted by gwl
    In order to compile anything (including a simple "helloworld.c", do I need to download the full sources? (GPL_1927.zip - 270MB) ?
    That's the easier solution.

    Cheers.

  4. #4
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Hi Qwl

    You have to install the latest toolchain like statet in the readme inside or somewhere in the forum. There is a little fault in the description of the symlink creation, if i think right you must leave away the part after the last dash to link the directory to the correct place. Beware, this decompresses to nearly 900MB.

    After this, the usual way with make and the params should work.

    If i see right, this is a stream grabber for the dbox2.
    This is a nice idea, but think on that USB transfers can go only to 700kbit, and most Videostreams should be bigger if i think right.
    After all, good luck .

    Greets
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  5. #5
    thanks for your replies.
    I'm downloading the gpl source now... and I'll keep you posted on my progress.

    I've found some extra info here:
    http://wl500g.info/showthread.php?t=...ight=toolchain
    [ WL-500G | fw: 1.9.2.7-7f ]

  6. #6
    I just got a "hello world" from the router...

    Here's what I've done:
    Code:
    wget http://www.asuscom.de/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip
    mv GPL_1927.zip GPL_1927.tar.gz
    tar -zxvf GPL_1927.tar.gz  <-  (wow! almost a gigabyte!)
    less broadcom/README.TXT    (useless!!! the info is outdated)
    moved opt/ into /opt
    and then:
    /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-cc hello.c -o hello
    uploaded "hello" into the router... and it worked...
    then I did this:
    Code:
     
    CXX=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
    cd ggrab-0.22a/
    make sserver
    Output:
    Code:
     
    /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc  -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3  -c -o sserver.o sserver.cpp
    sserver.cpp:21:20: iostream: No such file or directory
    make: *** [sserver.o] Error 1
    UPDATE
    changed CXX into:
    CXX=/opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-c++
    and
    PATH=$PATH:/opt/brcm/hndtools-mipsel-linux/bin:/opt/brcm/hndtools-mipsel-uclibc/bin/

    now, make works...
    the program runs on the router !!!
    (still haven't tested it to record anything because I don't have a usb disk avaliable...)

    The program is 1.6MB... is it possible to make it smaller?

    thanks for your help!
    Last edited by gwl; 17-03-2005 at 01:17.
    [ WL-500G | fw: 1.9.2.7-7f ]

  7. #7
    Quote Originally Posted by gwl
    Code:
     
    /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc  -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3  -c -o sserver.o sserver.cpp
    sserver.cpp:21:20: iostream: No such file or directory
    make: *** [sserver.o] Error 1

    Any ideas ? What else do I need to configure?
    Bad news. No cpp please. You need to do a lot more things to have cpp programs running on the system.

    Cheers.

  8. #8
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Hi

    Quote Originally Posted by gwl
    now, make works...
    the program runs on the router !!!
    (still haven't tested it to record anything because I don't have a usb disk avaliable...)
    So post it here please, i have a HD running, but my dbox is out of service atm.

    Quote Originally Posted by gwl
    The program is 1.6MB... is it possible to make it smaller?
    Yep, you can Strip out unused non-binary content from the ELF file.
    Something like "mipsel-linux-strip --remove-section=.comment --remove-section=.note sserver" should do it, you can first try striping without any parameters, this works fine for me most time.

    Greets
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  9. #9
    Quote Originally Posted by WlanMan
    Hi
    So post it here please, i have a HD running, but my dbox is out of service atm.
    Greets

    I haven't tested it the right way... (still don't have a usb hdd...)
    I just started it on /tmp and tried to record 1 or 2 seconds into ramdisk... but it failled...
    Code:
    [admin@wl500g /tmp]$ ./sserver
    server startet
    request from dbox ip :192.168.1.252
    ********************** START RECORDING **********************
    ONIDSID     : xxxx
    APID        : xxxx
    VPID        : xxxx
    CHANNELNAME : xxxxxxxx
    EPG TITLE   : no description is available
    ***********************************************************
    execv failedNo such file or directory
    Last edited by gwl; 18-03-2005 at 01:12.
    [ WL-500G | fw: 1.9.2.7-7f ]

  10. #10
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Hi

    I think you need ggrap executable in the same directory ...
    Sserver only handles connection startup, gg is the grabber itself.
    Greets
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  11. #11
    Quote Originally Posted by WlanMan
    Hi
    I think you need ggrap executable in the same directory ...
    Sserver only handles connection startup, gg is the grabber itself.
    Greets
    here are the 2 programs. (striped)
    Attached Files Attached Files
    [ WL-500G | fw: 1.9.2.7-7f ]

  12. #12
    I have good news.. and bad news...

    ggrab works! I've managed to record with it...
    but only 1/10 times....
    I think it's related to the amount of free memory...
    It needs at least 4-5MB free....

    The probems I got were:
    Code:
    [admin@g5 ggrab]$ ./ggrab  -p 0xa7 -host 192.168.1.3 -o out.m2p
    xlist::sid: timeout wait for data
    
    [admin@g5 ggrab]$ ./sserver
    server startet
    request from dbox ip :192.168.1.3
    ********************** START RECORDING **********************
    ONIDSID     : 1e440
    APID        : 10A2
    VPID        : 10A1
    CHANNELNAME : TEST1
    EPG TITLE   : no description is available
    ***********************************************************
    xlist::sid: timeout wait for data
    Please post your (good/bad) results!
    [ WL-500G | fw: 1.9.2.7-7f ]

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. 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
  4. Error Compiling GPL1.1.2.8
    By martin700 in forum WL-HDD Custom Development
    Replies: 2
    Last Post: 08-01-2005, 21:38
  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
  •