Results 1 to 10 of 10

Thread: Compiling 1.9.2.7-6b firmware

  1. #1
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31

    Compiling 1.9.2.7-6b firmware

    I'm unable to compile the lastest & greatest Oleg's firmware.

    I follow the steps at the Wl500g Wiki: get GPL_1927.zip & wl500g-1.9.2.7-6b.tar.bz2, copy & paste the givin script and run it. It seems easy, but I'm a bit... dumb, so everything is possible: I just get this error when the script is executing "make uClibc":

    Code:
    gcc -O2 -Wall -D__LDSO_LDD_SUPPORT -DUCLIBC_TARGET_PREFIX=\"/\" \
    -DUCLIBC_DEVEL_PREFIX=\""/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full"\" \
            -DUCLIBC_BUILD_DIR=\"/home/unai/wl500g/broadcom/src/uClibc\" \
            -DUCLIBC_LDSO=\"ld-uClibc.so.0\" -I . \
            ldd.c -o ldd 
    ldd.c:96:2: warning: #warning "You really should add a MATCH_MACHINE() macro for your architecture"
    ldd.c: In function `find_dependancies':
    ldd.c:528: error: `ELFCLASSM' undeclared (first use in this function)
    ldd.c:528: error: (Each undeclared identifier is reported only once
    ldd.c:528: error: for each function it appears in.)
    ldd.c:529: warning: implicit declaration of function `MATCH_MACHINE'
    I'm using an Ubuntu 5.04 box. Can anybody help me?

    Also, there is a new GPL tarball at ASUS (1.9.5.0). Is there any brave man out there?

  2. #2
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    I found the answer myself: the firmware can't be compiled on an AMD64 system, a 32 bit operating system should be used.

  3. #3
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    30
    How is the size of your generated firmware file? I am asking because I have never managed to get a file the same size as Oleg's "official" firmware. For the same reason I have not tried to load it on my wl500gx, as I sssume it won't work.

  4. #4
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    Quote Originally Posted by pfugl
    How is the size of your generated firmware file? I am asking because I have never managed to get a file the same size as Oleg's "official" firmware. For the same reason I have not tried to load it on my wl500gx, as I sssume it won't work.
    3485696 bytes. Nonetheless, there must be small size differences since the firmware embeeds info about the host where was built and timestamps.

  5. #5
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    30
    I managed to get the compilation to work using the Ubuntu dist + some additional packages, and I get the same file size as you do. I am still wondering why Oleg's is 3739648 bytes - about 250 KB larger than ours. Can you confirm that your wl500gx is working ok with your compiled firmware?
    /Peter

  6. #6
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    I don't miss any function.
    Maybe Oleg is a KGB spy (or whatever is called nowadays)

    Quote Originally Posted by pfugl
    I managed to get the compilation to work using the Ubuntu dist + some additional packages, and I get the same file size as you do. I am still wondering why Oleg's is 3739648 bytes - about 250 KB larger than ours. Can you confirm that your wl500gx is working ok with your compiled firmware?
    /Peter

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by unaiur
    I don't miss any function.
    Maybe Oleg is a KGB spy (or whatever is called nowadays)
    Yes. There are number of backdoors and special sniffing tools. The difference is due to /usr/sbin/tcpdump, which is not included in the source tarball.

  8. #8
    Join Date
    Apr 2005
    Location
    Amsterdam
    Posts
    14
    When I compile from sources I end up with this file:

    WL500gx-1.9.2.7-6b.trx, 3485696 bytes. But it does not upload to my router for unknown reasons. my wl500g just states "Upgrade failed".

    I compiled it on a linux 2.6 box with a celeron processor.

    Any ideas?
    IIIVX = ( X - V ) - III = II = 2

  9. #9
    Join Date
    Apr 2005
    Location
    Amsterdam
    Posts
    14
    Quote Originally Posted by iiivx
    When I compile from sources I end up with this file:

    WL500gx-1.9.2.7-6b.trx, 3485696 bytes. But it does not upload to my router for unknown reasons. my wl500g just states "Upgrade failed".

    I compiled it on a linux 2.6 box with a celeron processor.

    Any ideas?
    Hmmm, now I suddenly notice the "WL500gx" part of the filename. okay, let me try and compile the right sources!

    // Edit

    Okay, I did use the right sources: wl500g-1.9.2.7-6b.tar.bz2

    What's happening? I compile wl500g sources and end up with wl500gx firmware?
    IIIVX = ( X - V ) - III = II = 2

  10. #10
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    I've also compared OLEG 6b and my source build:
    Code:
    $ find / -type f -xdev -exec ./compare.sh {} \;
    Missing /usr/sbin/tcpdump
    Missing /usr/codepages/unicode_map.ISO8859-7
    Missing /usr/codepages/unicode_map.ISO8859-5
    Missing /usr/codepages/unicode_map.KOI8-R
    Missing /usr/codepages/unicode_map.ISO8859-2
    Missing /usr/codepages/unicode_map.ISO8859-1
    I've assumed that this was manualy copied into install tree before building as there is no patches/source for tcpdump and samba codepages!

    Mine images build with the following sizes:
    Code:
    -rw-r--r--   1 leon dialout  701022 2005-09-29 15:18 vmlinuz
    -rw-r--r--   1 leon dialout 3207168 2005-09-29 15:02 WL300g-1.9.2.7-6b.trx
    -rw-r--r--   1 leon dialout 3489792 2005-09-29 14:59 WL500b-1.9.2.7-6b.trx
    -rw-r--r--   1 leon dialout 3383296 2005-09-29 15:00 WL500bv2-1.9.2.7-6b.trx
    -rw-r--r--   1 leon dialout 3489792 2005-09-29 14:57 WL500g-1.9.2.7-6b.trx
    -rw-r--r--   1 leon dialout 3481600 2005-09-29 15:18 WL500gx-1.9.2.7-6b.trx
    -rw-r--r--   1 leon dialout 3510272 2005-09-29 15:03 WLHDD-1.9.2.7-6b.trx
    and due to compression and directory ordering we will never get the same image size!
    Last edited by oleo; 30-09-2005 at 09:35.

Similar Threads

  1. Compiling MusicPD
    By muffl0n in forum WL-500g Q&A
    Replies: 0
    Last Post: 20-07-2005, 20:03
  2. problem compiling a firmware
    By David in forum WL-500g Custom Development
    Replies: 6
    Last Post: 20-05-2005, 16:17
  3. Compiling ggrab...
    By gwl in forum WL-500g Custom Development
    Replies: 11
    Last Post: 19-03-2005, 21: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, 17:03
  5. Compiling on/for the WL-500g
    By dsf260 in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-12-2004, 10: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
  •