imx6 usb的host和slave配置,配置之后,安装gadget模块,就能够在host和slave之间切换。

参考文档:

i.MX 6Dual/6Quad Linux Reference Manual

http://www.cnblogs.com/helloworldtoyou/p/6181860.html

将内核.config文件中下列选项选中(Y),或者编译成模块编译成M。

以下是摘自i.MX 6Dual/6Quad Linux Reference Manual中的内容

Chapter 34 ARC USB Driver

  1. CONFIG_USB-Build support for USB
  2. CONFIG_USB_EHCI_HCD-Build support for USB host driver. In menuconfig, this
  3. option is available under Device drivers > USB support > EHCI HCD (USB 2.0)
  4. support.
  5. By default, this option is Y.
  6. CONFIG_USB_EHCI_ARC-Build support for selecting the ARC EHCI host. In
  7. menuconfig, this option is available under Device drivers > USB support > Support
  8. for Freescale controller.
  9. By default, this option is Y.
  10. CONFIG_USB_EHCI_ARC_OTG-Build support for selecting the ARC EHCI OTG
  11. host. In menuconfig, this option is available under
  12. Device drivers > USB support > EHCI HCD (USB 2.0) support > Support for DR
  13. host port on Freescale controller.
  14. By default, this option is Y.
  15. CONFIG_USB_EHCI_ARC_HSIC Freescale HSIC USB Host Controller
  16. By default, this option is N.
  17. CONFIG_USB_EHCI_ROOT_HUB_TT-Some EHCI chips have vendor-specific
  18. extensions to integrate transaction translators, so that no OHCI or UHCI companion
  19. controller is needed. In menuconfig this option is available under
  20. Device drivers > USB support > Root Hub Transaction Translators.
  21. By default, this option is Y selected by USB_EHCI_ARC && USB_EHCI_HCD.
  22. CONFIG_USB_STORAGE-Build support for USB mass storage devices. In
  23. menuconfig this option is available under
  24. Device drivers > USB support > USB Mass Storage support.
  25. By default, this option is Y.
  26. CONFIG_USB_HID-Build support for all USB HID devices. In menuconfig this
  27. option is available under
  28. Device drivers > HID Devices > USB Human Interface Device (full HID) support.
  29. By default, this option is Y.
  30. CONFIG_USB_GADGET-Build support for USB gadget. In menuconfig, this option
  31. is available under
  32. Device drivers > USB support > USB Gadget Support.
  33. By default, this option is M.
  34. CONFIG_USB_GADGET_ARC-Build support for ARC USB gadget. In
  35. menuconfig, this option is available under
  36. Device drivers > USB support > USB Gadget Support > USB Peripheral Controller
  37. (Freescale USB Device Controller).
  38. By default, this option is Y.
  39. CONFIG_IMX_USB_CHARGER Freescale i.MX 6 USB Charger Detection
  40. By default, this option is N.
  41. CONFIG_USB_OTG-OTG Support, support dual role with ID pin detection.
  42. By default, this option is Y.
  43. CONFIG_MXC_OTG-USB OTG pin detect support for Freescale USB OTG
  44. Controller
  45. By default, this option is Y.
  46. CONFIG_USB_ETH-Build support for Ethernet gadget. In menuconfig, this option
  47. is available under
  48. Device drivers > USB support > USB Gadget Support > Ethernet Gadget (with CDC
  49. Ethernet Support).
  50. By default, this option is M.
  51. CONFIG_USB_ETH_RNDIS-Build support for Ethernet RNDIS protocol. In
  52. menuconfig, this option is available under
  53. Device drivers > USB support > USB Gadget Support > Ethernet Gadget (with CDC
  54. Ethernet Support) > RNDIS support.
  55. By default, this option is Y.
  56. CONFIG_USB_FILE_STORAGE-Build support for Mass Storage gadget. In
  57. menuconfig, this option is available under
  58. Device drivers > USB support > USB Gadget Support > File-backed Storage Gadget.
  59. By default, this option is M.
  60. CONFIG_USB_G_SERIAL-Build support for ACM gadget. In menuconfig, this
  61. option is available under
  62. Device drivers > USB support > USB Gadget Support > Serial Gadget (with CDC
  63. ACM support).
  64. By default, this option is M.

Tony Liu

2016-12-15, ShenZhen

