Reply
Posts: 5
Registered: ‎03-24-2017

cp210x driver problems on Ubuntu 16.04

[ Edited ]

I have a zedboard Zynq700 and I am unable to any any console output from it.

 

I used to see my device listed in dmesg as /dev/ttyUSB0 but unable to connect using minicom so I tried installing VCP drivers.

 

I make, build successfully and followed instructions to install modules.

After that I can no longer see any ttyUSB0 device in dmesg so something did change however I still cannot see any output and I no longer know to which port I should connect. I do see the device listed with lsusb though. It is the USB UART I think:

 

lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 0dc3:0802 Athena Smartcard Solutions, Inc. ASEDrive IIIe
Bus 004 Device 003: ID 046d:c066 Logitech, Inc. G9x Laser Mouse
Bus 004 Device 002: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

I decided to try to install again to see what output I got:

 

sudo insmod /lib/modules/4.8.0-41-generic/kernel/drivers/usb/serial/us
bserial.ko
insmod: ERROR: could not insert module /lib/modules/4.8.0-41-generic/kernel/drivers/usb/serial/usbserial.ko: Invalid module format 
carlos@Bulldozer:~/Downloads/Linux-3-x-x-VCP-Driver-Source/Linux_3.x.x_VCP_Driver_Source$ sudo insmod cp210x.ko
insmod: ERROR: could not insert module cp210x.ko: Unknown symbol in module
carlos@Bulldozer:~/Downloads/Linux-3-x-x-VCP-Driver-Source/Linux_3.x.x_VCP_Dr

 

 

However if I query those modules I can see info for them so I guess they are installed:

 

carlos@Bulldozer:~$ pwd
/home/carlos
carlos@Bulldozer:~$

carlos@Bulldozer:~$ sudo modinfo cp210x
filename:       /lib/modules/4.8.0-41-generic/kernel/drivers/usb/serial/cp210x.ko
license:        GPL
description:    Silicon Labs CP210x RS232 serial adaptor driver
srcversion:     137FA496D71485943912075
alias:          usb:v413Cp9500d*dc*dsc*dp*ic*isc*ip*in*

...

depends:        usbserial
vermagic:       4.8.0-41-generic SMP mod_unload modversions

 

carlos@Bulldozer:~$ sudo modinfo usbserial
filename:       /lib/modules/4.8.0-41-generic/kernel/drivers/usb/serial/usbserial.ko
license:        GPL
description:    Silicon Labs CP210x RS232 serial adaptor driver
srcversion:     137FA496D71485943912075
alias:          usb:v413Cp9500d*dc*dsc*dp*ic*isc*ip*in*

...

depends:        usbserial
vermagic:       4.8.0-36-generic SMP mod_unload modversions

 

As you can see my kernel is 4.8.0-41.

The vermagic in usbserial makes me suspicious because it says 4.8.0.36.

 

I cant remember if my first module installation attempt failed in the same way. I only got output for my second attempt.

 

What should I do?

 

 

Posts: 3,036
Registered: ‎02-07-2002

Re: cp210x driver problems on Ubuntu 16.04

What lsusb shows you is an FDI USB-UART, not a SiLabs one. Are you sure you have the correct USB connector on the Zedboard? ISTR that the FTDI implements the JTAG connection and the SiLabs the UART console.

Posts: 5
Registered: ‎03-24-2017

Re: cp210x driver problems on Ubuntu 16.04

Yes I am pluging to the correct Prog port in Zedboard (J17).

AS additional info this is what I see in dmesg tail when powering up the Zedboard:

 

[ 6014.245215] cp210x: disagrees about version of symbol module_layout
[ 6182.592252] usb 8-1: new high-speed USB device number 2 using xhci_hcd
[ 6182.739054] usb 8-1: New USB device found, idVendor=0403, idProduct=6014
[ 6182.739058] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6182.739061] usb 8-1: Product: Digilent USB Device
[ 6182.739064] usb 8-1: Manufacturer: Digilent
[ 6182.739066] usb 8-1: SerialNumber: 210248A27282
[ 6183.805310] ftdi_sio: Unknown symbol usb_serial_handle_sysrq_char (err 0)
[ 6183.805348] ftdi_sio: Unknown symbol usb_serial_generic_open (err 0)
[ 6183.805371] ftdi_sio: Unknown symbol usb_serial_handle_dcd_change (err 0)
[ 6183.805393] ftdi_sio: Unknown symbol usb_serial_deregister_drivers (err 0)
[ 6183.805410] ftdi_sio: Unknown symbol usb_serial_generic_unthrottle (err 0)
[ 6183.805426] ftdi_sio: Unknown symbol usb_serial_handle_break (err 0)
[ 6183.805445] ftdi_sio: Unknown symbol usb_serial_generic_get_icount (err 0)
[ 6183.805464] ftdi_sio: Unknown symbol usb_serial_generic_tiocmiwait (err 0)
[ 6183.805480] ftdi_sio: Unknown symbol usb_serial_generic_throttle (err 0)
[ 6183.805504] ftdi_sio: Unknown symbol usb_serial_register_drivers (err 0)
[ 6232.787591] usb 8-1: USB disconnect, device number 2
[ 6235.874019] usb 8-1: new high-speed USB device number 3 using xhci_hcd
[ 6236.020767] usb 8-1: New USB device found, idVendor=0403, idProduct=6014
[ 6236.020771] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6236.020773] usb 8-1: Product: Digilent USB Device
[ 6236.020775] usb 8-1: Manufacturer: Digilent
[ 6236.020777] usb 8-1: SerialNumber: 210248A27282
[ 6237.055656] ftdi_sio: Unknown symbol usb_serial_handle_sysrq_char (err 0)
[ 6237.055703] ftdi_sio: Unknown symbol usb_serial_generic_open (err 0)
[ 6237.055731] ftdi_sio: Unknown symbol usb_serial_handle_dcd_change (err 0)
[ 6237.055758] ftdi_sio: Unknown symbol usb_serial_deregister_drivers (err 0)
[ 6237.055779] ftdi_sio: Unknown symbol usb_serial_generic_unthrottle (err 0)
[ 6237.055799] ftdi_sio: Unknown symbol usb_serial_handle_break (err 0)
[ 6237.055824] ftdi_sio: Unknown symbol usb_serial_generic_get_icount (err 0)
[ 6237.055846] ftdi_sio: Unknown symbol usb_serial_generic_tiocmiwait (err 0)
[ 6237.055866] ftdi_sio: Unknown symbol usb_serial_generic_throttle (err 0)
[ 6237.055895] ftdi_sio: Unknown symbol usb_serial_register_drivers (err 0)

 

 

Highlighted
Posts: 5
Registered: ‎03-24-2017

Re: cp210x driver problems on Ubuntu 16.04

Oh my... just realized my mistake.

 

J17 is not the right USB port, it is J14, the UART.

Oh, the problems I had because of that.