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

• CONFIG_USB-Build support for USB
• CONFIG_USB_EHCI_HCD-Build support for USB host driver. In menuconfig, this
option is available under Device drivers > USB support > EHCI HCD (USB 2.0)
support.
By default, this option is Y.
• CONFIG_USB_EHCI_ARC-Build support for selecting the ARC EHCI host. In
menuconfig, this option is available under Device drivers > USB support > Support
for Freescale controller.
By default, this option is Y.
• CONFIG_USB_EHCI_ARC_OTG-Build support for selecting the ARC EHCI OTG
host. In menuconfig, this option is available under
Device drivers > USB support > EHCI HCD (USB 2.0) support > Support for DR
host port on Freescale controller.
By default, this option is Y.
• CONFIG_USB_EHCI_ARC_HSIC Freescale HSIC USB Host Controller
By default, this option is N.
• CONFIG_USB_EHCI_ROOT_HUB_TT-Some EHCI chips have vendor-specific
extensions to integrate transaction translators, so that no OHCI or UHCI companion
controller is needed. In menuconfig this option is available under
Device drivers > USB support > Root Hub Transaction Translators.
By default, this option is Y selected by USB_EHCI_ARC && USB_EHCI_HCD.
• CONFIG_USB_STORAGE-Build support for USB mass storage devices. In
menuconfig this option is available under
Device drivers > USB support > USB Mass Storage support.
By default, this option is Y.
• CONFIG_USB_HID-Build support for all USB HID devices. In menuconfig this
option is available under Device drivers > HID Devices > USB Human Interface Device (full HID) support.
By default, this option is Y.
• CONFIG_USB_GADGET-Build support for USB gadget. In menuconfig, this option
is available under
Device drivers > USB support > USB Gadget Support.
By default, this option is M.
• CONFIG_USB_GADGET_ARC-Build support for ARC USB gadget. In
menuconfig, this option is available under
Device drivers > USB support > USB Gadget Support > USB Peripheral Controller
(Freescale USB Device Controller).
By default, this option is Y.
• CONFIG_IMX_USB_CHARGER Freescale i.MX 6 USB Charger Detection
By default, this option is N.
• CONFIG_USB_OTG-OTG Support, support dual role with ID pin detection.
By default, this option is Y.
• CONFIG_MXC_OTG-USB OTG pin detect support for Freescale USB OTG
Controller
By default, this option is Y.
• CONFIG_USB_ETH-Build support for Ethernet gadget. In menuconfig, this option
is available under
Device drivers > USB support > USB Gadget Support > Ethernet Gadget (with CDC
Ethernet Support).
By default, this option is M.
• CONFIG_USB_ETH_RNDIS-Build support for Ethernet RNDIS protocol. In
menuconfig, this option is available under
Device drivers > USB support > USB Gadget Support > Ethernet Gadget (with CDC
Ethernet Support) > RNDIS support.
By default, this option is Y.
• CONFIG_USB_FILE_STORAGE-Build support for Mass Storage gadget. In
menuconfig, this option is available under
Device drivers > USB support > USB Gadget Support > File-backed Storage Gadget.
By default, this option is M.
• CONFIG_USB_G_SERIAL-Build support for ACM gadget. In menuconfig, this
option is available under
Device drivers > USB support > USB Gadget Support > Serial Gadget (with CDC
ACM support).
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. xcode 常见错误报错问题!

    1:module  file '/Users/shaka/Library/Developer/Xcode/DerivedData/ModuleCache/92IKIZLYISUT/Darwin-2OA ...

  2. 【Linux】Linux中常用操作命令

    博客已转移,请借一步说话,http://www.weixuehao.com/archives/25 Linux简介及Ubuntu安装 常见指令 系统管理命令 打包压缩相关命令 关机/重启机器 Linu ...

  3. Android中Input型输入设备驱动原理分析(一)

    转自:http://blog.csdn.net/eilianlau/article/details/6969361 话说Android中Event输入设备驱动原理分析还不如说Linux输入子系统呢,反 ...

  4. Hbase+ Phoenix搭建教程

    Hbase+ Phoenix搭建教程 一.Hbase简介 HBase是基于列存储.构建在HDFS上的分布式存储系统,其主要功能是存储海量结构化数据. HBase构建在HDFS之上,因此HBase也是通 ...

  5. JavaScript老梗之this对象

    Js中的this关键词貌似是初学者必经的坑 都不例外 我们经常听到其他人说 this对象谁调用指向谁 的确这是最容易理解的 但是我们可以更加深入的去探索下 加深印象以便更加灵活的适用它 这里不得不提下 ...

  6. zookeeper选举原理

    zookeeper的领导者选举和原子广播   目录:     1.工作原理概述     2.Fast Leader选举算法(领导者选举)     3.Leader与Follower同步数据(原子广播) ...

  7. 如何设置游戏分辨率(C++)

  8. HTML5 标签audio添加网页背景音乐代码

    <head> <meta http-equiv="Content-Type" name="viewport" content="wi ...

  9. Android入门(五):程序架构——MVC设计模式在Android中的应用

    刚刚接触编程的的人,可能会这样认为:只要代码写完了能够跑起来就算完工了.如果只是写一个小程序,“能够跑起来”这样的标准也就可以了,但是如果你是在公司进行程序的开发,那么仅仅让程序成功的跑起来是不行的, ...

  10. 【DP】POJ 2385

    题意:又是Bessie 这头牛在折腾,这回他喜欢吃苹果,于是在两棵苹果树下等着接苹果,但苹果不能落地后再接,吃的时间不算,假设他能拿得下所有苹果,但是这头牛太懒了[POJ另一道题目说它是头勤奋的奶牛, ...