IMX6ULL kernel with CP210x drivers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX6ULL kernel with CP210x drivers

4,045 次查看
fabio_poiatti
Contributor III

Hi,

I'm working on IMX6ULLEVK and I builded a BSP 

Linux imx6ull14x14evk 4.14.78-imx_4.14.78_1.0.0_ga+g94da7bdc489b #1 SMP PREEMPT Tue Apr 9 11:13:11 UTC 2019 armv7l armv7l armv7l GNU/Linux

I would like to connect the EVB with a custom board via USB HOST but I need the CP 210x usb drivers

How can I add those driver to my kernel?

thanks

Fabio

0 项奖励
回复
3 回复数

3,852 次查看
fabio_poiatti
Contributor III

I found the CP210x driver included in the repository downloaded from CodeAurora Branch Sumo

Something like ..

./buildx11/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/4.15.7-r0/linux-4.15.7/drivers/usb/serial/cp210x.c
./buildx11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/linux-libc-headers/4.14-r0/linux-4.14/drivers/usb/serial/cp210x.c

./buildx11/tmp/work-shared/imx6ull14x14evk/kernel-source/drivers/usb/serial/cp210x.c

So I think there is the possibility to include the driver in the final image ... but I was not able to do it.

I tried to include some definition in defconfig or local.conf .. something like

CONFIG_USB_SERIAL_CONSOLE=y

CONFIG_USB_SERIAL_GENERIC=y

CONFIG_USB_SERIAL_CP210X = y

but without any success ...

Could yuo please give me some suggestions?

Thanks

0 项奖励
回复

3,850 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Fabio,

If you refer to Table 8 “Supported features” of the i.MX Linux Release Notes (for L4.14.78-1.0.0_ga) it is mentioned that for USB Host mode, only MSC, HID, UVC, and USB audio classes are supported.

So, if you want to support a CP210x, it would be required adding the USB CDC class support in Host mode, and then the proper driver, which is usually provided by the chip vendor.


Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

3,850 次查看
fabio_poiatti
Contributor III

Thanks Carlos

I will try ... because now I'm not able to do that ...

Do you have some information or stepbystep instructions?

Fabio

0 项奖励
回复