Results 1 to 15 of 18

Thread: Problems compiling custom based firmware (using Kfurge howto)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Problems compiling custom based firmware (using Kfurge howto)

    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

  2. #2

    Unhappy moving along...

    Now I have edited the Makefile in /opt/WL700g/nasoc/src/apps

    and changed the following as to set the correct path to mipsel-linux

    ifeq ($(PLATFORM),mipsel)
    export CROSS_COMPILE := mipsel-linux-
    export CONFIGURE := ./configure mipsel-linux --build=$(BUILD)
    #export TOOLCHAIN := $(shell cd $(dir $(shell which $(CROSS_COMPILE)gcc))hndtools-mipsel-linux-3.2.3/mipsel-linux && pwd -P)
    export TOOLCHAIN := $(shell cd $(dir $(shell which $(CROSS_COMPILE)gcc))/opt/brcm/hndtools-mipsel-linux-3.2.3/mipsel-linux && pwd -P)
    endif

    by doing this I dont seem to have any more errors concerning this:
    "make all
    /bin/sh: line 0: cd: /opt/brcm//../mipsel-linux: No such file or directory"

    or

    "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"

    But now I rather end up with this error:
    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
    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
    make[2]: mipsel-linux-gcc: Command not found
    make[2]: *** [nvram_linux.o] Error 127
    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

    Anyone ?

  3. #3
    You shouldn't have to make any changes to the makefile in order to get the basic tools to work. What is /bin/sh? It should be bash. Also, some of your final attempts seem to have a bad path, i.e. make can't find the mipsel cross compiler.

    - K.C.

  4. #4
    /bin/sh points to /bin/bash so it can't be any problem their.

    what paths should i export if i have setup everything in /opt ( /opt/WL700g and /opt/brcm) ?

    Currently I have setup things as this:
    export CROSS_COMPILE=mipsel-linux-
    export CC=mipsel-linux-gcc
    export CC_FOR_BUILD=mipsel-linux-gcc
    export ARCH=mipsel

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


    Could there be some problems right here?

    As I presume you have a working configuration ?!
    As I understood, you are running your environment in a vmware - would it be possible for you to upload that image to my ftp?

    Whatelse could I have made wrong - I am totally stuck at the moment.....

    - Hytekk

  5. #5
    You should only have to export the path pointing to the tool-chain. I'd recommend removing all other exports. They're probably confusing the makefile since it builds both native and cross-compiled binaries during the build process.

    I'll post my environment once I get my vmware "machine" loaded onto my new Linux laptop.

    - K.C.

  6. #6
    Alright, I tried to set only the path to the toolchain but got the same error.

    I am really looking forward to get my hands on/viewing your environment

    In the meantime I'll try and reset everything in my own environment, so if I have made some error when I did setup everything this would be corrected.....

    When could I expect you to post your environment?

    Thanks in advance

    - Hytekk

Similar Threads

  1. How-to : install kfurge 1.0.4.6_kc_02a custom firmware
    By jeromv in forum WL-700g Tutorials
    Replies: 5
    Last Post: 16-02-2008, 22:49
  2. New 1.0.4.6 based custom firmware
    By kfurge in forum WL-700g Firmware Discussion
    Replies: 272
    Last Post: 20-11-2007, 16:15
  3. Quickguide installing custom firmware?
    By Grandmaster in forum WL-700g Firmware Discussion
    Replies: 28
    Last Post: 05-03-2007, 14:46
  4. custom firmware based on 1.9.5.0 beta?
    By Teddy in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-05-2006, 20:08
  5. Custom Firmware v1.1.2.7
    By JOCKYW2001 in forum WL-HDD Firmware Releases
    Replies: 59
    Last Post: 11-12-2004, 12:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •