HOW TO COMPILE TO TARGET OLEG
HOW-TO learn how to setup a target oleg compile enviroment Compile your own or others sourcecode for the WL500(G/p) with OLEG? In need of compiling some tools for your router? Well I am doing this how-to because its a bit hit and miss to figure it out.
1. Ubuntu I have suceeded with Ubuntu 9.10 'Karmic Koala' - running under a virtual machine and running on a PC partition so I can just boot into it. I recommend creating a seperate partition on your PC hardisk and installing it there because it is faster to compile and use. You should be able to use debian or other linux releases, its just that ubuntu was easy to setup.
2. First Install developer tools
You want to SuperUserDO the following
sudo apt-get install gcc cvs subversion flex bison make pkg-config rsync gettext libglib2.0-dev autoconf libtool automake1.9 sudo patch bzip2 gzip wget sed
to make sure you have the tools needed for compling and linking, running scripts and obtaining files from the internet. "apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library."
http://linux.die.net/man/8/apt-get
3. SVN checkout the Optware Area
cd /opt
svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
cd optware
4. Make oleg-target : creates the oleg directory and make ipkg-utils
dirs
Here I change a line in the opt/optware/Makefile from 'OPTWARE_TARGET?=?xxx? to 'OPTWARE_TARGET=oleg'
then
make toolchain
make oleg-target
cd oleg
make directories ipkg-utils
make ipkg-utils
5. Test if you like * WARNING - THIS WILL TAKE A LONG TIME TO COMPLETE*
cd /opt/optware/oleg
make Packetname
(eg; make esniper)
this will make a existing binary oleg package from the source.
Example of downloading and compiling source
*again Warning - this will take a long time*
For this example I am going to take the sourceforge package 'esniper' a ebay sniper util and compile it for the WL500 router.
We have now setup the target oleg compile enviroment - Get the sourcecode from http://sourceforge.net/projects/esni...0.tgz/download
1. unzip it into a subdirectory in oleg
2. locate the esniper.mk file and change it to the current version
3. >Make esniper.ipkg
4. move the ipkg file to the router
5. > ipkg install eniper-2-21-0.ipk
references:
Doing this sucessfully :D:cool:based on
QMax posts,
FastJacks howto in German : http://wl500g.info/showthread.php?t=...apt-get&page=3