Hi,
I am trying to compile a custom firmware using Kfurge's howto (http://home.comcast.net/~kfurge/wl700ge.html) and DaNawq's howto (http://www.wl500g.info/showthread.php?t=6559).
I have downloaded the monster sourcefile from ASUS (1.0.4.6) as well as the toolchain.
I have followed DaNawq's howto as to setup the environment on my freshsly installed Ubuntu.
Trying to run 'make rebuild' gives me this error (I have copied from the first line where I believe it goes wrong):
make[3]: Leaving directory `/opt/WL700g/nasoc/src/linux/linux/arch/mips/lib'
make[2]: Leaving directory `/opt/WL700g/nasoc/src/linux/linux'
make[1]: Leaving directory `/opt/WL700g/nasoc/src/linux/linux'
make all
/bin/sh: line 0: cd: /opt/brcm//../mipsel-linux: No such file or directory
make[1]: Entering directory `/opt/WL700g/nasoc/src/apps'
[ ! -f libcrypto/Makefile ] || make -C libcrypto
[ ! -f nvram/Makefile ] || make -C nvram
make[2]: Entering directory `/opt/WL700g/nasoc/src/apps/nvram'
mipsel-linux-gcc -I. -I/opt/WL700g/nasoc/src/include -Wall -s -O2 -c -o nvram_linux.o nvram_linux.c
nvram_linux.c: In function `nvram_xfr':
nvram_linux.c:262: warning: cast to pointer from integer of different size
nvram_linux.c:262: warning: cast to pointer from integer of different size
nvram_linux.c: In function `nvram_ascii_ucs4':
nvram_linux.c:301: warning: suggest parentheses around assignment used as truth value
mipsel-linux-ld -shared -o libnvram.so nvram_linux.o
mipsel-linux-gcc -I. -I/opt/WL700g/nasoc/src/include -Wall -s -O2 -c -o main.o main.c
main.c: In function `main':
main.c:187: warning: implicit declaration of function `nvram_xfr'
main.c:187: warning: assignment makes pointer from integer without a cast
/opt/brcm/hndtools-mipsel-linux-3.2.3/mipsel-linux/sys-include/bits/string2.h: At top level:
main.c:34: warning: `NLS_NVRAM_U2C' defined but not used
main.c:35: warning: `NLS_NVRAM_C2U' defined but not used
mipsel-linux-gcc -I. -I/opt/WL700g/nasoc/src/include -Wall -s -O2 -o nvram main.o -L. -lnvram
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[2]: *** [nvram] Error 1
make[2]: Leaving directory `/opt/WL700g/nasoc/src/apps/nvram'
make[1]: *** [nvram] Error 2
make[1]: Leaving directory `/opt/WL700g/nasoc/src/apps'
make: *** [rebuild] Error 2
As just to test if there are some more errors relateted to ld (binutils / bin86 ?) i moved nvram to nvram_, and run the 'make rebuild'-command again. This time I ended up with a similar error:
make all
/bin/sh: line 0: cd: /opt/brcm//../mipsel-linux: No such file or directory
make[1]: Entering directory `/opt/WL700g/nasoc/src/apps'
[ ! -f libcrypto/Makefile ] || make -C libcrypto
[ ! -f nvram/Makefile ] || make -C nvram
[ ! -f translation/Makefile ] || make -C translation
[ ! -f netvarplugin/Makefile ] || make -C netvarplugin
[ ! -f shared/Makefile ] || make -C shared
[ ! -f webhooks/Makefile ] || make -C webhooks
[ ! -f httpd/Makefile ] || make -C httpd
[ ! -f samplenetregistration/Makefile ] || make -C samplenetregistration
make[2]: Entering directory `/opt/WL700g/nasoc/src/apps/samplenetregistration'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/WL700g/nasoc/src/apps/samplenetregistration'
make -C iptables BINDIR=/usr/sbin LIBDIR=/usr/lib KERNEL_DIR=/opt/WL700g/nasoc/src/linux/linux
make[2]: Entering directory `/opt/WL700g/nasoc/src/apps/iptables'
Making dependencies: please wait...
make[2]: Leaving directory `/opt/WL700g/nasoc/src/apps/iptables'
........
mipsel-linux-gcc -O2 -Wall -Wunused -I/opt/WL700g/nasoc/src/linux/linux/include -Iinclude/ -DIPTABLES_VERSION=\"1.2.7a\" -DIPT_LIB_DIR=\"/usr/lib/iptables\" -rdynamic -o iptables iptables-standalone.c iptables.o libiptc/libiptc.a -ldl
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[2]: *** [iptables] Error 1
rm libiptc/libip4tc.o
make[2]: Leaving directory `/opt/WL700g/nasoc/src/apps/iptables'
make[1]: *** [iptables] Error 2
make[1]: Leaving directory `/opt/WL700g/nasoc/src/apps'
make: *** [rebuild] Error 2
As far as I can see this line is the problem:
'/bin/sh: line 0: cd: /opt/brcm//../mipsel-linux: No such file or directory'
Could anyone help me out here ?
What am I doing wrong here?
If someone needs more information please dont hesitate to contact me
Is there perhaps anyone who could upload their vmware-installed image or perhaps working files and "settings" to my ftp, then please contact me.
Thanks in advance,
HyTeKk