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

E3000 Compiling Issue!!!

Discussion in 'Tomato Firmware' started by AMH, Sep 23, 2011.

  1. AMH

    AMH Networkin' Nut Member

    Hi everyone,

    I am trying to build and compile my tomato source code to use it in my new e3000 router. I exactly followed the steps in the tutorial http://tomatousb.org/tut:how-to-build-and-rebuild-tomato-for-total-noobs but i got the following error when I did this make ( make v1=9054 v2=beta e3000):

    make[6]: Entering directory `/home/amr/Desktop/tomato_git/tomato/release/src/router/sqlite'

    if /bin/bash ./libtool --tag=CC --mode=compile mipsel-uclibc-gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.2\" -DPACKAGE_STRING=\"sqlite\ 3.7.2\" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -I. -I. -DSQLITE_THREADSAFE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -DCONFIG_NVRAM_SIZE=60 -ffunction-sections -fdata-sections -MT sqlite3.lo -MD -MP -MF ".deps/sqlite3.Tpo" -c -o sqlite3.lo sqlite3.c; \

    then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f ".deps/sqlite3.Tpo"; exit 1; fi

    ./libtool: line 821: X--tag=CC: command not found

    ./libtool: line 854: libtool: ignoring unknown tag : command not found

    ./libtool: line 821: X--mode=compile: command not found

    ./libtool: line 988: *** Warning: inferring the mode of operation is deprecated.: command not found

    ./libtool: line 989: *** Future versions of Libtool will require --mode=MODE be specified.: command not found

    ./libtool: line 1132: Xmipsel-uclibc-gcc: command not found

    ./libtool: line 1132: X-DPACKAGE_NAME="sqlite": command not found

    ./libtool: line 1132: X-DPACKAGE_TARNAME="sqlite": command not found

    ./libtool: line 1132: X-DPACKAGE_VERSION="3.7.2": command not found

    ./libtool: line 1132: X-DPACKAGE_STRING="sqlite 3.7.2": command not found

    ./libtool: line 1132: X-DPACKAGE_BUGREPORT="http://www.sqlite.org": No such file or directory

    ./libtool: line 1132: X-DPACKAGE_URL="": command not found

    ./libtool: line 1132: X-DPACKAGE="sqlite": command not found

    ./libtool: line 1132: X-DVERSION="3.7.2": command not found

    ./libtool: line 1132: X-D_FILE_OFFSET_BITS=64: command not found

    ./libtool: line 1132: X-DSTDC_HEADERS=1: command not found

    ./libtool: line 1132: X-DHAVE_SYS_TYPES_H=1: command not found

    ./libtool: line 1132: X-DHAVE_SYS_STAT_H=1: command not found

    ./libtool: line 1132: X-DHAVE_STDLIB_H=1: command not found

    ./libtool: line 1132: X-DHAVE_STRING_H=1: command not found

    ./libtool: line 1132: X-DHAVE_MEMORY_H=1: command not found

    ./libtool: line 1132: X-DHAVE_STRINGS_H=1: command not found

    ./libtool: line 1132: X-DHAVE_INTTYPES_H=1: command not found

    ./libtool: line 1132: X-DHAVE_STDINT_H=1: command not found

    ./libtool: line 1132: X-DHAVE_UNISTD_H=1: command not found

    ./libtool: line 1132: X-DHAVE_DLFCN_H=1: command not found

    ./libtool: line 1132: X-DLT_OBJDIR=".libs/": No such file or directory

    ./libtool: line 1132: X-DHAVE_FDATASYNC=1: command not found

    ./libtool: line 1132: X-DHAVE_USLEEP=1: command not found

    ./libtool: line 1132: X-DHAVE_LOCALTIME_R=1: command not found

    ./libtool: line 1132: X-DHAVE_GMTIME_R=1: command not found

    ./libtool: line 1132: X-I.: command not found

    ./libtool: line 1132: X-I.: command not found

    ./libtool: line 1132: X-DSQLITE_THREADSAFE=1: command not found

    ./libtool: line 1132: X-DSQLITE_OMIT_LOAD_EXTENSION=1: command not found

    ./libtool: line 1132: X-DSQLITE_ENABLE_FTS3: command not found

    ./libtool: line 1132: X-DSQLITE_ENABLE_RTREE: command not found

    ./libtool: line 1132: X-Os: command not found

    ./libtool: line 1132: X-DLINUX26: command not found

    ./libtool: line 1132: X-DCONFIG_BCMWL5: command not found

    ./libtool: line 1132: X-pipe: command not found

    ./libtool: line 1132: X-DBCMWPA2: command not found

    ./libtool: line 1132: X-funit-at-a-time: command not found

    ./libtool: line 1132: X-Wno-pointer-sign: command not found

    ./libtool: line 1132: X-mtune=mips32: command not found

    ./libtool: line 1132: X-mips32: command not found

    ./libtool: line 1132: X-DCONFIG_NVRAM_SIZE=60: command not found

    ./libtool: line 1132: X-ffunction-sections: command not found

    ./libtool: line 1132: X-fdata-sections: command not found

    ./libtool: line 1132: X-MT: command not found

    ./libtool: line 1132: Xsqlite3.lo: command not found

    ./libtool: line 1132: X-MD: command not found

    ./libtool: line 1132: X-MP: command not found

    ./libtool: line 1132: X-MF: command not found

    ./libtool: line 1132: X.deps/sqlite3.Tpo: No such file or directory

    ./libtool: line 1132: X-c: command not found

    ./libtool: line 1184: Xsqlite3.lo: command not found

    ./libtool: line 1189: libtool: compile: cannot determine name of library object from `': command not found

    make[6]: *** [sqlite3.lo] Error 1

    make[6]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src/router/sqlite'

    make[5]: *** [sqlite] Error 2

    make[5]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src/router'

    make[4]: *** [all] Error 2

    make[4]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src-rt'

    make[3]: *** [bin] Error 2

    make[3]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src-rt'

    make[2]: *** [m] Error 2

    make[2]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src-rt'

    make[1]: *** [r2m] Error 2

    make[1]: Leaving directory `/home/amr/Desktop/tomato_git/tomato/release/src-rt'

    make: *** [e3000] Error 2

    I really do not know what is the exact problem, I searched for a solution for it in the forum, and there was a suggestion to do the following make:
    make bin OPENVPN=y B=V BUILD_DESC="$(VPN)" USB="" JFFSv1=y NO_CIFS=y NO_ZEBRA=y SLIM=y KERN_SIZE_OPT=y NO_SAMBA=y NO_XXTP=y MIPS32=r2

    It worked very well, but I do not know if the resulted image file (trx) is suitable to be used in e3000 router!!! here is the exact result for this make:
    # Create generic TRX image

    Creating TRX: image/tomato-K26-1.28.--defMIPSR2-.trx

    TRX Image:

    Total Size .... : 3567616 (3484.0 KB) (3.4 MB)

    Images ...... : 3566476 (0x00366b8c)

    Padding ..... : 1112

    Avail. for jffs :

    4MB, 128K CFE : 6 EBs + 36864

    4MB, 256K CFE : 4 EBs + 36864

    8MB, 256K CFE : 68 EBs + 36864

    Note : Netgear routers have 6 EBs less available!

    CRC-32 ........ : 8EF19C12

    128K Blocks ... : 28 (0x0000001C)

    64K Blocks ... : 55 (0x00000037)

    Offsets:

    0: 0x0000001C lzma-loader/loader.gz

    1: 0x00000A8C /home/amr/Desktop/tomato_git/tomato/release/src-rt/linux/linux-2.6/arch/mips/br

    2: 0x000C9800 router/mipsel-uclibc/target.image

    -----------------

    1.28.9052 MIPSR2 K26 ready

    -----------------

    So my questions are:
    1) what is the exact problem in (make v1=9054 v2=beta e3000) and how could I solve it.
    2) can I use the resulted trx file in the 2nd make in my e3000 router.

    Thank you in advance
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    Go to the src directory and look at the makefile. You'll see the commands listed to do MIPSR2 builds. Something like make v1=9000 v2=Tomato r2e or v1=9000 v2=Tomato e3000 for example.
     
  3. AMH

    AMH Networkin' Nut Member

    Ok, I looked at the makefile, but actually when I did (make v1=9052 v2=beta23 e3000) I got the above error, I really do not know what is the problem!!!
     
  4. kilgore_trout

    kilgore_trout Networkin' Nut Member

    I was having the exact same issue as you were. I was able to get passed this stage of the compilation by not copying the git directory to a working directory and by issusing the commands "git clean -fdxq && git reset --hard" and then checking the git repo out again.
    I am compiling for the Asus RT-N16 build 9054, beta. My make line was "make V1=9054 V2=beta r2m".
     
  5. shibby20

    shibby20 Network Guru Member

    make v1=9054 v2=beta n60m

    This will compile Ext builds for linksys Exxxx
     
  6. AMH

    AMH Networkin' Nut Member

    Thank you so much, I tried :
    make v1=9054 v2=beta n60m
    and everything went very well :D
     
  7. sina loghavi

    sina loghavi Networkin' Nut Member

    Hello, when I try make v1=9054 v2=beta n60m i get the following:

    sina@sina-linux:~/tomato/release/src-rt$ make v1=9054 v2=beta n60m
    make: *** No rule to make target `n60m'. Stop.
    sina@sina-linux:~/tomato/release/src-rt$

    Any thoughts why? Do I have to download anything?

    Thank You
     
  8. AMH

    AMH Networkin' Nut Member

     
  9. AMH

    AMH Networkin' Nut Member

    ok, I recommend you to follow the exact steps in the following tutorial:
    http://tomatousb.org/tut:how-to-build-and-rebuild-tomato-for-total-noobs
    when you make this tutorial, make it using How to compile latest tomato snapshots from git.
    Do not use the official git releases to download the code, because I got the exact errors mentioned above when I used it (I do not know why the the official git release does not work properly). But when I used the latest snapshot, and make v1=9054 v2=beta n60m command everything went well, and I uploaded the resulted binary file to my E3000 router and I am currently using it to connect to the internet.
    Best of luck :D
     
  10. sina loghavi

    sina loghavi Networkin' Nut Member

    AMH,

    Thank You very much that resolved my issue.

    Sina Loghavi
     

Share This Page