About a USB driver of LinuxBSP for i.MX6 Solo

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

About a USB driver of LinuxBSP for i.MX6 Solo

跳至解决方案
1,584 次查看
yuuki
Senior Contributor II

Dear all,

We use i.MX6Solo.
And L3.0.35_4.0.0_130424_source.tar.gz is used.

We have some questions about Linux BSP.

In our system, we think about the following configuration.
We use this for the maintenance of our system. (like RS232C)

     [PC(USB Host)]<====[USB to serial]====>[i.MX6 original board(USB Device)]

In this case, we understand that we should use "g_serial" included in the USB gadget of Linux BSP.

[Question1]
We want to modify this "g_serial".
However, the "g_serial" is a module form.

Can "g_serial" be modified?

[Question2]
Is there the document about "g_serial"?

[Question3]
When we use USB like RS232C, is there the good idea?

[Question4]
We understand that the USB driver included in Linux BSP decides the operation of the USB port by a state of USB_OTG_ID.

      - Low => USB_OTG of i.MX6 works as Host.
      - High => USB_OTG of i.MX6 works as Device.

Is my understanding right?

May I have advice?

Best Regards,
Yuuki

标签 (1)
0 项奖励
1 解答
974 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Yuuki

1.2. for  usb "g_serial" one can look at

Linux-USB Gadget API Framework

and attached Linux Manual Chapter 41 CHIPIDEA USB Driver,

in most cases there is no need for modification of this driver

3. this is common approach, seems this is not bad idea

4. yes it is right

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1 回复
975 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Yuuki

1.2. for  usb "g_serial" one can look at

Linux-USB Gadget API Framework

and attached Linux Manual Chapter 41 CHIPIDEA USB Driver,

in most cases there is no need for modification of this driver

3. this is common approach, seems this is not bad idea

4. yes it is right

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励