Compiling Tomato Source Code for NETGEAR WGR614L

Following are steps of downloading and compiling tomato firmware for WGR614L router.

1. Download the source code from www.myopenrouter.com site. Link is www.myopenrouter.com/download/file/10216-20
/>
2. Create one directory where want to untar the source code and compile it. For example mkdir /home/TOMATO_WGR614L

3. cd /home/TOMATO_WGR614L. You can use your own path also.

4. bunzip2 tomato-src-wgr614L.tar.bz2

5. tar xvf tomato-src-wgr614L.tar

This will untar the source code into /home/TOMATO_WGR614L directory.

To compile the source code you should have the toolchain. Toolchain for orginal WGR614v8 source can be used here. You can download that toolchain from netgear site.
I have put the toolchain in /opt/brcm directory.

1. cd /home/TOMATO_WGR614L/bcm5354/src

2. export PATH=/opt/brcm/hndtools-mipsel-uclibc-3.2.3/bin:$PATH

3. export PATH=/opt/brcm/hndtools-mipsel-linux-3.2.3/bin:$PATH

4. rm -rf $(find . -name '.depend')

5. make clean

6. make

This will compile the source code successfully.

Please note that I have tested these steps on Fedora Core 8 and Fedora Core 6. I do not know the outcome if you use any other Linux distribution.

Discussion:

kuttappan on May 1, 2008 6:02 PM

I am new to Linux and embedded devices and am trying to learn it with the help of informative articles like this. Thanks to this post, I managed to download, compile, and upload to my router the Tomato firmware.

I would appreciate it if you could help me with a particular request though. I am trying to find the place in the source code where the connection between the Linux console and the serial ports are made. In particular I want to stop the console sending any messages or providing the prompt at any of the serial ports. It can easily be done in OpenWRT by editing a file, but it does not work in Tomato. Is there a place in the Firmware where I can do it or any place in the source where I can change this behavior and then compile it?

Thanks in advance!

esion.teng on July 21, 2008 9:51 PM

i am compling TOMATO_WGR614L route hv one error is following can you help me solved problem

install /opt/brcm/hndtools-mipsel-uclibc-3.2.3/lib/libc.so.0 /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/lib/
install /opt/brcm/hndtools-mipsel-uclibc-3.2.3/lib/libdl.so.0 /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/lib/
install /opt/brcm/hndtools-mipsel-uclibc-3.2.3/lib/libm.so.0 /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/lib/
install /opt/brcm/hndtools-mipsel-uclibc-3.2.3/lib/libutil.so.0 /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/lib/
install /opt/brcm/hndtools-mipsel-uclibc-3.2.3/lib/libnsl.so.0 /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/lib/
libc.so.0: Attempted to remove 696/1013 symbols. 366.98K - 206.66K = 160.32K
libresolv.so.0: not found, skipping...
libcrypt.so.0: Attempted to remove 7/8 symbols. 14.41K - 14.02K = 0.39K
libm.so.0: Attempted to remove 108/112 symbols. 82.33K - 10.10K = 72.23K
libpthread.so.0: not found, skipping...
libutil.so.0: Attempted to remove 8/9 symbols. 5.68K - 2.58K = 3.10K
libcrypto.so: Attempted to remove 1633/1847 symbols. 1211.84K - 1050.21K = 161.64K
libzebra.so: not found, skipping...

Layer 7 patterns squished.
cp layer7/squished/*.pat /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target/rom/etc/l7-protocols
make[2]: Entering directory `/home/deng/Tomoto_Route/bcm5354/src/mksquashfs'
make -C lzma/SRC/7zip/Compress/LZMA_Lib
make[3]: Entering directory `/home/deng/Tomoto_Route/bcm5354/src/mksquashfs/lzma/SRC/7zip/Compress/LZMA_Lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/deng/Tomoto_Route/bcm5354/src/mksquashfs/lzma/SRC/7zip/Compress/LZMA_Lib'
make[2]: Leaving directory `/home/deng/Tomoto_Route/bcm5354/src/mksquashfs'
/home/deng/Tomoto_Route/bcm5354/src/mksquashfs/mksquashfs-lzma /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target /home/deng/Tomoto_Route/bcm5354/src/router/mipsel-uclibc/target.image
make[1]: *** [install] Floating point exception
make[1]: Leaving directory `/home/deng/Tomoto_Route/bcm5354/src/router

THANKS VERY MUCH

esion.teng on July 22, 2008 9:28 PM

hi i am have proble is following :
any project soure packet busybox is error how to solved can you help me?

/bin/sh: line 1: 1618 Floating point exceptionscripts/bb_mkdep -I /home/deng/Tomoto_Route/bcm5354/src/router/busybox/include /home/deng/Tomoto_Route/bcm5354/src/router/busybox >.depend.tmp
make[3]: *** [.depend] Error 136
make[2]: *** [_all] Error 2
make[2]: Leaving directory `/home/deng/Tomoto_Route/bcm5354/src/router/busybox'
make[1]: *** [busybox] Error 2
make[1]: Leaving directory `/home/deng/Tomoto_Route/bcm5354/src/router'
make: *** [all] Error 2