cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
291 Views
Registered: ‎10-07-2019

Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

I am using both a KCU116 and ZCU106. Both require the cp210x usb uart drivers.

 

1. yum update kernel*  //need to update the kernel first otherwise your header won't match
2. yum install kernel-devel kernel-headers  //get the devel and header packages.
3. reboot  //your build link should be fixed after your system come back
4. make ( your cp210x driver )  // should be able to build successfully at this point
5. cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
6a. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
6. insmod cp210x.ko
7. sudo chmod 666 /dev/ttyUSB0
8. sudo chmod 666 /dev/ttyUSB1

 

I am able to follow up to 6a., when executing 6a I get the following error.

 

[root@c105548 uart]# insmod /lib/modules/3.10.0-1062.12.1.el7.x86_64/kernel/drivers/usb/serial/usbserial.ko
insmod: ERROR: could not load module /lib/modules/3.10.0-1062.12.1.el7.x86_64/kernel/drivers/usb/serial/usbserial.ko: No such file or directory

Obviously, my system is missing the usbserial.ko, How should I go about rectifying this issue?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor
Visitor
167 Views
Registered: ‎10-07-2019

Re: Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

I was able to solve the solution. https://www.reddit.com/r/CentOS/comments/b9gbru/usb2serial_driver_installation/

According to this reddit post, the usbserial.ko step is not necessary, as it is built into the kernel.

Then executing the following commands as sudo, I am able to connect to hardware on Vivado

# cd /opt/Xilinx/Vivado/2015.1/data/xicom/cable_drivers/lin64/install_script/install_drivers
# ./install_drivers

Thank you for your assistance!

View solution in original post

4 Replies
Highlighted
Mentor
Mentor
276 Views
Registered: ‎06-16-2013

Re: Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

Hi @josfran 

 

Would you make sure permission and executable bit ?

 

Best regards,

0 Kudos
Moderator
Moderator
220 Views
Registered: ‎06-14-2010

Re: Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

Hello @josfran ,

Try downloading the drivers directly from the SI Labs website, https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

image.png

Hope this helps.

Kind Regards,
Anatoli Curran,
Xilinx Technical Support
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Highlighted
Visitor
Visitor
206 Views
Registered: ‎10-07-2019

Re: Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

@watariI'm not sure I understand what you mean, when checking the directory it doesn't appear the usbserial.ko file exists

[root@c105548 uart2]# ls -a /lib/modules/3.10.0-1062.12.1.el7.x86_64/kernel/drivers/usb/serial
.                      ipaq.ko.xz         pl2303.ko.xz
..                     ipw.ko.xz          qcaux.ko.xz
aircable.ko.xz         ir-usb.ko.xz       qcserial.ko.xz
ark3116.ko.xz          iuu_phoenix.ko.xz  quatech2.ko.xz
belkin_sa.ko.xz        keyspan.ko.xz      safe_serial.ko.xz
ch341.ko.xz            keyspan_pda.ko.xz  sierra.ko.xz
cp210x.ko              kl5kusb105.ko.xz   spcp8x5.ko.xz
cp210x.ko.xz           kobil_sct.ko.xz    ssu100.ko.xz
cyberjack.ko.xz        mct_u232.ko.xz     symbolserial.ko.xz
cypress_m8.ko.xz       mos7720.ko.xz      ti_usb_3410_5052.ko.xz
digi_acceleport.ko.xz  mos7840.ko.xz      usb_debug.ko.xz
empeg.ko.xz            navman.ko.xz       usb_wwan.ko.xz
ftdi_sio.ko.xz         omninet.ko.xz      visor.ko.xz
garmin_gps.ko.xz       opticon.ko.xz      whiteheat.ko.xz
io_edgeport.ko.xz      option.ko.xz       xsens_mt.ko.xz
io_ti.ko.xz            oti6858.ko.xz

@anatoliI retried installing the drivers using the link you provided, but I still get the same error of missing the usbserial.ko file

0 Kudos
Highlighted
Visitor
Visitor
168 Views
Registered: ‎10-07-2019

Re: Unable to setup cp210x USB UART Drivers on CentOS 7, Missing usbserial.ko

Jump to solution

I was able to solve the solution. https://www.reddit.com/r/CentOS/comments/b9gbru/usb2serial_driver_installation/

According to this reddit post, the usbserial.ko step is not necessary, as it is built into the kernel.

Then executing the following commands as sudo, I am able to connect to hardware on Vivado

# cd /opt/Xilinx/Vivado/2015.1/data/xicom/cable_drivers/lin64/install_script/install_drivers
# ./install_drivers

Thank you for your assistance!

View solution in original post