Error No. 2 when building firmware from source

Discussion in 'Phoenix Firmware' started by Mikes1182, May 1, 2008.

  1. Mikes1182

    Mikes1182 Addicted to LI Member

    Hi,

    I want to build the firmware from source, I used this tutorial : http://ag241.ickz.com/node/11

    but I alway get the Error NO. 2 and the message: make[1]: mipsel-uclibc-gcc: Command not found

    Can anyone help me ?
     
  2. Mikes1182

    Mikes1182 Addicted to LI Member

    es -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DTI_SLOW_PATH -c strnlen_user.S -o strnlen_user.o
    mips_fp_le-gcc -I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DTI_SLOW_PATH -c -o dump_tlb.o dump_tlb.c
    rm -f lib.a
    mips_fp_le-ar rcs lib.a csum_partial.o csum_partial_copy.o rtc-std.o rtc-no.o memcpy.o memset.o watch.o strlen_user.o strncpy_user.o strnlen_user.o dump_tlb.o
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/lib'
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/lib'
    sed -e 's/@@LOADADDR@@/0x94020000/' <arch/mips/ld.script.in >arch/mips/ld.scriptmips_fp_le-ld -G 0 -static -T arch/mips/ld.script arch/mips/kernel/head.o arch/mips/kernel/init_task.o init/main.o init/init_cybertan.o init/version.o \
    --start-group \
    arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o \
    drivers/ticfg/ticfg.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/atm/atm.o drivers/mtd/mtdlink.o \
    net/network.o \
    arch/mips/lib/lib.a /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/lib/lib.a arch/mips/mips-boards/ti_avalanche/ti_avalanche.o arch/mips/mips-boards/generic/mipsboards.o \
    --end-group \
    -o vmlinux
    mips_fp_le-nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
    NATIVEPATH:
    gcc -o srec2bin arch/mips/mips-boards/ti_avalanche/inflater/srec2bin.c
    arch/mips/mips-boards/ti_avalanche/inflater/srec2bin.c: In function ‘srecLine’:
    arch/mips/mips-boards/ti_avalanche/inflater/srec2bin.c:476: warning: incompatible implicit declaration of built-in function ‘strlen’
    arch/mips/mips-boards/ti_avalanche/inflater/srec2bin.c: In function ‘srec2bin’:
    arch/mips/mips-boards/ti_avalanche/inflater/srec2bin.c:611: warning: incompatible implicit declaration of built-in function ‘strlen’
    make ram_zimage -C arch/mips/mips-boards/ti_avalanche/inflater
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/ti_avalanche/inflater'
    mips_fp_le-gcc -I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -c -o Decoder.o Decoder.c
    In file included from Decoder.c:22:
    Decoder.h:46: warning: function declaration isn't a prototype
    Decoder.h:75: warning: function declaration isn't a prototype
    Decoder.h:185: warning: function declaration isn't a prototype
    Decoder.h:305: warning: function declaration isn't a prototype
    mips_fp_le-gcc -I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -c -o inflate.o inflate.c
    inflate.c: In function `tidecompress':
    inflate.c:1312: warning: implicit declaration of function `cm_hwDecodeLZMA'
    inflate.c:1288: warning: unused variable `inflate_slide_window'
    inflate.c: At top level:
    gzip.h:10: warning: `output_data' defined but not used
    gzip.h:11: warning: `output_ptr' defined but not used
    gzip.h:19: warning: `window' defined but not used
    gzip.h:20: warning: `inptr' defined but not used
    gzip.h:21: warning: `outcnt' defined but not used
    gzip.h:33: warning: `input_data' defined but not used
    mips_fp_le-objcopy -S -O binary /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/vmlinux zimage
    if [ -e ../../../../../../../../gtnsp/tools/bin/7zip ]; then \
    ../../../../../../../../gtnsp/tools/bin/7zip zimage zimage.7z; \ else \
    if [ -e ../../../../../tools/7zip ]; then \
    ../../../../../tools/7zip zimage zimage.7z; \
    else \
    7zip zimage zimage.7z; \
    fi; \
    fi
    ../../../../../tools/7zip: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
    make[2]: *** [zimage.7z] Fehler 127
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/ti_avalanche/inflater'
    make[1]: *** [ram_zimage] Fehler 2
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21'
    make: *** [linux] Fehler 2
    [ ! -d httpd ] || make -C httpd clean
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/httpd'
    rm -f *.o *~ httpd
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/httpd'
    [ ! -d rc ] || make -C rc clean
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/rc'
    rm -f *.o rc
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/rc'
    [ ! -d shared ] || make -C shared clean
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/shared'
    rm -f *.o *.so
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/shared'
    make -C www/wag354gm clean INSTALLDIR=/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/install/www
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/www/wag354gm'
    make[1]: Für das Ziel »clean« ist nichts zu tun.
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/www/wag354gm'
    [ ! -d lib ] || make -C lib clean
    find: /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/target: Datei oder Verzeichnis nicht gefunden
    make[1]: mipsel-uclibc-gcc: Kommando nicht gefunden
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/lib'
    rm -f libc.so.0 uClibc.map .symbols
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/lib'
    [ ! -d bridge ] || make -C bridge clean
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/bridge'
    make -C brctl clean
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/bridge/brctl'
    rcsclean *
    /bin/sh: rcsclean: command not found
    make[2]: *** [clean] Fehler 127
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/bridge/brctl'
    make[1]: *** [clean] Fehler 2
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/bridge'
    make: *** [bridge-clean] Fehler 2
    rm -rf /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/target
    rm -f /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/linux.trx /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/vmlinuz /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/target.cramfs
    [ ! -d nvram ] || make -C nvram
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/nvram'
    mipsel-uclibc-gcc -I. -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/include -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/shared -Wall -s -O2 -c -o nvram_linux.o nvram_linux.c
    make[1]: mipsel-uclibc-gcc: Kommando nicht gefunden
    make[1]: *** [nvram_linux.o] Fehler 127
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/nvram'
    make: *** [nvram] Fehler 2
    rm -rf /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux
    ln -sf /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21 /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux
    rm -rf /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux/include/asm
    ( cd /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux/include; ln -sf asm-mips asm; rm -rf cy_codepattern.h; ln -sf /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/include/cy_codepattern.h cy_codepattern.h)
    # Package kernel and filesystem
    # Pad self-booting Linux to a 64 KB boundary
    # Append filesystem to self-booting Linux
    make -C /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux modules
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21'
    make -C arch/mips/tools CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/tools'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/tools'
    make -C kernel CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/kernel'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/kernel'
    make -C drivers CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers'
    make -C atm modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/atm'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/atm'
    make -C block modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/block'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/block'
    make -C cdrom modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/cdrom'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/cdrom'
    make -C char modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/char'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/char'
    make -C hotplug modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/hotplug'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/hotplug'
    make -C media modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media'
    make -C radio modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media/radio'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media/radio'
    make -C video modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media/video'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media/video'
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/media'
    make -C misc modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/misc'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/misc'
    make -C mtd modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd'
    make -C chips modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd/chips'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd/chips'
    make -C maps modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd/maps'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd/maps'
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/mtd'
    make -C net modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/net'
    make -C mac modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/net/mac'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/net/mac'
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/net'
    make -C parport modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/parport'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/parport'
    make -C sound modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/sound'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers/sound'
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/drivers'
    make -C mm CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/mm'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/mm'
    make -C fs CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/fs'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/fs'
    make -C net CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net'
    make -C atm modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/atm'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/atm'
    make -C ipsec modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipsec'
    make -C alg modules
    make[4]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipsec/alg'
    make[4]: Für das Ziel »modules« ist nichts zu tun.
    make[4]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipsec/alg'
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipsec'
    make -C ipv4 modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipv4'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipv4'
    make -C ipv4/netfilter modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipv4/netfilter'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/ipv4/netfilter'
    make -C netlink modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/netlink'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/netlink'
    make -C sched modules
    make[3]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/sched'
    make[3]: Für das Ziel »modules« ist nichts zu tun.
    make[3]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net/sched'
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/net'
    make -C ipc CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/ipc'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/ipc'
    make -C lib CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/lib'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/lib'
    make -C arch/mips/math-emu CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/math-emu'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/math-emu'
    make -C arch/mips/mips-boards/ti_avalanche CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/ti_avalanche'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/ti_avalanche'
    make -C arch/mips/mips-boards/generic CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/generic'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mips-boards/generic'
    make -C arch/mips/kernel CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/kernel'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/kernel'
    make -C arch/mips/mm CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mm'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/mm'
    make -C arch/mips/lib CFLAGS="-I /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include/asm/gcc -D__KERNEL__ -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
    make[2]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/lib'
    make[2]: Für das Ziel »modules« ist nichts zu tun.
    make[2]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21/arch/mips/lib'
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux-2.4.17_mvl21'
    #install -D /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/linux/linux/drivers/net/mac/writemac.o /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/net/writemac.o
    [ ! -d httpd ] || make -C httpd install INSTALLDIR=/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/mipsel-uclibc/install/httpd
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/httpd'
    mipsel-uclibc-gcc -I. -Iti_wireless -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/shared -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/include -Wall -I/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/ -s -O2 -c -o cgi.o cgi.c
    make[1]: mipsel-uclibc-gcc: Kommando nicht gefunden
    make[1]: *** [cgi.o] Fehler 127
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/router/httpd'
    make: *** [httpd-install] Fehler 2
    make -C /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image rom
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image'
    rm -rf rom_code.bin
    ../router/mipsel-uclibc/merge ram_zimage.bin target.squshfs 0
    can not open the kernel file:ram_zimage.bin
    make[1]: *** [rom] Fehler 255
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image'
    make: *** [rom] Fehler 2
    make -C /home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image upgrade
    make[1]: Entering directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image'
    rm -rf code.bin
    ../router/mipsel-uclibc/merge ram_zimage.bin target.squshfs 1
    can not open the kernel file:ram_zimage.bin
    make[1]: *** [upgrade] Fehler 255
    make[1]: Leaving directory `/home/michael/Desktop/Downloads/AG241V2-EU-v2_01_01-00/image'
    make: *** [upgrade] Fehler 2
     
  3. mstombs

    mstombs Network Guru Member

    You need a correct toolchain (based on Montavista Linux 2.4.17 with Ti extensions) to compile the firmware, then a lot of fiddling with links-paths etc.

    To check your PC can compile a similar firmware I suggest you try a recent WAG200G GPL release, this includes a toolchain and batch files to install and run. But I couldn´t manage use this toolchain to successfully compile WAG54GV2 or AG241 firmwares.

    I am told the toolchain in an old Linksys distro

    ftp://ftp.linksys.com/opensourcecode/wag54gv2/1.00.19/WAG54GV2_V1.00.19.tgz

    [note other goodies such as bootloader source also left in this release]

    can be used for WAG54GV2 Pluto and AG241 Phoenix

    Note the AG241 pcb is very similar to WAG54GV2, just doesn´t have wireless.

    Edit: Just looked at the guide at that references a different toolchain. Your issue probably paths and links - possibly your version of "make" or bash...
     
  4. akash011

    akash011 Addicted to LI Member

    nice idea

    many many thanks to you for your great post. i also need this idea.
     
  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