1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

tomato firmware compilation error.

Discussion in 'Tomato Firmware' started by s13884, Sep 18, 2010.

  1. s13884

    s13884 Networkin' Nut Member

    Hello,

    Can anybody help to resolve the following error while building the tomato firmware 1.28. I have tried changing the makefile settings but did not work. So anybody can tell me where exactly the problem is?

    nomad@nomad:~/Downloads/tomato_WRT54G/tomato/release/src$ make
    make libc
    make[1]: Entering directory `/home/nomad/Downloads/tomato_WRT54G/tomato/release/src'
    make[2]: Entering directory `/home/nomad/Downloads/tomato_WRT54G/tomato/tools-src/uClibc'
    make[2]: *** No rule to make target `clean'. Stop.
    make[2]: Leaving directory `/home/nomad/Downloads/tomato_WRT54G/tomato/tools-src/uClibc'
    make[1]: *** [cleanlibc] Error 2
    make[1]: Leaving directory `/home/nomad/Downloads/tomato_WRT54G/tomato/release/src'
    make: *** [all] Error 2

    I have mipsel-linux- in /opt/WRT54G/hndtools-mipsel-linux-3.2.3/bin directory.
    I did export $PATH=$PATH:/opt/WRT54G/hndtools-mipsel-linux-3.2.3/bin
     
  2. s13884

    s13884 Networkin' Nut Member

    Actually, there is no Makefile in tools-src/uClibc? If I change this path tools-src/uClibc/libc/inet/ to find the Makefile than it throws an following errors.

    nomad@nomad:~/Downloads/tomato_WRT54G/tomato/release/src$ make
    make libc
    make[1]: Entering directory `/home/nomad/Downloads/tomato_WRT54G/tomato/release/src'
    make[2]: Entering directory `/home/nomad/Downloads/tomato_WRT54G/tomato/tools-src/uClibc/libc/inet'
    make[2]: *** No rule to make target `addr.c', needed by `inet_aton.o'. Stop.
    make[2]: Leaving directory `/home/nomad/Downloads/tomato_WRT54G/tomato/tools-src/uClibc/libc/inet'
    make[1]: *** [libc] Error 2
    make[1]: Leaving directory `/home/nomad/Downloads/tomato_WRT54G/tomato/release/src'
    make: *** [all] Error 2

    Some files are missing in source tree or what? Any one could please let me know link where I can found some information about how to build the tomato firmware? I have tried to find the same but couldn't find anything good enough.

    Thanks
     
  3. mstombs

    mstombs Network Guru Member

    Its a while since I compiled stock Tomato, but the first message can be caused by a different default shell on your Linux machine than the one used by Jon - the Makefile is dynamically created using shell commands. If you are using "bash" switch to "dash" or vice-versa - different versions are needed by different versions of Ubuntu I recall. There are also other patches needed for recent OSes - these have been fixed in the Tomato USB mod git system.
     

Share This Page