If you want to compile the source from westell extract the linux tools (toolchain) to /opt/toolchains, not /opt as the readme specifies. After this change it will compile without issue. I have successfully compiled the firmware and it is very similar to openwrt.
Hey hard_where,
i tried to do that using ubuntu but i can't get it to work. I get the same error when i try to compile.
Can you upload the firmware somewhere?
Thank you in advance.
Last edited by alainpp on Mon Feb 22, 2010 1:06; edited 1 time in total
I have not installed the compiled firmware yet as I need to get serial or jtag going first. Manufactures sometimes "forget" to include everything that is needed and without serial or jtag there is no way to debug.
I used a Fedora 10 box with a lot of development tools to compile the firmware. I read somewhere on another forum that Westell/Verizon used FC5 to originally build the firmware.
If you want to compile the source from westell extract the linux tools (toolchain) to /opt/toolchains, not /opt as the readme specifies. After this change it will compile without issue. I have successfully compiled the firmware and it is very similar to openwrt.
Hey hard_where,
i tried to do that using ubuntu but i can't get it to work. I get the same error when i try to compile.
Can you upload the firmware somewhere?
Thank you in advance.
maybe the folder is supposed to be /opt/toolchain
not opt/toolchains ?
hard_where wrote:
I have not installed the compiled firmware yet as I need to get serial or jtag going first. Manufactures sometimes "forget" to include everything that is needed and without serial or jtag there is no way to debug.
commands:
cd /opt
mkdir toolchains
cd toolchains
tar -xvjf A90-750115_toolchain.tar.bz2
** the directory 'westell_msw2' will be created containing the toolchain files **
the path will look like:
cd /opt/toolchains/westell_msw2
[@kernelpanic westell_msw2]$ ls
bfd fakeroot.env info libexec mips-linux rootfs.mips_nofpu.tar
bin include lib man mips-linux-uclibc usr
You may need other tools besides the toolchain installed. Please check and post the error you received.
I did follow all your steps and this is the error i get:
I did try using "toolchains" and "toolchain" for the folder name containing the "westell_msw2" folder
Code:
root@ubuntu:~/Downloads/SW# make PROFILE=A90-750115
cat: /root/Downloads/SW/.PROFILE: No such file or directory
making all for A90-750115
make -C /root/Downloads/SW/targets/A90-750115 all
make[1]: Entering directory `/root/Downloads/SW/targets/A90-750115'
echo "A90-750115" > /root/Downloads/SW/.PROFILE
rm -rf /root/Downloads/SW/targets/A90-750115/objects && mkdir /root/Downloads/SW/targets/A90-750115/objects
***** Configuring Linux kernel *****
cp -f /root/Downloads/SW/targets/A90-750115/config.linux /root/Downloads/SW/targets/A90-750115/objects/.config
yes "" | make -C /root/Downloads/SW/linux/linux-2.6.8.1 O=/root/Downloads/SW/targets/A90-750115/objects oldconfig > /dev/null
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/basic/fixdep.c: In function ‘traps’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/basic/fixdep.c:359: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/basic/fixdep.c:361: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/basic/split-include.c: In function ‘main’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/basic/split-include.c:133: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/conf.c: In function ‘conf_askvalue’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/conf.c:94: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/conf.c: In function ‘conf_choice’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/conf.c:350: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/mconf.c: In function ‘exec_conf’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/mconf.c:224: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/mconf.c: In function ‘show_textbox’:
/root/Downloads/SW/linux/linux-2.6.8.1/scripts/kconfig/mconf.c:552: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
lex.zconf.c:2969: warning: ‘input’ defined but not used
***** Building Linux kernel *****
make -C /root/Downloads/SW/linux/linux-2.6.8.1 O=/root/Downloads/SW/targets/A90-750115/objects
make[2]: Entering directory `/root/Downloads/SW/linux/linux-2.6.8.1'
find . -lname "*" -name "bcm96358" -print -exec rm -f "{}" ";"
/bin/bash -c " ln -sn impl1 opensource/char/board/bcm963xx/bcm96358; ln -sn impl1 opensource/char/serial/bcm96358; ln -sn impl2 broadcom/net/enet/bcm96358; ln -sn impl2 broadcom/net/usb/bcm96358; ln -sn impl2 broadcom/net/wl/bcm96358;"
Using /root/Downloads/SW/linux/linux-2.6.8.1 as source for kernel
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm -> include/asm-mips
scripts/kconfig/conf -s arch/mips/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:1228: warning: ‘input’ defined but not used
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
/opt/toolchains/westell_msw2/bin/mips-linux-gcc: 1: ELF####: not found
/opt/toolchains/westell_msw2/bin/mips-linux-gcc: 2: �####�E#�EQ�EQ�#�######@##@: not found
/opt/toolchains/westell_msw2/bin/mips-linux-gcc: 2: 4: not found
/opt/toolchains/westell_msw2/bin/mips-linux-gcc: 2: 86?##: not found
/opt/toolchains/westell_msw2/bin/mips-linux-gcc: 1: Syntax error: word unexpected (expecting ")")
make[5]: *** [scripts/mod/empty.o] Error 2
make[4]: *** [scripts/mod] Error 2
make[3]: *** [scripts] Error 2
make[2]: *** [_all] Error 2
make[2]: Leaving directory `/root/Downloads/SW/linux/linux-2.6.8.1'
make[1]: *** [/root/Downloads/SW/targets/A90-750115/objects/vmlinux] Error 2
make[1]: Leaving directory `/root/Downloads/SW/targets/A90-750115'
make: *** [all] Error 2
Posted: Mon Feb 22, 2010 19:07 Post subject: Re: Error
Your problem is that you're compiling under a 32-bit architecture when the binaries are compiled for 64-bit. I have successfully compiled this as well and if anyone would be interested in the binaries, I can post them. let me know.
baba2s wrote:
I too getting same error...
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
make[5]: warning: Clock skew detected. Your build may be incomplete.
Posted: Mon Feb 22, 2010 23:27 Post subject: Re: Error
Please post the bin file.
Thanks.
x1n wrote:
Your problem is that you're compiling under a 32-bit architecture when the binaries are compiled for 64-bit. I have successfully compiled this as well and if anyone would be interested in the binaries, I can post them. let me know.
baba2s wrote:
I too getting same error...
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
make[5]: warning: Clock skew detected. Your build may be incomplete.
Posted: Tue Feb 23, 2010 0:10 Post subject: Re: Error
x1n wrote:
Your problem is that you're compiling under a 32-bit architecture when the binaries are compiled for 64-bit. I have successfully compiled this as well and if anyone would be interested in the binaries, I can post them. let me know.
I am using my openwrt setup.. ( VMware player and Ubuntu)
Thanks
Posted: Tue Feb 23, 2010 0:29 Post subject: Re: Error
I tried using ubuntu 64 bit and the compiler took a lot longer and it looks like it was working. I though i was getting there, but at the end (like 6 minutes later) i got the same error i posted early and no firmware file.
hard_where wrote:
x1n wrote:
Your problem is that you're compiling under a 32-bit architecture when the binaries are compiled for 64-bit. I have successfully compiled this as well and if anyone would be interested in the binaries, I can post them. let me know.
I am using my openwrt setup.. ( VMware player and Ubuntu)
Thanks