I found the answer myself: the firmware can't be compiled on an AMD64 system, a 32 bit operating system should be used.
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":
I'm using an Ubuntu 5.04 box. Can anybody help me?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'
Also, there is a new GPL tarball at ASUS (1.9.5.0). Is there any brave man out there?
I found the answer myself: the firmware can't be compiled on an AMD64 system, a 32 bit operating system should be used.
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.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
I don't miss any function.
Maybe Oleg is a KGB spy (or whatever is called nowadays)
Originally Posted by pfugl
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.Originally Posted by unaiur
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
Hmmm, now I suddenly notice the "WL500gx" part of the filename. okay, let me try and compile the right sources!Originally Posted by iiivx
// 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
I've also compared OLEG 6b and my source build:
I've assumed that this was manualy copied into install tree before building as there is no patches/source for tcpdump and samba codepages!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
Mine images build with the following sizes:and due to compression and directory ordering we will never get the same image size!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
Last edited by oleo; 30-09-2005 at 09:35.