LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-20-2009, 07:48 AM   #1
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Rep: Reputation: 15
CP210x USB to UART Bridge VCP Linux Drivers(SILICON Labs)


I have downloaded the drivers for the cp210x-3.0.0 for Linux kernel>2.4 and 2.6 version.
CP210x USB to UART Bridge VCP Drivers(SILICON Labs)
https://www.mysilabs.com/tgwWebApp/p...en/mcu_vcp.htm

((((linux_VCP_driver.tar)))))

i have it in /home/perfectpol7/Desktop/vcp (folder)
I have tried to install following the silabs manual but failed to make the rpm modules
root@ Program ~]# cd /home/perfectpol7
[root@Program perfectpol7]# dir
cp210x-3.0.0 Desktop Download Pictures Templates
cp210x-3.0.0.tar.gz Documents Music Public Videos
[root@ Program]# tar -xvzf cp210x-3.0.0.tar.gzcp210x-3.0.0/
cp210x-3.0.0/REPORTING-BUGS
cp210x-3.0.0/makerpm
cp210x-3.0.0/cp210x/
cp210x-3.0.0/cp210x/Makefile26
cp210x-3.0.0/cp210x/cp210x.h
cp210x-3.0.0/cp210x/configure
cp210x-3.0.0/cp210x/Makefile24
cp210x-3.0.0/cp210x/.rpmmacros
cp210x-3.0.0/cp210x/installmod
cp210x-3.0.0/cp210x/cp210x.c
cp210x-3.0.0/cp210x/Rules.make
cp210x-3.0.0/copying
cp210x-3.0.0/RELEASE-NOTES
cp210x-3.0.0/readme
cp210x-3.0.0/rpm/
cp210x-3.0.0/rpm/check-rpaths-worker
cp210x-3.0.0/rpm/brp-java-repack-jars
cp210x-3.0.0/rpm/check-rpaths
cp210x-3.0.0/rpm/brp-python-bytecompile
cp210x-3.0.0/PACKAGE-LIST
cp210x-3.0.0/install
cp210x-3.0.0/cp210x-3.0.0.spec
[root@ Program perfectpol7]# cd cp210x-3.0.0
[root@ Program cp210x-3.0.0]# ./makerpm
++ uname -r
+ kernel_release=2.6.27.5-117.fc10.i686
++ pwd
+ current_dir=/home/perfectpol7/cp210x-3.0.0
+ export current_dir
+ '[' -f /root/.rpmmacros ']'
+ mv -f /root/.rpmmacros /root/.rpmmacros.cp210x
+ cp /home/perfecpol7/cp210x-3.0.0/cp210x/.rpmmacros /root/.rpmmacros
+ d=/var/tmp/silabs
+ '[' '!' -d /var/tmp/silabs ']'
+ cd /var/tmp/silabs
+ r=/var/tmp/silabs/rpmbuild
+ o=cp210x-3.0.0
+ s=/var/tmp/silabs/rpmbuild/SOURCES
+ spec=cp210x-3.0.0.spec
+ rm -rf /var/tmp/silabs/rpmbuild
+ mkdir rpmbuild
+ mkdir rpmbuild/SOURCES
+ mkdir rpmbuild/SRPMS
+ mkdir rpmbuild/SPECS
+ mkdir rpmbuild/BUILD
+ mkdir rpmbuild/RPMS
+ cd /var/tmp/silabs/rpmbuild/SOURCES
+ rm -rf cp210x-3.0.0
+ mkdir cp210x-3.0.0
+ cp -r /home/perfectpol7/cp210x-3.0.0/cp210x/configure /home/perfectpol7/cp210x-3.0.0/cp210x/cp210x.c /home/perfectpol7/cp210x-3.0.0/cp210x/cp210x.h /home/perfectpol7/cp210x-3.0.0/cp210x/defaults.mk /home/perfectpol7/cp210x-3.0.0/cp210x/installmod /home/perfectpol7/cp210x-3.0.0/cp210x/Makefile24 /home/perfectpol7/cp210x-3.0.0/cp210x/Makefile26 /home/perfectpol7/cp210x-3.0.0/cp210x/Rules.make cp210x-3.0.0
+ cp -r /home/perfectpol7/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
++ uname -r
+ KVER=2.6.27.5-117.fc10.i686
++ echo 2.6.27.5-117.fc10.i686
++ awk -F . -- '{ print $1 }'
+ KVER1=2
++ echo 2.6.27.5-117.fc10.i686
++ awk -F . -- '{ print $2 }'
+ KVER2=6
++ echo 2.6.27.5-117.fc10.i686
++ sed -e 's/2\.6\.//g'
+ KVER3=27.5-117.fc10.i686
+ MyCopy=0
+ case $KVER2 in
+ echo '2.6 Kernel'
2.6 Kernel
+ rm -f cp210x-3.0.0.tar
+ rm -f cp210x-3.0.0.tar.gz
+ tar -cf cp210x-3.0.0.tar cp210x-3.0.0
+ gzip cp210x-3.0.0.tar
+ cp /home/perfectpol7/cp210x-3.0.0/cp210x-3.0.0.spec /var/tmp/silabs/rpmbuild/SPECS
+ rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4glFke
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ kver2=6
+ case $kver2 in
+ echo '2.6 Kernel'
2.6 Kernel
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ rm -rf cp210x-3.0.0
+ /usr/bin/gzip -dc /var/tmp/silabs/rpmbuild/SOURCES/cp210x-3.0.0.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cp210x-3.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4DRdS1
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ cd cp210x-3.0.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ sh ./configure
+ CONFIG_FILE=defaults.mk
++ pwd
+ PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
++ uname -r
+ KVER=2.6.27.5-117.fc10.i686
++ echo 2.6.27.5-117.fc10.i686
++ awk -F . -- '{ print $1 }'
+ KVER1=2
++ echo 2.6.27.5-117.fc10.i686
++ awk -F . -- '{ print $2 }'
+ KVER2=6
++ sed -e 's/2\.6\.//g'
++ echo 2.6.27.5-117.fc10.i686
+ KVER3=27.5-117.fc10.i686
+ case $KVER2 in
+ makefile=Makefile26
+ EXT=.ko
+ KOFILE=cp210x.ko
+ MODFILE=cp2101.ko
+ RULESFILE=
++ uname -r
+ KDIR=/lib/modules/2.6.27.5-117.fc10.i686/build
++ uname -r
+ MODDIR=/lib/modules/2.6.27.5-117.fc10.i686
+ echo

+ echo 'Kernel version : 2.6.27.5-117.fc10.i686'
Kernel version : 2.6.27.5-117.fc10.i686
+ echo 'Module extension : .ko'
Module extension : .ko
+ echo 'KO File : cp210x.ko'
KO File : cp210x.ko
+ echo 'Kernel Dir : /lib/modules/2.6.27.5-117.fc10.i686/build'
Kernel Dir : /lib/modules/2.6.27.5-117.fc10.i686/build
+ echo 'Module File : cp2101.ko'
Module File : cp2101.ko
+ echo 'Module Dir : /lib/modules/2.6.27.5-117.fc10.i686'
Module Dir : /lib/modules/2.6.27.5-117.fc10.i686
+ echo 'Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0'
Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ case $KVER2 in
+ echo

+ rm -f defaults.mk
+ echo '# Makefile.config'
+ echo '# Automatically generated'
+ echo KVER=2.6.27.5-117.fc10.i686
+ echo KVER1=2
+ echo KVER2=6
+ echo KVER3=27.5-117.fc10.i686
+ echo EXT=.ko
+ echo KOFILE=cp210x.ko
+ echo KDIR=/lib/modules/2.6.27.5-117.fc10.i686/build
+ echo MODFILE=cp2101.ko
+ echo MODDIR=/lib/modules/2.6.27.5-117.fc10.i686
+ echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ case $KVER2 in
+ kver2=6
+ case $kver2 in
+ echo '2.6 Kernel'
2.6 Kernel
+ cp ./Makefile26 ./Makefile
+ make -f Makefile26 modules
make -C /lib/modules/2.6.27.5-117.fc10.i686/build -I /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 M=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.5-117.fc10.i686'
CC [M] /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:79:27: error: asm/semaphore.h: No such file or directory
In file included from /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:95:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:709: error: unknown field 'num_interrupt_in' specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: error: unknown field 'num_interrupt_out' specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: warning: missing braces around initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: warning: (near initialization for 'silabs_cp210x_device.driver_list')
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:711: error: unknown field 'num_bulk_in' specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:711: warning: initialization makes pointer from integer without a cast
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:712: error: unknown field 'num_bulk_out' specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:712: warning: initialization makes pointer from integer without a cast
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:729: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:730: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:731: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:732: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:733: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:734: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:735: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:736: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:737: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:738: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:739: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:740: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_open':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:411: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:412: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:571: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_close':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:679: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:680: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_termios':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:972: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:974: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:975: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:980: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:982: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:983: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_set_termios':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1015: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1015: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1020: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1021: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1026: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1214: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1215: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_resubmit_read_urb':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2418: error: 'struct usb_serial_port' has no member named 'open_count'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_flush_and_resubmit_read_urb':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2440: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2495: error: 'struct usb_serial_port' has no member named 'open_count'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_write_bulk_callback':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2566: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_throttle':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2612: error: 'struct usb_serial_port' has no member named 'tty'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_unthrottle':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2673: error: 'struct usb_serial_port' has no member named 'tty'
make[2]: *** [/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o] Error 1
make[1]: *** [_module_/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-117.fc10.i686'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.4DRdS1 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.4DRdS1 (%build)
+ '[' -f /root/.rpmmacros.cp210x ']'
+ rm /root/.rpmmacros
+ mv -f /root/.rpmmacros.cp210x /root/.rpmmacros
[root@ Program cp210x-3.0.0]#

Can any one guide me what commands i need to use in terminal to load it or to rectify these errors: RPM build error
i need it urgently
I am using Fedora core 10 Kernel 2.6.27.19.2.35.fc10.i686
please bear with me a the log is too longer but i thought it might help to have a fully analysis of my problem. Thank you for your assistance in advance.
 
Old 05-14-2009, 08:11 AM   #2
richardsmith
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
updated cp210x driver

I am working on an updated driver with support of the manufacturer.

I can provide you with updated source, and will be working to get this patched into the main stream commits.

please email me rsmith at firmlogix.com if you need this before the commits( which may take a few weeks).

Richard
 
Old 06-02-2010, 05:31 AM   #3
spy
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
CP210x USB to UART Bridge VCP Linux Drivers(SILICON Labs)

Hi Richard, I have downloaded the latest driver from the silicon labs' download location and I have the same problem as perfectpol7. Does this mean the updated driver mentioned in your post has not been committed yet? if this is the case, Can you send me the driver to spynadath@gmail.com?

Thank You,
Samson
 
Old 09-01-2010, 09:23 AM   #4
abrue
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
Hi Richard, I've the same problem like spy. I've also downloaded the latest drivers form the silicon labs download and the installation problem still exists.
can you also send me your updated source please!?
my address is andre_bruegger at bluewin dot ch
thanks a lot
André
 
Old 09-02-2010, 11:59 AM   #5
richardsmith
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Andre:

The source is valid through version 2.6.22. What version of the kernel are you building for?

Richard
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Treble and Bass with Creative Labs MP3+ USB lbclinux Fedora 1 05-23-2006 11:43 PM
Device drivers for Creative Labs Webcam Mr Smokin Joe Debian 27 04-21-2005 11:19 AM
ALSA drivers not working for my Creative Labs SBLIVE! 24Bit card... Please Help!!! TheCowboy Linux - Hardware 2 03-04-2005 02:25 AM
Drivers for a LexMark 510 Serise....? and a Creative Labs LIVe 24Bit! HELP! TheCowboy Linux - Hardware 2 01-02-2005 01:58 AM
possible to move files from linux -> pc through usb bridge? kitmui Linux - Hardware 1 12-03-2003 12:38 AM


All times are GMT -5. The time now is 07:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration