In order to compile anything (including a simple "helloworld.c", do I need to download the full sources? (GPL_1927.zip - 270MB) ?
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 ]
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 ]
That's the easier solution.Originally Posted by gwl
Cheers.
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
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 ]
I just got a "hello world" from the router...
Here's what I've done:
uploaded "hello" into the router... and it worked...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
then I did this:
Output:Code:CXX=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc cd ggrab-0.22a/ make sserver
UPDATECode:/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
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 ]
Bad news. No cpp please. You need to do a lot more things to have cpp programs running on the system.Originally Posted by gwl
Cheers.
Hi
So post it here please, i have a HD running, but my dbox is out of service atm.Originally Posted by gwl
Yep, you can Strip out unused non-binary content from the ELF file.Originally Posted by gwl
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
Originally Posted by WlanMan
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 ]
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
here are the 2 programs. (striped)Originally Posted by WlanMan
[ WL-500G | fw: 1.9.2.7-7f ]
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:
Please post your (good/bad) results!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
[ WL-500G | fw: 1.9.2.7-7f ]