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!
Compiling Tomato Source Code for NETGEAR WGR614L
Categories: Tomato WGR614L (Legacy Product)
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.
Read More In: Tomato WGR614L (Legacy Product)
NETGEAR employee Tathagata Das discusses issues, solutions, development tools, and cool tricks associated with NETGEAR open source routers.
Featured Article
How to Configure Windows Network Browsing in Tomato on NETGEAR WNR3500L
With Windows, browsing computers in the network can take a long time with serious delays before getting the computer lists. This especially happens in environments where there is not a server available which most of us have in our home scenarios. If not aware of it the TomatoUSB firmware can... More »
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
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
Hi, I am following this steps here but is stuck at this step:-
>>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.
Questions:
1. What is this toolchain?
2. Is this the correct location for the toolchain.
ftp://downloads.netgear.com/files/GPL/wgr614v8_toolchain_src.tar.bz2
3. Why am I getting this error?
/bin/sh: mipsel-linux-gcc: command not found
Thank you.
I am compiling this code under Fedora 8.
What this error means:-
SOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o m_ematch.o m_ematch.c
bison -d -t -v -o emp_ematch.yacc.c emp_ematch.y
make[3]: bison: Command not found
make[3]: *** [emp_ematch.yacc.c] Error 127
make[3]: Leaving directory `/root/tomato/bcm5354/src/router/iproute2/tc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/tomato/bcm5354/src/router/iproute2'
make[1]: *** [iproute2] Error 2
make[1]: Leaving directory `/root/tomato/bcm5354/src/router'
make: *** [all] Error 2
can ANYONE convert tomato 1.21 .trx file to .chk to use om my netgear router, Please i am just trying to bond 2 dsl lines but i need this version that have the option for multilink.
thank you
View unverified member's comment - posted by Jeab
View unverified member's comment - posted by Jeab
FYI: Newbies are likely to get stopped short early in the build process for two reasons:
1. The WRT54L source is no longer available from the ftp location given in the build script. I had to do a lot of hunting to find it.
2. By default, the broadcom tools package does not create the symlinks expected by the build script. This needs to happen:
cd /opt/brcm
ln -sf hndtools-mipsel-linux-3.2.3 hndtools-mipsel-linux
ln -sf hndtools-mipsel-uclibc-3.2.3 hndtools-mipsel-uclibc
Once I did this, the build sailed to completion - and this was a 64-bit Ubuntu 9.10 box!
All that said, thanks for the good work on this package! I'm anxious to see if a tomato-ized WGR614L solves my problem with throughput degradation in the face of multicast IPTV streams on the WAN side of the router. Stock Linksys WRT54G v5 degrades 50% with a single stream, falls to modem speeds with 2. Tomato + WRT54G v2 degrades only 2% with a single stream and 40% with 2. Hopefully the WGR614L hardware is fast enough to not be affected.
And, yes, I have multicast filtering engaged. Apparently the broadcom PHY is too primitive to filter multicast at the interface and relies on the CPU to examine packets in order to do this :-(.
Oh, any chance of porting Tomato 1.27?
Strange, I just compiled the package successfully, but don't find a .chk file created. Anyone have any suggestions on where to start looking for the problem?
I moved my question to the tomato discussion area for better exposure.
theres a mistake with the version numbers
It worked after I changed
export PATH=/opt/brcm/hndtools-mipsel-uclibc-3.2.3/bin:$PATH
to
export PATH=/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin:$PATH
notice 3.2.3 is incorrect, it should be 0.9.19 (or whatever version you have)
I figured it out, this package doesn't include the trx -> chk conversion package. You'll have to hack it with the other tutorial here.
But for anyone wanting to at least to the part of compiling the sources to a usable trx format, you'll need these packages:
gcc dev
bison + bison dev
flex + flex dev
zlib dev
patch
Hi,
Can anyone help? I keep getting the following compile error
mipsel-uclibc-gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DHAVE_MMAP -I../include -c -o tty.o tty.c
mipsel-uclibc-gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DHAVE_MMAP -I../include -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o multilink.o tdb.o tty.o
auth.o: In function `check_passwd':
/home/TOMATO_WGR614L/bcm5354/src/router/pppd/pppd/auth.c:972: undefined reference to `crypt'
auth.o: In function `plogin':
/home/TOMATO_WGR614L/bcm5354/src/router/pppd/pppd/auth.c:1208: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [pppd] Error 1
make[2]: Leaving directory `/home/TOMATO_WGR614L/bcm5354/src/router/pppd/pppd'
make[1]: *** [pppd] Error 2
make[1]: Leaving directory `/home/TOMATO_WGR614L/bcm5354/src/router'
make: *** [all] Error 2
Thank you in advance
wayne

RSS

