Just a follow-up to my previous email:

 

I solved the problem of different versions. Now I can load the
g_file_storage.ko module, and I'm getting the following messages:

 

insmod g_file_storage.ko file=backing_file

 

g_file_storage udc: File-backed Storage Gadget, version: 20 October 2004

g_file_storage udc: Number of LUNs=1

g_file_storage udc-lun0: ro=0, file: /root/backing_file

usb 1-1: new high speed USB device using dummy_hcd and address 3

g_file_storage udc: high speed config #1

scsi1 : SCSI emulation for USB Mass Storage devices

  Vendor: Linux     Model: File-Stor Gadget  Rev: 0302

  Type:   Direct-Access                      ANSI SCSI revision: 02

SCSI device sda: 8192 512-byte hdwr sectors (4 MB)

sda: assuming drive cache: write through

SCSI device sda: 8192 512-byte hdwr sectors (4 MB)

sda: assuming drive cache: write through

 sda: sda1

Attached scsi disk sda at scsi1, channel 0, id 0, lun 0

 

However, when I connect/disconnect the USB cable to/from the PC, nothing
happens.

 

What is missing?

 

Thanks,

Kim

 

________________________________

From:
[EMAIL PROTECTED]
idsp.com
[mailto:[EMAIL PROTECTED]
x.davincidsp.com] On Behalf Of Kim Klaiman
Sent: November 5, 2007 1:01 PM
To: [email protected]
Subject: USB slave support

 

Hello all,

 

I'm trying to enable the USB slave support. I changed the kernel
configuration and the relevant part of my .config file looks like this:

 

#

# USB support

#

CONFIG_USB=y

# CONFIG_USB_DEBUG is not set

 

#

# Miscellaneous USB options

#

CONFIG_USB_DEVICEFS=y

# CONFIG_USB_BANDWIDTH is not set

# CONFIG_USB_DYNAMIC_MINORS is not set

# CONFIG_USB_OTG is not set

CONFIG_USB_ARCH_HAS_HCD=y

# CONFIG_USB_ARCH_HAS_OHCI is not set

 

#

# USB Host Controller Drivers

#

# 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=y

# CONFIG_USB_MUSB_OTG is not set

# CONFIG_USB_GADGET_MUSB_HDRC is not set

CONFIG_USB_INVENTRA_FIFO=y

CONFIG_USB_INVENTRA_STATIC_CONFIG=y

CONFIG_USB_INVENTRA_HCD_LOGGING=0

 

#

# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be
needed; see USB_STORAGE Help for more information

#

CONFIG_USB_STORAGE=m

# CONFIG_USB_STORAGE_DEBUG is not set

# CONFIG_USB_STORAGE_RW_DETECT is not set

# CONFIG_USB_STORAGE_DATAFAB is not set

# CONFIG_USB_STORAGE_FREECOM is not set

# CONFIG_USB_STORAGE_ISD200 is not set

# CONFIG_USB_STORAGE_DPCM is not set

# CONFIG_USB_STORAGE_HP8200e is not set

# CONFIG_USB_STORAGE_SDDR09 is not set

# CONFIG_USB_STORAGE_SDDR55 is not set

# CONFIG_USB_STORAGE_JUMPSHOT is not set

 

#

# USB Input Devices

#

CONFIG_USB_HID=m

CONFIG_USB_HIDINPUT=y

# CONFIG_HID_FF is not set

# CONFIG_USB_HIDDEV is not set

 

 

#

# USB Gadget Support

#

CONFIG_USB_GADGET=y

# CONFIG_USB_GADGET_DEBUG_FILES is not set

# CONFIG_USB_GADGET_NET2280 is not set

# CONFIG_USB_GADGET_PXA2XX is not set

# CONFIG_USB_GADGET_PXA27X is not set

# CONFIG_USB_GADGET_GOKU is not set

# CONFIG_USB_GADGET_SA1100 is not set

# CONFIG_USB_GADGET_LH7A40X is not set

CONFIG_USB_GADGET_DUMMY_HCD=y

CONFIG_USB_DUMMY_HCD=y

# CONFIG_USB_GADGET_OMAP is not set

# CONFIG_USB_GADGET_MPC885ADS is not set

# CONFIG_USB_GADGET_MPC8272ADS is not set

# CONFIG_USB_GADGET_MUSBHSFC 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 

 

I rebuild the kernel, copied the g_file_storage.ko into my file system,
but when trying to insert it with "insmod g_file_storage.ko
file=/dev/had" command, I'm getting the following errors:

 

g_file_storage: disagrees about version of symbol
usb_gadget_register_driver

g_file_storage: Unknown symbol usb_gadget_register_driver

g_file_storage: disagrees about version of symbol
usb_gadget_unregister_driver

g_file_storage: Unknown symbol usb_gadget_unregister_driver

 

What's wrong?

 

Thanks,

Kim Klaiman

 

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to