========================================
 WGR614v10 Build Instructions

 Version: 1.0
 Date   : 2009/11/18
======================================== 

Note: 
      1. This package has been built successfully on Fedora Core 2.
         Compiling this package on platforms other than Fedora Core 2
         may have unexpected results.

===================
 Install toolchain
===================

1. Download the toolchain "hnd-tools-3.2.3.tgz"(ftp://downloads.netgear.com/files/GPL/wgr614v8_toolchain_src.tar.bz2).
2. Put "hnd-tools-3.2.3.tgz" into "/opt/brcm"
3. Run the following commands to extract the toolchain:

        cd /opt/brcm
        tar zxvf hnd-tools-3.2.3.tgz
        ln -s hndtools-mipsel-uclibc-3.2.3 hndtools-mipseluclib

===================
 Build code
===================

1. Edit your user profile (On Fedora Core 2, the profile is ~/.bash_profile)
   to include the toolchain paths:

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

2. Put the file "WGR614v10-V1.0.2.54_60.0.82NAWW_src.tar.zip" into a directory of your choice.
   Unzip and untar it with the following command:
        
        unzip WGR614v10-V1.0.2.54_60.0.82NAWW_src.tar.zip
        tar xvf WGR614v10-V1.0.2.54_60.0.82NAWW_src.tar

3. Copy the "trx" program under "bcm5356/tools" to a location where the user can access, e.g. /usr/bin :

        cp bcm5356/tools/trx /usr/bin

4. Choose one of the following:

   a. To build NA firmware,
        type "export FW_TYPE=NA"
   b. To build WW firmware,
        type "export FW_TYPE=WW"

5. Run the following commands to build image

        cd bcm5356/src/linux/linux
        make dep
        cd ../../router
        make clean
        make PROFILE=WGR614v10
        make install PROFILE=WGR614v10

6. The final image is "bcm5356/src/router/mipsel-uclibc/kernel_image.chk".
   User may upgrade to this image using the WGR614v10 GUI "Router Upgrade" page.

