view · edit · print · history

Note that the official builds for wl500g optware use the toolchain from wl500g.dyndns.org with uClibc++ upgrade for C++ compilation

Support for this package feed has been superseeded by Optware-uClibcBuild

  • A toolchain:

Toolchain from http://wl500g.dyndns.org was updated to accomodate uClibc++ library for C++ compilation. You can grab the whole toolchain from http://www.wlan-sat.com/boleo/optware/ and install it with

tar -C / -xjf hndtools-mipsel-uclibc-3.2.3-uClibc++-0.1.12.tar.bz2

Alternatively you can use the same toolchain which is used to build the wl500g firmware and then issue

   make libuclibc++
   make libuclibc++-install

in optware directory to upgrade toolchain with libuclibc++. This upgrade will affect all C++ include headers, install uClibc++ library and wrapper for g++. Note that gcc compiler remains untouched with this upgrade.

For running C++ programs like groff, python, mysql, ctorrent, ..., ipkg package libuclibc++_0.1.x.y-x.ipk is also required and built automaticaly as dummy dependence of libstdc++ (empty package) on libuclibc++ (real package).

Follow [http://wiki.wl500g.info/index.php/compilingcustomfirmware | wiki.wl500g.info] one step instructions to build custom firmware and its toolchain.

  • B wl500g_optware:
 put the [http://www.nslu2-linux.org/Makefile|nslu2_master_Makefile] in Mywl500g/ directory. To build the optware :

$make setup-optware

$make optware-wl500g

will normally build all the wl500g packages described in the Makefile.

  • C poor Noobs might not know : you better install in your host machine both

automake1.4 and 1.9 : it helps a lot :-) And make 3.80 when building Oleg firmware.

MySQL? and possibly others packages using autoreconf fails to build if autoconf from 2.59.cvs.2006.05.13 is used. Using autoconf_2.59a solves this issue.

Build your own ipk (for instance oww for the wl500g):

For ipkg build, it is usually recommended to use a non-root user and a non-user accessible subdirectory, often /home/slug/optware.

The steps for optware/wl500g development are:

1) download wl500g toolchain from http://www.wlan-sat.com/boleo/optware/ to /opt/brcm and untar it with:

   tar -C / -xjf hndtools-mipsel-uclibc-3.2.3-uClibc++-0.1.12.tar.bz2

2) mkdir -p $HOME/slug && cd $HOME/slug

   svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware

3) cd $HOME/slug/optware && make wl500g-target

4) cd $HOME/slug/optware/wl500g

5) make directories ipkg-utils

The above only needs to be done once, and should only take a couple of minutes below, assume you're in $HOME/slug/optware/wl500g directory.

6) make hello-ipk (or hello-dirclean hello-check, this is for testing toolchain)...

7) make oww-ipk

The build result are in builds/

view · edit · print · history · Last edited by Holger.
Based on work by Holger, oleo, Thomas, and rwhitby.
Originally by nnhoan.
Page last modified on June 20, 2008, at 01:02 AM