This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gadget support omap3evm

hello

i have install g_file_storage.ko for gadget support in mistral omap3evm linux-2.6.22.18 with configuration from documents and successfully installed.But host pc cannot detect the target. while installing the driver following messages are displayed.

[root@OMAP3EVM /mnt]# insmod g_file~1.ko file=/dev/mmcblk0 stall=1
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mmcblk0

----------------------------------------------------------------------

[root@OMAP3EVM /mnt]# insmod g_file~1.ko file=/dev/mmcblk0p1 stall=0
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mmcblk0p1

plz give any suggestion to this issue

 

regards

satheesh

  • Do you have a properly formatted SD card that the host would be able to recognize? You may also want to try another host PC or port.

    The kernel version you are using is quite old, I assume you are working with SDK 1.0.2? I had tried this capability before and gotten it to work, though there are far newer Linux support packages available for the OMAP3 the latest being 3.x here.

  • Satheesh,

    Make sure you have formatted the SD card being used. Also try to see if you can access the SD card content locally.

    You could use the command mount /dev/mmcblk0p1 /mnt and try to access the content locally. Also to make sure the card/setup is fine, you could use a card reader and connect to PC and verify whether your card gets detected and you can access it.

    Thanks,

    Prathap.

  • You are right. The kernel we are using is 2.6.22 from the SDK1.0.2.

    I tried insmoding the g_file_storage.ko with a vfat formated device file, but still, no luck. Windows xp is showing "unknown device".

    insmod g_file_storage.ko file=vfat_file stall=n

    insmod g_file_storage.ko file=/dev/mmcblk0 stall=0

    Unfortunately, for the time being, I need to get usb to work with this kernel itself.Is the process easy with newer kenel. Here is the .config of the kenel build. Is it ok for usb gadget.

    .config during kernel build .

    #
    # 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_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 is not set
    # CONFIG_USB_G_SERIAL is not set
    # CONFIG_USB_MIDI_GADGET is not set

    thanks and regards

    Sateesh