Hi,
I am developing a USB otg device using the Montavista 2.6.18 kernel
provided by TI.
I find I cannot access host devices when in the driver mode is
configured for OTG. I can however work as a device.
What jumpers should I configure for OTG mode?
When I configure driver mode to host only it works fine.
When I try to configure it as a host using the sys file system I get the
following error:
echo host > /sys/devices/platform/musb_hdrc/mode
musb_platform_set_mode 400: FIXME: musb_platform_set_mode not
implemented
I tried compiling in the usb_procfs and changing the driver mode to host
by echo "H" > echo "H" > /proc/driver/musb_hdrc but this didn't work.
I have tried to using the opensource kernel but as far as I can see it
doesn't support USB OTG mode.
I have read on the forum that other people have got OTG to work on the
DM365. What am I missing?
I append a copy of the relevant parts of my kernel .config.
regards,
-shlomo
-----------------------
#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_ARCH_HAS_EHCI is not set
CONFIG_USB=y
CONFIG_USB_DEBUG=y
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
CONFIG_USB_SUSPEND=y
CONFIG_USB_OTG=y
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_SL811_HCD is not set
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_MUSB_SOC=y
#
# DaVinci 644x USB support
#
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_PERIPHERAL is not set
CONFIG_USB_MUSB_OTG=y
CONFIG_USB_GADGET_MUSB_HDRC=y
CONFIG_USB_MUSB_HDRC_HCD=y
# CONFIG_MUSB_PIO_ONLY is not set
# CONFIG_MUSB_RESERVE_BULK_EP is not set
# CONFIG_MUSB_RESERVE_ISO_EP is not set
# CONFIG_MUSB_SCHEDULE_INTR_EP is not set
# CONFIG_USB_INVENTRA_DMA is not set
CONFIG_USB_TI_CPPI_DMA=y
# CONFIG_USB_TI_CPPI41_DMA is not set
CONFIG_USB_MUSB_LOGLEVEL=1
#
# USB Gadget Support
#
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG_FILES is not set
CONFIG_USB_GADGET_SELECTED=y
# CONFIG_USB_GADGET_FSL_USB2 is not set
# CONFIG_USB_GADGET_NET2280 is not set
# CONFIG_USB_GADGET_PXA2XX is not set
# CONFIG_USB_GADGET_GOKU is not set
# CONFIG_USB_GADGET_LH7A40X is not set
# CONFIG_USB_GADGET_OMAP is not set
# CONFIG_USB_GADGET_ARC is not set
# CONFIG_USB_GADGET_AT91 is not set
# CONFIG_USB_GADGET_MPC8272 is not set
# CONFIG_USB_GADGET_DWC_OTG is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not set
# CONFIG_USB_GADGET_MPC885ADS is not set
# CONFIG_USB_GADGET_EP88XC is not set
CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
CONFIG_USB_GADGETFS=y
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set