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:
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