2009-12-15 00:34:38     How to use usb as a device?

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2009-12-15 00:34:38     How to use usb as a device?

gladys liu (AFGHANISTAN)

Message: 83492   

 

i want to use bf527-ezkit as a usb device.

 

whenever it plug to PC ,PC can regnize it as a usb device.

 

i've build the kernel as below

 

[Linux Kernel Configuration] -→ [Device Drivers] -→ [USB support]

 

<*> Support for Host-side USB

[*]   USB device filesystem

[*]   USB device class-devices (DEPRECATED)

<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)

---   Blackfin BF54x high speed USB support

       Driver Mode (USB Peripheral (gadget stack))  --->

[*]   Disable DMA (always use PIO)

(0)   Logging Level (0 - none / 3 - annoying / ... )

 

[Linux Kernel Configuration] -→ [Device Drivers] -→ [USB support] -→ [USB Gadget Support]

 

<*> Support for USB Gadgets

    USB Peripheral Controller (Inventra HDRC USB Peripheral (TI, ADI, ...))  --->

 

[Linux Kernel Configuration] -→ [Device Drivers] -→ [USB support] -→ [USB Gadget Support]

 

<M> Support for USB Gadgets

<M>   File-backed Storage Gadget

[*]     File-backed Storage Gadget testing version

 

 

when the kernel load to the board

 

it as below

 

root:/> ls lib/modules/2.6.22.19-ADI-2008R1.5-svn/kernel/drivers/usb/gadget/

g_file_storage.ko

root:/> ls

bin   etc   init  mnt   root  sys   usr

dev   home  lib   proc  sbin  tmp   var

root:/> dd if=/dev/zero of=fsg.block bs=1M count=16

16+0 records in

16+0 records out

root:/> ls

bin        fsg.block  lib        root       tmp

dev        home       mnt        sbin       usr

etc        init       proc       sys        var

root:/> modprobe g_file_storage file=/fsg.block stall=0

insmod: cannot insert '/lib/modules//2.6.22.19-ADI-2008R1.5-svn/kernel/drivers/u

sb/gadget/g_file_storage.ko': No such device (-1): No such device

modprobe: failed to load module g_file_storage

 

i'm wondering how could i make it useful?

QuoteReplyEditDelete

 

 

2009-12-15 06:49:06     Re: How to use usb as a device?

Ian Jeffray (UNITED KINGDOM)

Message: 83529   

 

(0)   Logging Level (0 - none / 3 - annoying / ... )

 

 

Maybe try the very basics of helping yourself debug this, first?

Attachments

    Outcomes