PDA

Bekijk de volledige versie : Compiling ggrab...



gwl
13-03-2005, 14:38
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.

gwl
14-03-2005, 22:05
In order to compile anything (including a simple "helloworld.c", do I need to download the full sources? (GPL_1927.zip - 270MB) ?

mctiew
15-03-2005, 01:08
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.

WlanMan
15-03-2005, 17:31
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

gwl
16-03-2005, 19:31
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=1832&highlight=toolchain

gwl
17-03-2005, 00:26
I just got a "hello world" from the router... :D

Here's what I've done:

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:


CXX=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
cd ggrab-0.22a/
make sserver

Output:


/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!

mctiew
17-03-2005, 01:06
/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.

WlanMan
17-03-2005, 08:06
Hi



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.



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

gwl
17-03-2005, 12:34
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...


[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

WlanMan
17-03-2005, 12:51
Hi

I think you need ggrap executable in the same directory ...
Sserver only handles connection startup, gg is the grabber itself.
Greets

gwl
18-03-2005, 01:11
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)

gwl
19-03-2005, 21:45
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:


[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! :cool: