PDA

Bekijk de volledige versie : problem compiling a firmware



David
20-05-2005, 13:06
Hello,

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


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.

Jean-Fabrice
20-05-2005, 13:15
- 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



- 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

David
20-05-2005, 13:21
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)


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.

Jean-Fabrice
20-05-2005, 13:40
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

David
20-05-2005, 14:37
No luck today...

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


[ -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#

David
20-05-2005, 14:43
Ok... I found this one myself :)

See: http://wl500g.info/showthread.php?t=2310&page=3&pp=15&highlight=Makefiles5.diff

David
20-05-2005, 16:17
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.