compile firmware on cygwin

Discussion in 'Sveasoft Firmware' started by letoux, May 4, 2005.

  1. letoux

    letoux Guest

    I try to compile sveasoft firmware on cygwin (linux compatibility layer on windows).

    I try to first compile the lastest official linksys firmware release, but it give me this error :
    Adiant@letoux /WRT54G/release/src
    $ make
    make -C router all
    make[1]: Entering directory `/WRT54G/release/src/router'
    rm -rf /WRT54G/release/src/router/mipsel-uclibc/target
    rm -f /WRT54G/release/src/router/mipsel-uclibc/linux.trx /WRT54G/release/src/router/mipsel-uclibc/vmlinuz /WRT54G/release/src/router/mipsel-uclibc/target.cramfs
    [ ! -d nvram ] || make -C nvram
    make[2]: Entering directory `/WRT54G/release/src/router/nvram'
    mipsel-uclibc-gcc -I. -I/WRT54G/release/src/include -Wall -I/WRT54G/release/src/router/shared -s -O2   -c -o nvram_linux.o nvram_linux.c
    /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc: 1: Syntax error: "(" unexpected
    make[2]: *** [nvram_linux.o] Error 2
    make[2]: Leaving directory `/WRT54G/release/src/router/nvram'
    make[1]: *** [nvram] Error 2
    make[1]: Leaving directory `/WRT54G/release/src/router'
    make: *** [all] Error 2
    This is what I've done :
    - download source from linksys (firmware v3.X)
    - untar
    - linked the brcm/ directory to /opt (not copied)
    - add /opt/brcm/hndtools-mipsel-linux/bin to my path
    - add /opt/brcm/hndtools-mipsel-uclibc/bin to my path
    - add the tools in the release/tools directory in my path
    - cd release/src/linux/linux
    - typed 'make dep'
    - cd ../.. (release/src)
    - typed 'make'

    this worked fine until the final make.

    When i run /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc -v
    it said :
    /opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc: 1: Syntax error: "(" unexpected
    Can we compile this firmware on windows via cygwin ?
    I miss something ?

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice