4700 USB OTG: Difference between revisions

From embeddedTS Manuals
(Created page with "This board features USB OTG which allows you to use the USB port as either a host, or a device. Much of the USB OTG framework is described [http://www.linux-usb.org/gadget/ here...")
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This board features USB OTG which allows you to use the USB port as either a host, or a device.  Much of the USB OTG framework is described [http://www.linux-usb.org/gadget/ here].  You will need to [#Kernel Compile Guide|recompile your kernel] to include these modules.
This board features USB OTG which allows you to use the USB port as either a host, or a device.  Much of the USB OTG framework is described [http://www.linux-usb.org/gadget/ here].  You will need to [[#Kernel Compile Guide|recompile your kernel]] to include these modules.
 
The OTG driver from Marvell has a caveat attached to it, whenever the OTG port is to be used as a host the following command needs to be issued after the device is plugged in:
<source lang=bash>
echo 1 > /proc/driver/otg
</source>
 
Device mode of OTG will function without having to write to the above proc file.
 
 
{{Note|When paired with the TS-8160 the OTG port is exposed as the lower USB host A port.  Because of this the above command needs to be run whenever a USB device is attached to the port in order to tell the OTG driver to enter host mode and communicate with the USB device.}}

Latest revision as of 16:50, 28 October 2011

This board features USB OTG which allows you to use the USB port as either a host, or a device. Much of the USB OTG framework is described here. You will need to recompile your kernel to include these modules.

The OTG driver from Marvell has a caveat attached to it, whenever the OTG port is to be used as a host the following command needs to be issued after the device is plugged in:

echo 1 > /proc/driver/otg

Device mode of OTG will function without having to write to the above proc file.


Note: When paired with the TS-8160 the OTG port is exposed as the lower USB host A port. Because of this the above command needs to be run whenever a USB device is attached to the port in order to tell the OTG driver to enter host mode and communicate with the USB device.