imx6 usb otg config 配置的更多相关文章

  1. USB OTG to PC USB API简介

    本API分为四部分:Linux或Android内核 (主要是gadget驱动).linux端API及其DEMO.Windows 驱动.Windows API及其Demo. 一.linux.Androi ...

  2. android USB OTG功能实现

    一个.检查HW概要,确认是否支持OTG特征(vbus无论是动力,IDDIG pin连接是否正确) 两.如果HW确认支持OTG特征,然后根据以下方法被打开USB OTG功能及实现山: 如何打开USB O ...

  3. 如何打开USB OTG功能:

    一.检查HW原理图,确认是否支持OTG功能(vbus是否供上电,IDDIG pin连接是否正确)二.若HW确认支持OTG功能,则按照以下方法分别打开USB OTG功能及实现挂载: 如何打开USB OT ...

  4. USB otg 学习笔记

    1 USB OTG的工作原理 OTG补充规范对USB2.0的最重要的扩展是其更具节能性的电源管理和允许设备以主机和外设两种形式工作.OTG有两种设备类型:两用OTG设备(Dualrole device ...

  5. 详述USB OTG发展及协议标准

    USB On-The-Go 扩大了USB 的应用领域,将USB 从传统的PC 与外设通讯的模式,扩展到移动电子和嵌入式领域中,抛开主机PC,实现通常的外设与外设之间点对点(Point to Point ...

  6. USB OTG原理+ ID 检测原理

    OTG 检测的原理是: USB OTG标准在完全兼容USB2.0标准的基础上,增添了电源管理(节省功耗)功能,它允许设备既可作为主机,也可作为外设操作(两用OTG).USB OTG技术可实现没有主机时 ...

  7. stm32f407以太网及USB OTG快速开发

    stm32f407以太网及USB OTG快速开发 引言 想要快速完成网络协议栈和USB OTG功能,使用ST自家的工具STM32CubMx再好不过的了.如果你还不会使用,别着急下面我会一步一步的用图片 ...

  8. USB HOST与 USB OTG的区别及工作原理

    在SmartQ 7上面,同时存在USB HOST与 USB OTG两个接口,我想问一下,这两个接口有什么区别么?我怎么认为HOST属于是多余呢? 麻烦高手解答,感激不尽!!! 转自USB HOST与 ...

  9. USB OTG原理和 ID 检测原理

    OTG 检测的原理是: USB OTG标准在完全兼容USB2.0标准的基础上,增添了 电源管理(节省功耗)功能,它允许设备既可作为主机,也可作为外设操作(两用OTG).USB OTG技术可实现没有主机 ...

随机推荐

  1. 系统吞吐量(TPS)、用户并发量

    PS:下面是性能测试的主要概念和计算公式,记录下: 一.系统吞度量要素: 一个系统的吞度量(承压能力)与request对CPU的消耗.外部接口.IO等等紧密关联. 单个reqeust 对CPU消耗越高 ...

  2. 浅谈SQLiteOpenHelper之onCreate例子

    哈喽大家好!如果你感觉SQLiteOpenHelper不懂的可以看一下.  onCreate(SQLiteDatabase db) : 当数据库被首次创建时执行该方法,一般将创建表等初始化操作在该方法 ...

  3. sprintf溢出的bug

    向printf.sprintf这种函数在编译时很难检查错误,所以程序员必须小心.比如我就遇到了这样的bug: void test() { ]; sprintf(t,"); } //执行spr ...

  4. python 获取日期

    转载   原文:python 获取日期 作者:m4774411wang python 获取日期我们需要用到time模块,比如time.strftime方法 time.strftime('%Y-%m-% ...

  5. 转载:Android自动化测试- 自动获取短信验证码

    前言:android应用的自动化测试必然会涉及到注册登录功能,而许多的注册登录或修改密码功能常常需要输入短信验证码,因此有必要能够自动获得下发的短信验证码. 主要就是实时获取短信信息. android ...

  6. java基础-泛型1

    浏览以下内容前,请点击并阅读 声明 泛型的使用能使类型名称作为类或者接口定义中的参数,就像一般的参数一样,使得定义的类型通用性更强. 泛型的优势: 编译具有严格的类型检查 java编译器对于泛型代码的 ...

  7. React使用jquery方式动态获取数据

    好久没写react了,今天有空写一下来react实现实时请求数据,并刷新数据的小demo. 首先我还是选择了jquery方式中自带的ajax获取数据,首先要引用所需的js包 接下来要写一个自定义的js ...

  8. tornado 学习笔记6 Application 源码分析

    Application 是Tornado重要的模块之一,主要是配置访问路由表及其他应用参数的设置. 源代码位于虚拟运行环境文件夹下(我的是env),具体位置为env > lib>sit-p ...

  9. 用maven配置springboot+freemarker

    1.创建项目 直接点下一步   原因: 不勾选 Create from archetype,是项目创建的骨架的时候,由于不知道什么原因就卡住了,一直在刷新 2.创建之后完成之后 添加依赖 <pa ...

  10. Daily Scrum02 12.08

    编译大作业的第一次检查终于过去了,已经经过这次检查的组员们可以暂时松一口气了. 也希望编译大作业有着落的成员可以多花一些时间在团队任务上,帮其他的组员多分担一些工作. 第一次没来的及检查的同学,或是没 ...