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

Problem in compiling Victek RAF mod

Discussion in 'Tomato Firmware' started by simper, Jun 25, 2011.

  1. simper

    simper Networkin' Nut Member

    I was trying to add HFS support to Victek RAF, so I downloaded the source code package [tomatoraf_nocat_14062011.tar.bz2] from Victek's repository.
    My environment is Linux Mint 11 running in Parallel Destop 6 on MAC OSX.
    The brcm tool folder has been copied to /opt, and I modified the make_all.sh in the tomatoraf root directory:

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

    cd release/src
    make n60nc

    Then execute ./make.sh 2>error.txt.
    It seems there is something wrong in compiling mtd.c:

    mtd.c:115: error: expected declaration specifiers or '...' before 'mtd_info_t'
    mtd.c: In function 'mtd_open':
    mtd.c:125: error: 'mi' undeclared (first use in this function)
    mtd.c:125: error: 'MEMGETINFO' undeclared (first use in this function)
    mtd.c: In function '_unlock_erase':
    mtd.c:138: error: 'mtd_info_t' undeclared (first use in this function)
    mtd.c:138: error: expected ';' before 'mi'
    mtd.c:139: error: 'erase_info_t' undeclared (first use in this function)
    mtd.c:139: error: expected ';' before 'ei'
    mtd.c:147: error: 'mi' undeclared (first use in this function)
    mtd.c:147: error: too many arguments to function 'mtd_open'
    mtd.c:150: error: 'ei' undeclared (first use in this function)
    mtd.c:155: error: 'MEMUNLOCK' undeclared (first use in this function)
    mtd.c:161: error: 'MEMERASE' undeclared (first use in this function)
    mtd.c: In function 'mtd_write_main':
    mtd.c:236: error: 'mtd_info_t' undeclared (first use in this function)
    mtd.c:236: error: expected ';' before 'mi'
    mtd.c:237: error: 'erase_info_t' undeclared (first use in this function)
    mtd.c:237: error: expected ';' before 'ei'
    mtd.c:412: error: 'mi' undeclared (first use in this function)
    mtd.c:412: error: too many arguments to function 'mtd_open'
    mtd.c:432: error: 'ei' undeclared (first use in this function)
    mtd.c:501: error: 'MEMUNLOCK' undeclared (first use in this function)
    mtd.c:502: error: 'MEMERASE' undeclared (first use in this function)
    make[6]: *** [mtd.o] Error 1
    make[5]: *** [rc] Error 2
    make[4]: *** [all] Error 2
    make[3]: *** [bin] Error 2
    make[2]: *** [nc] Error 2
    make[1]: *** [r2nc] Error 2
    make: *** [n60nc] Error 2

    I have no idea what is wrong, could you please give some hints?
    The standard output and error output are stored in two files and attached for your analysis.
    http://notepad.cc/raf_tee_output
    http://notepad.cc/raf_error_output

    Thanks in advance!
     

Share This Page