Chapter 6. Loading HIPL on OpenWRT

Table of Contents

Preparation
Building HIPL for OpenWRT on La Fonera
Loading HIPL for OpenWRT on La Fonera
Some notes about HIPL on La Fonera
Building HIP for OpenWRT on Netgear WGT634U
Loading HIPL on Netgear WGT634U
Building HIP for OpenWRT on ASUS WL500W

Preparation

This is a common part for both La Fonera and Netgear WGT634U.

  1. Install required packages on your system:

    gcc, binutils, patch, bzip2, flex, bison, make, gettext, pkg-config, unzip, libz-dev and libc.

  2. 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
    

  3. 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".

  4. 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.

  5. 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.