How can I install cp210x usb driver on my colibri v1.0A

Hello,

I want to send and get data on serialport use colibri v1.0A . I plug CP210x USB to UART Bridge my two device.

and open my terminal on colibri board than run this command;

root@colibri-imx6:~# lsusb

Bus 001 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

then run this command:

root@colibri-imx6:~# dmesg | grep tty

[ 0.000000] Kernel command line: enable_wait_mode=off galcore.contiguousSize=50331648 ip=off root=/dev/mmcblk0p2 rw,noatime rootfstype=ext3 rootwait fec_mac=00:14:2d:4a:4b:48 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 video=mxcfb0:dev=lcd,640x480M@60,if=RGB666 video=mxcfb1:off fbmem=8M

[ 0.000000] console [tty1] enabled

[ 0.426642] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

[ 1.150428] console [ttymxc0] enabled

[ 1.151185] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX

[ 1.151639] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

[ 4.192890] systemd[1]: Expecting device dev-ttymxc0.device…

[ 4.650433] systemd[1]: Starting system-getty.slice.

[ 4.657364] systemd[1]: Created slice system-getty.slice.

[ 4.841073] systemd[1]: Starting system-serial\x2dgetty.slice.

[ 4.851671] systemd[1]: Created slice system-serial\x2dgetty.slice.

I cant see my usb to uart bridge in the result.

then ı run this command my ubuntu pc ;

asimturgut@EN-UBUNTU-61:~$ sudo dmesg | grep tty

[ 0.000000] console [tty0] enabled

[10939.614327] usb 2-2: cp210x converter now attached to ttyUSB0

[11104.901289] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0

[13548.843884] usb 2-2: cp210x converter now attached to ttyUSB0

[17887.186001] usb 2-1: ch341-uart converter now attached to ttyUSB1

[17984.153031] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1

[30865.802560] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0

[30867.824060] usb 2-2: cp210x converter now attached to ttyUSB1

[30942.888617] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1

[31745.072267] usb 2-2: ch341-uart converter now attached to ttyUSB0

[31974.500610] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0

[31980.702791] usb 2-2: cp210x converter now attached to ttyUSB0

[33398.672825] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0

[33412.913278] usb 2-2: cp210x converter now attached to ttyUSB0

so ı find my converter on /dev/ttyUSB0.

what is my problem ? ı thin ı have to install cp210x driver on colibri evulation board but how can do this ?

my colibri board os information in here;

OS: angstrom v2014.12 - Kernel 3.10.17
IMG: colibri_iMX6_LinuxImage2.4_20150518

By default the CP210x driver is not enabled in kernel provided with our prebuild Linux Image. One need to enable the driver and recompile the kernel to add support for CP210x. Instructions for building kernel
from source are available here and we would also recommend you to use our latest Linux Image V2.5 Beta3 which is available here. For instructions related to flashing Linux Images refer this article.

To enable the driver one can add the below config to colibri_imx6_defconfig file

  • CONFIG_USB_SERIAL_CP210X=y

or

Use menuconfig/nconfig and select the driver.

firstly thank you so much your reply .

I m beginner on colibri and angstrom operation system.

so ı want to edit root/arch/arm/configs/colibri_imx6_defconfig this file but ı could not found this file on this path and my carriar board os information in here ;

OS: angstrom v2014.12 - Kernel 3.10.17 IMG: colibri_iMX6_LinuxImage2.4_20150518

you recommend use last image than ı download last image on this we page ;

Colibri_iMX6_LinuxImageV2.5Beta3_20151215.tar.bz2

and extract file than transfer all extracted file to my board directory of : /home/root/Downloads

than run this command ./update.sh

but take an error : sudo command not found

now ı have 2 question

1-) how can ı update my current image for colibri imx6dl 512 mb v 1.0A

2-) why ı could not found colibri_imx6_defconfig file on this path root/arch/arm/configs/colibri_imx6_defconfig

thank you so much again …

The update procedure and the source code cross-compilation need to be done from development PC. One need to clone the source code to development PC, configure the toolchian and cross-compile. Refer the previously mentioned/provided articles for hints/instructions regarding flashing and cross-compiling kernel from source.

I have same problem.
I enabled the driver and recompiled the kernel to add support for CP210x. Flashing new Linux Images. But when Linux loaded it write next errors:

Failed to start Load Kernel Modules

and

Failed to start Load default USB gadget schema g1.schema

Did you install/deploy the kernel modules along with the custom kernel ?