4700 USB OTG: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
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 procfile.
{{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.}}

Revision as of 16:29, 27 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 procfile.


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.