PDA

View Full Version : wl500gx custom appz, compile environment



gatsu
31-03-2007, 06:15
Hello.

My name is John, and I'd like to make a small proxy server, for Asus wl500gP.

First of all, I'd like to apologize if what I'm looking for is already posted; but I did search and research many times, and none of the posts on this forum, nor googled one's, helped me, with this.

My problem is, I don't know what more I should I, in order to run a small program like "Hello world" in wl500gP.

I've done what it is said in here: http://www.macsat.com/macsat/content/view/30/29/

and corrected it, based on this post: http://wl500g.info/showthread.php?t=8733


cd /opt
cvs -d :pserver:anonymous@nslu.cvs.sourceforge.net:/cvsroot/nslu co unslung

cd /opt/unslung
cvs update -dP

cd /opt
wget http://files.wl500g.info/asus/wl500g/gpl/GPL_1927.zip
tar zxf ./GPL_1927.zip
cp -R /opt/broadcom/opt/brcm /opt

export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin


rm -R -f /opt/broadcom
rm /opt/GPL_1927.zip

wget http://oleg.wl500g.info/uClibc-0.9.19/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2

cd /opt
tar -xjf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
rm -f /opt/brcm/hndtools-mipsel-uclibc
ln -s hndtools-mipsel-uclibc-3.2.3-full /opt/brcm/hndtools-mipsel-uclibc
rm /opt/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2

Edit: /opt/unslung/Makefile
and add: UNSLUNG_TARGET = wl500g

cd /opt/unslung
make directories
make ipkg-utils

cd /opt/unslung
make

hoping this would stablish the right environment, so I could compile my "hello world" and run it on wl500.

Still no success.

Can anyone please, help me and in this way using this thread has a future, tutorial for newbies like me?

Thank you.

fillmore
31-03-2007, 07:17
Read
http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild
http://trac.nslu2-linux.org/optware/wiki
http://www.freewebs.com/ptnemot/wl500g/oleguclibcsumm.html carefully

build your cross-compile environment by using this code


svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
export OPTWARE_TARGET=oleg
make directories
make toolchain
make packages