Results 1 to 7 of 7

Thread: problem compiling a firmware

  1. #1

    Red face problem compiling a firmware

    Hello,

    When I try to build firm 1.9.2.7-5a, it end-up with the following error:

    Code:
    make[2]: Entering directory `/opt/broadcom/src/router/ov51x'
    mipsel-linux-gcc -c -I/root/broadcom/src/linux/linux/include/asm/gcc -D__KERNEL__ -I/root/broadcom/src/linux/linux/include -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -m4710a0kern -pipe -I/root/broadcom/src/linux/linux/../../include  -I. -DMODULE -mlong-calls -fno-common -D__KERNEL__ -DMODULE -DOUTSIDE_KERNEL -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -I/lib/modules/`uname-r`/build/include -DEXPORT_SYMTAB ov51x.c
    In file included from ov51x.c:58:
    /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include/linux/module.h:21:34: linux/modversions.h: No such file or directory
    In file included from /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include/linux/mm.h:26,
                     from /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include/linux/vmalloc.h:5,
                     from ov51x.c:61:
    /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include/asm/pgtable.h:475:33: asm-generic/pgtable.h: No such file or directory
    ov51x.c:2068: warning: `ov519_init_compression' defined but not used
    make[2]: *** [ov51x.o] Error 1
    make[2]: Leaving directory `/opt/broadcom/src/router/ov51x'
    make[1]: *** [ov51x-install] Error 2
    make[1]: Leaving directory `/opt/broadcom/src/router'
    make: *** [image-WL500gx] Error 2
    What I did is:
    - downloaded the GPL_1927.zip from asus
    - downloaded the uClibc toolchain full and firmware patch 1.9.2.7-5a from Oleg's page
    - tar -C /opt zxvf GPL_1927.zip
    - ln -s /opt/broadcom/opt/bcrm /opt/bcrm
    - tar -C / xjvf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
    - rm -f /opt/brcm/hndtools-mipsel-uclibc (looks useless as it's part of make uClibc)
    - ln -s /opt/brcm/hndtools-mipsel-uclibc-3.2.3-full /opt/brcm/hndtools-mipsel-uclibc (looks useless as it's part of make uClibc)
    - tar -C /opt/broadcom/src/ xjvf wl500g-1.9.2.7-5a.tar.bz2
    - cd /opt/broadcom/src/wl500g-1.9.2.7-5a
    - make uClibc
    - make kernel
    - cd ../router
    - make image-WL500gx

    everything under a coLinux with knoppix-debian rootfs.

    Any help will be highly appreciated,
    David.

  2. #2
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote Originally Posted by David
    - make uClibc
    - make kernel
    - cd ../router
    - make image-WL500gx
    Can you try this and see if it works better ? :
    make uClibc
    make kernel
    make
    cd ../gateway
    make
    make images-WL500gx

    Quote Originally Posted by David
    - tar -C / xjvf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
    - rm -f /opt/brcm/hndtools-mipsel-uclibc (looks useless as it's part of make uClibc)
    - ln -s /opt/brcm/hndtools-mipsel-uclibc-3.2.3-full /opt/brcm/hndtools-mipsel-uclibc (looks useless as it's part of make uClibc)
    These 3 lines are useless since uClibc toolchain is build with make uClibc

    JF
    Last edited by Jean-Fabrice; 20-05-2005 at 14:20.

  3. #3
    Hi Jean-Fabrice,

    unfortunately, I can't find any gateway dir as specified in Oleg's page (probably the old dirname in 1.8 based firmware source)

    Code:
    root@coLinux:/opt/broadcom/src# ls
    Makefile  et  et-1.9.2.7-5a.orig  il  include  linux  lzma  pmon  robo  router  rts  ses  shared  switch  tools  uClibc  usbdev  wl  wl500g-1.9.2.7-5a
    root@coLinux:/opt/broadcom/src# find . -name gateway
    root@coLinux:/opt/broadcom/src#
    I also tried to ln -s router gateway and to make from gateway link, but I receive the same error.

    Thanks for your VERY quick reaction ;-)
    David.

  4. #4
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    cd /opt/broadcom/src/wl500g-1.9.2.7-5a
    make uClibc
    make kernel
    make <= this will create the gateway subdir
    cd ../gateway
    make
    make images-WL500gx

    JF

  5. #5
    No luck today...

    while running the make with no arg on /opt/broadcom/src/wl500g-1.9.2.7-5a:

    Code:
    [ -f /opt/broadcom/src/gateway/Makefiles5.mk ] || cp /opt/broadcom/src/router/Makefiles5.* /opt/broadcom/src/gateway && patch -d /opt/broadcom/src/gateway -p1 < Makefiles5.diff
    /bin/sh: Makefiles5.diff: No such file or directory
    make: *** [custom] Error 1
    root@coLinux:/opt/broadcom/src/wl500g-1.9.2.7-5a#

  6. #6
    Ok... I found this one myself

    See: http://wl500g.info/showthread.php?t=...akefiles5.diff

  7. #7
    Problem is now solved so here is the exact command I did:

    # tar -C /opt -zxvf /win/wl500gx/GPL_1927.zip;
    # tar -C / -xjvf /win/wl500gx/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2;
    # tar -C /opt/broadcom/src/ -xjvf /win/wl500gx/wl500g-1.9.2.7-5a.tar.bz2;
    # ln -s /opt/broadcom/opt/brcm /opt
    # cd /opt/broadcom/src/wl500g-1.9.2.7-5a
    # make uClibc
    # make kernel
    # make
    # cd ../gateway
    # make
    # make image-WL500gx


    Thanks Jean-Fabrice for your support.

    For those who know it, I will now try to work on building a firmware that does look'n feel like m0n0wall.

Similar Threads

  1. Compiling 1.9.2.7-6b firmware
    By unaiur in forum WL-500g Q&A
    Replies: 9
    Last Post: 30-09-2005, 10:24
  2. Compiling MusicPD
    By muffl0n in forum WL-500g Q&A
    Replies: 0
    Last Post: 20-07-2005, 21:03
  3. Compiling ggrab...
    By gwl in forum WL-500g Custom Development
    Replies: 11
    Last Post: 19-03-2005, 22:45
  4. Error while compiling ppp in 1.9.2.7-3
    By Ifaistos in forum WL-500g Custom Development
    Replies: 2
    Last Post: 12-01-2005, 18:03
  5. Compiling on/for the WL-500g
    By dsf260 in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-12-2004, 11:54

Posting Permissions

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