Table of Contents
This is a common part for both La Fonera and Netgear WGT634U.
Install required packages on your system:
gcc, binutils, patch, bzip2, flex, bison, make, gettext, pkg-config, unzip, libz-dev and libc.
In Debian/Ubuntu Linux, for example, do like this:
# apt-get install gcc binutils-dev patch bzip2 libbz2-dev flex bison make gettext pkg-config unzip zlib1g-dev libc6-dev
If you are using bash, make sure that your shell option does not include the noclobber option. First check if noclobber is included in your shell option.
$ set | grep -i noclobber SHELLOPTS=braceexpand:emacs:hashall:histexpand:interactive-comments:monitor:noclobber:notify
Like this case, if you have that option, you must remove set -o noclobber in your $HOME/.bashrc file. Otherwise you might encounter a lot of errors while building OpenWRT, like "cannot overwrite existing files".
Checkout and build the openWRT sources following this manual: http://wiki.openwrt.org/OpenWrtDocs/BuildingKamikazeHowTo It is not much different for each version, no matter the 7.09 release or the svn devel tree.
It's a good idea to make a directory named as 'files' under your OpenWRT tree, and get your own custom configuration files under that directory, maintaining the hierarchy on Linux. For example:
$ ls svn kamikaze-7.09 $ mkdir kamikaze-7.09/files $ mkdir kamikaze-7.09/files/etc kamikaze-7.09/files/bin $ cp <somewhere>/etc/* kamikaze-7.09/files/etc/
This way of customization is really convenient, because you need neither to find proper locations for them in your build directory, nor to place those files there. It means all the files under 'kamikaze-7.09/files' directory is automatically copied into your build directory, every time you build an OpenWRT image.