Log in

Bekijk de volledige versie : Compiling 1.9.2.7-6b firmware



unaiur
05-09-2005, 04:27
I'm unable to compile the lastest & greatest Oleg's firmware.

I follow the steps at the Wl500g Wiki (http://wiki.wl500g.info/index.php/compilingcustomfirmware): get GPL_1927.zip (http://dlsvr01.asus.com/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip) & wl500g-1.9.2.7-6b.tar.bz2 (http://wl500g.dyndns.org/1.9.2.7-6b/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":


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?

unaiur
05-09-2005, 21:54
I found the answer myself: the firmware can't be compiled on an AMD64 system, a 32 bit operating system should be used. :(

pfugl
06-09-2005, 11:50
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.

unaiur
06-09-2005, 12:02
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.

pfugl
07-09-2005, 21:19
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

unaiur
08-09-2005, 00:12
I don't miss any function.
Maybe Oleg is a KGB spy (or whatever is called nowadays) :D


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

Oleg
08-09-2005, 10:56
I don't miss any function.
Maybe Oleg is a KGB spy (or whatever is called nowadays) :D
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.

iiivx
11-09-2005, 16:41
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
11-09-2005, 16:43
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?

oleo
30-09-2005, 09:24
I've also compared OLEG 6b and my source build:

$ 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:
-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!