From: [email protected]
To: [email protected]
Subject: how to use Cp210x driver on BRCM2.4 router
Date: Wed, 9 Jun 2010 12:21:23 +0100








Hi,

I'm working in a project using a ASUS wl500w (BRCM2.4 processor) and a Z-Wave 
dongle with a CP210x USB-serial interface. I followed the tutorial available 
here: 
http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Asus(2f)WL500W.html, and 
along with other packages I selected the CP210x driver to be included in the 
kamikaze image. I compiled the new firmware images using MAKE V=99 and 
everything went without errors. However, the CP210x package was not build, I 
suppose that is because that package is not available in the BRCM2.4 package 
repository.

I have also tried to compile the CP210x source by my self, however I got the 
following errors:

./gcc -Wall -v -D__KERNEL__ -DMODULE -I 
/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include
 -Wall -v -D__KERNEL__ -DMODULE -I 
/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include
 -O2 -I..   -c -o cp210x.o cp210x.c
Reading specs from 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/specs
Configured with: 
/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/gcc-3.4.6/configure
 
--prefix=/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr
 --build=i486-linux-gnu --host=i486-linux-gnu 
--target=mipsel-openwrt-linux-uclibc --with-gnu-ld --enable-target-optspace 
--disable-libgomp --disable-libmudflap --disable-multilib --disable-nls 
--with-float=soft --disable-libssp --disable-__cxa_atexit 
--enable-languages=c,c++ --enable-shared --enable-threads 
--with-slibdir=/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/lib
 --disable-tls
Thread model: posix
gcc version 3.4.6 (OpenWrt-2.0)
 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/libexec/gcc/mipsel-openwrt-linux-uclibc/3.4.6/cc1
 -quiet -v -v -I 
/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include
 -I 
/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include
 -I.. -iprefix 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/
 -D__KERNEL__ -DMODULE -D__KERNEL__ -DMODULE cp210x.c -quiet -dumpbase cp210x.c 
-msoft-float -auxbase-strip cp210x.o -O2 -Wall -Wall -version -o /tmp/ccJMUmOz.s
ignoring nonexistent directory 
"/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/../../../../mipsel-openwrt-linux-uclibc/include"
ignoring duplicate directory 
"/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/include"
ignoring duplicate directory 
"/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/../../../../mipsel-openwrt-linux-uclibc/sys-include"
ignoring nonexistent directory 
"/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/../../../../mipsel-openwrt-linux-uclibc/include"
ignoring nonexistent directory 
"/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include"
ignoring nonexistent directory 
"/ASUS_OpenWRT/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6/linux-2.4.35.4/include"
#include "..." search starts here:
#include <...> search starts here:
 ..
 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/include
 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/../../../../mipsel-openwrt-linux-uclibc/sys-include
End of search list.
GNU C version 3.4.6 (OpenWrt-2.0) (mipsel-openwrt-linux-uclibc)
    compiled by GNU C version 4.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 
/ASUS_OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/3.4.6/../../../../mipsel-openwrt-linux-uclibc/bin/as
 -EL -O2 -no-mdebug -32 -v -v -KPIC -o cp210x.o /tmp/ccJMUmOz.s
GNU assembler version 2.19.1 (mipsel-openwrt-linux-uclibc) using BFD version 
(GNU Binutils) 2.19.1
/tmp/ccJMUmOz.s: Assembler messages:
/tmp/ccJMUmOz.s:315: Error: opcode not supported on this processor: mips1 
(mips1) `ll $3,12($16)'
/tmp/ccJMUmOz.s:317: Error: opcode not supported on this processor: mips1 
(mips1) `sc $2,12($16)'
/tmp/ccJMUmOz.s:320: Error: opcode not supported on this processor: mips1 
(mips1) `sync '
/tmp/ccJMUmOz.s:653: Error: opcode not supported on this processor: mips1 
(mips1) `ll $3,12($16)'
/tmp/ccJMUmOz.s:655: Error: opcode not supported on this processor: mips1 
(mips1) `sc $2,12($16)'
/tmp/ccJMUmOz.s:658: Error: opcode not supported on this processor: mips1 
(mips1) `sync '
/tmp/ccJMUmOz.s:1008: Error: opcode not supported on this processor: mips1 
(mips1) `ll $3,12($16)'
/tmp/ccJMUmOz.s:1010: Error: opcode not supported on this processor: mips1 
(mips1) `sc $2,12($16)'
/tmp/ccJMUmOz.s:1013: Error: opcode not supported on this processor: mips1 
(mips1) `sync '
/tmp/ccJMUmOz.s:4856: Error: opcode not supported on this processor: mips1 
(mips1) `ll $3,12($16)'
/tmp/ccJMUmOz.s:4858: Error: opcode not supported on this processor: mips1 
(mips1) `sc $2,12($16)'
/tmp/ccJMUmOz.s:4861: Error: opcode not supported on this processor: mips1 
(mips1) `sync '
/tmp/ccJMUmOz.s:8335: Error: opcode not supported on this processor: mips1 
(mips1) `ll $3,76($16)'
/tmp/ccJMUmOz.s:8337: Error: opcode not supported on this processor: mips1 
(mips1) `sc $2,76($16)'
/tmp/ccJMUmOz.s:8360: Error: opcode not supported on this processor: mips1 
(mips1) `ll $6,184($2)'
/tmp/ccJMUmOz.s:8362: Error: opcode not supported on this processor: mips1 
(mips1) `sc $3,184($2)'
make: *** [cp210x.o] Error 1



Does anyone know how to build a kamikaze image with the CP210x driver for the 
BRCM2.4 routers, or how to resolve the above compilation errors?                
                    
VEJA TODOS OS SEUS EMAILS DE VÁRIAS CONTAS COM UM SÓ LOGIN. CLIQUE AQUI E VEJA 
COMO.                                      
_________________________________________________________________
VEJA SEUS EMAILS ONDE QUER QUE VOCÊ ESTEJA, ACESSE O HOTMAIL PELO SEU CELULAR 
AGORA.
http://celular.windowslive.com.br/hotmail.asp?produto=Hotmail&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=VEJASEUSEM84&utm_campaign=MobileServices
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to