I am using AM3715 and and 2.6.32 kernel, I have tested usb otg gadget (mass storage) by building as module & inserting the module as insmod g_file_storage.ko file=/dev/mmcblk0 stall=0.
I selected the usb gadget driver as built in kernel module:
--- USB Gadget Support
[ ] Debugging messages (DEVELOPMENT)
[ ] Debugging information files (DEVELOPMENT)
[ ] Debugging information files in debugfs (DEVELOPMENT)
(2) Maximum VBUS Power usage (2-500 mA)
USB Peripheral Controller (Inventra HDRC USB Peripheral (TI, ADI, ...)) --->
<*> USB Gadget Drivers (File-backed Storage Gadget) --->
File-backed Storage Gadget
[ ] File-backed Storage Gadget testing version
built the uImage, and booted the kernel, but usb gadget (AM3715) is not getting detected at host side.
Thanks Jitendra