I am trying to get the USB storage gadget working on the DM355.
I have enabled it in the kernel config:
*
* NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
*
*
* USB Gadget Support
*
Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
Debugging information files (USB_GADGET_DEBUG_FILES) [Y/n/?] y
USB Peripheral Controller
> 1. Inventra (M)HDRC USB Peripheral (USB_GADGET_MUSB_HDRC)
choice[1]: 1
USB Gadget Drivers
Gadget Zero (DEVELOPMENT) (USB_ZERO) [N/m/?] n
Ethernet Gadget (USB_ETH) [N/m/?] n
Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) [M/n/?] m
File-backed Storage Gadget (USB_FILE_STORAGE) [M/n/?] m
File-backed Storage Gadget testing version (USB_FILE_STORAGE_TEST) [N/y/?] n
Serial Gadget (USB_G_SERIAL) [N/m/?] n
*
I did a clean build.
This creates the module usb-storage.ko
But when I try to run this I see the following:
insmod usb-storage.ko file=/dev/mmcblk0p1
usb_storage: disagrees about version of symbol struct_module
insmod: error inserting 'usb-storage.ko': -1 Invalid module format
Any one know what is wrong?
Thanks
Brendan