Hi Community,
I want to use my device as a USB File Storage when I connect it to a Host PC. I follow the instructions given in www.linux-usb.org/gadget/file_storage.html
I have a problem with OMAP 3530" .
When I try to command
insmod /lib/modules/2.6.24_mvl5024-omap3530_evm/kernel/drivers/usb/gadget/g_file_storage.ko storage file=/mnt/backing_file stall=0
I get the message
error inserting '/lib/modules/2.6.24_mvl5024-omap3530_evm/kernel/drivers/usb/gadget/g_file_storage.ko': -1 No such device
Also, I tried
modprobe g_file_storage file=/mnt/backing_file stall=0
FATAL: Error inserting g_file_storage (/lib/modules/2.6.24_mvl5024-omap3530_evm/kernel/drivers/usb/gadget/g_file_storage.ko): No such device
The USB related configs are
#
# OMAP 343x high speed USB support
#
# CONFIG_USB_MUSB_HOST is not set
CONFIG_USB_MUSB_PERIPHERAL=y
# CONFIG_USB_MUSB_OTG is not set
CONFIG_USB_GADGET_MUSB_HDRC=y
# CONFIG_MUSB_PIO_ONLY is not set
CONFIG_USB_INVENTRA_DMA=y
# CONFIG_MUSB_USE_SYSTEM_DMA_RX is not set
# CONFIG_USB_TI_CPPI_DMA is not set
CONFIG_USB_MUSB_LOGLEVEL=0
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#
#
# USB Gadget Support
#
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG_FILES is not set
# CONFIG_USB_GADGET_DEBUG_FS is not set
CONFIG_USB_GADGET_SELECTED=y
# CONFIG_USB_GADGET_AMD5536UDC is not set
# CONFIG_USB_GADGET_ATMEL_USBA is not set
# 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_M66592 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_S3C2410 is not set
# CONFIG_USB_GADGET_AT91 is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not set
CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_GADGETFS is not set
CONFIG_USB_FILE_STORAGE=m
CONFIG_USB_FILE_STORAGE_TEST=y
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_MMC is not set
# CONFIG_NEW_LEDS is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
Also musb_hdrc is built-in.
If you inform me about how I can fix the problem, I will be very pleased
Thanks in advance