Project

General

Profile

Using USB port

The AM335x USB ports switch into On the go (OTG) mode when a device is unplugged from it. This means that when you reinsert the usb device it will not be detected. See link below:
http://processors.wiki.ti.com/index.php/UsbgeneralpageLinux-v3p1#Device_removal_from_and_reconnect_to_MUSB_OTG_port

To get around this, a udev rule can be added that automatically applies power to the bus after disconnect so that the port is ready for the device to be reinserted. See the attached scripts 99-hokey-pokey.rules and hokey-pokey.sh. These files may already exist in our reference filesystem, but they should be replaced with these updated versions.

Note: The provided rule and script only reset port 2 which is the HOST port on our devkit. If your baseboard has both usb ports setup for HOST mode then you will need to add an extra rule for musb-hdrc.0 and create a copy of the hokey-pokey.sh script that touches musb-hdrc.0.

Go to top
Add picture from clipboard (Maximum size: 1 GB)