2011-08-24 05:22:20     BF526 USB Gadget config

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

2011-08-24 05:22:20     BF526 USB Gadget config

Unmai rr (INDIA)

Message: 103108   

 

Hi,

 

We are using a Custom BF526 based board and trying to configure USB peripheral mode.  As fas as the menu config is concerned we have selected the zero gadget, serial and backed file storage as modules.  When we try to install any of  those modules, we are getting a message as "No such device found".

 

Please help.

 

 

 

-Unmai.

QuoteReplyEditDelete

 

 

2011-08-24 05:36:02     Re: BF526 USB Gadget config

Aaron Wu (CHINA)

Message: 103109   

 

What's your software version? are you using the 2010R1 release? Please attach your whole log rather than the "No such device found", if you compile them into the kernel instead of the building as module do you get the same ouput?

QuoteReplyEditDelete

 

 

2011-08-26 05:31:31     Re: BF526 USB Gadget config

Unmai rr (INDIA)

Message: 103158   

 

Yes, Am using 2010R1 release.  I tried to compile into the kernel, it got complied and we could see net2272 and g_zero folders in sys/module.  But couldnot identify the device on the host machine.  Can you please explain the sequence of steps - from make meuconfig to identifying the device on the host machine.

 

I tried doing the same in EZ-Kit  with Gadge Zero and the response is same.  Herewith I have attached the log file we got with BF526 EZkit.

 

Thanks,

 

-Unmai

 

log

QuoteReplyEditDelete

 

 

2011-09-06 02:03:01     Re: BF526 USB Gadget modprobe

Unmai rr (INDIA)

Message: 103283   

 

Can somebody say why modprobe doesnot work?  Am getting error as "Could not load g_ether.  No such such device"

 

 

 

-Unmai.

QuoteReplyEditDelete

 

 

2011-09-07 05:20:47     Re: BF526 USB Gadget config

Aaron Wu (CHINA)

Message: 103320   

 

Please check if this will help:   docs.blackfin.uclinux.org/doku.php?id=linux-kernel:usb-gadget. We have regular test for USB gadget.

QuoteReplyEditDelete

 

 

2011-09-13 01:35:43     BF526 USB Gadget depends on SDRAM size??

Unmai rr (INDIA)

Message: 103368   

 

Thanks Aaron.  I could install the modules and I could see it on the PC.  But am finding problem in mounting the 'usbfs' - first there was no /proc/bus/usb in my hostmachine.  Then  I got some workarounds from net and made it visible.  But I couldnot run the mount command and it is saying 'usbfs - unknown file system' .  It is something to do with my kernel of the host machine.

 

 

 

I am facing one other problem.  The USB gadget installation and identification by the host machine is being done only on a card with 64MB SDRAM memory.  Am trying with another card with 32MB SDRAM - Modprobe is successful.  But after connecting to PC am not getting any message both on my board and Host machine.   Is these modules has to do something with the size of memory.  If so, can I have the control?

 

 

 

-Unmai.

QuoteReplyEditDelete

 

 

2011-09-13 02:01:28     Re: BF526 USB Gadget depends on SDRAM size??

Sonic Zhang (CHINA)

Message: 103369   

 

Aaron is out of office today.

 

Which device do you use as the backing storage?

 

If it the RAM file system, please check how much memory is free on the 32M board before and after you create the backing storage file.

QuoteReplyEditDelete

 

 

2011-09-13 03:08:35     Re: BF526 USB Gadget depends on SDRAM size??

Unmai rr (INDIA)

Message: 103370   

 

Hi Zhang,

 

Thanks for the response.  Here is what I got once my kernel booted up and installing the g_file_storage module.

 

root:/> free

              total         used         free       shared      buffers

  Mem:        29656        11952        17704            0            0

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

16+0 records in

16+0 records out

root:/> free

              total         used         free       shared      buffers

  Mem:        29656        15940        13716            0            0

root:/> modprobe g_file_storage

g_file_storage gadget: no file given for LUN0

modprobe: failed to load module g_file_storage (kernel/drivers/usb/gadget/g_file_storage.ko): Invalid argument

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

g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

g_file_storage gadget: Number of LUNs=1

g_file_storage gadget-lun0: ro=0, file: /fsg.block

root:/>

root:/> free

              total         used         free       shared      buffers

  Mem:        29656        16020        13636            0            0

 

 

 

-Unmai.

QuoteReplyEditDelete

 

 

2011-09-14 01:22:35     Re: BF526 USB Gadget depends on SDRAM size??

Unmai rr (INDIA)

Message: 103379   

 

Hi,

 

In continuation to my query on SDRAM size, Please check the below log marked in red text.  Why is this happening?  What did I miss in the configuration?

 

 

 

I have attached the full log file.

 

Jan  1 00:00:01 blackfin user.info kernel: brd: module loaded

Jan  1 00:00:01 blackfin user.info kernel: Freeing unused kernel memory: 6888k freed

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: adding config #3 'source/sink'/002ae3d0

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: adding 'source/sink'/018a27a0 to config 'source/sink'/002ae3d0

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: dual speed source/sink: IN/ep5in, OUT/ep6out

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: cfg 3/002ae3d0 speeds: high full

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget:   interface 0 = source/sink/018a27a0

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: adding config #2 'loopback'/002ae35c

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: adding 'loopback'/018a2800 to config 'loopback'/002ae35c

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: dual speed loopback: IN/ep5in, OUT/ep6out

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget: cfg 2/002ae35c speeds: high full

Jan  1 00:00:53 blackfin user.debug kernel: zero gadget:   interface 0 = loopback/018a2800

Jan  1 00:00:53 blackfin user.info kernel: zero gadget: Gadget Zero, version: Cinco de Mayo 2008

Jan  1 00:56:10 blackfin user.err kernel: musb_g_ep0_irq 676: SetupEnd came in a wrong ep0stage out/status

Jan  1 00:56:10 blackfin user.err kernel: musb_g_ep0_irq 676: SetupEnd came in a wrong ep0stage out/status

Jan  1 00:56:10 blackfin user.err kernel: musb_g_ep0_irq 768: SETUP packet len 0 != 8 ?

Jan  1 00:56:10 blackfin user.err kernel: musb_g_ep0_irq 676: SetupEnd came in a wrong ep0stage out/status

Jan  1 00:56:10 blackfin user.debug kernel: zero gadget: setup complete --> 0, 64/98

Jan  1 00:56:10 blackfin user.info kernel: zero gadget: high speed config #3: source/sink

Jan  1 00:56:10 blackfin user.debug kernel: zero gadget: source/sink enabled

Jan  1 01:30:32 blackfin user.debug kernel: zero gadget: suspend

Jan  1 01:30:32 blackfin user.debug kernel: zero gadget: zero_suspend

Jan  1 01:30:32 blackfin user.debug kernel: zero gadget: reset config

Jan  1 01:31:32 blackfin user.debug kernel: zero gadget: unbind function 'source/sink'/018a27a0

Jan  1 01:31:32 blackfin user.debug kernel: zero gadget: unbind function 'loopback'/018a2800

 

 

 

-Unmai

 

tm_log

Attachments

Outcomes