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.

how to configure dm3730' nanflash as a U-Disk

Other Parts Discussed in Thread: DM3730

hello! i comnfure my dm3730 board as gadget with kernel 2.6.32  following the UserGuideUsbDriver PSP 03.00.00.05 (http://processors.wiki.ti.com/index.php/UserGuideUsbDriver_PSP_03.00.00.05),  and then do the following

root@omap3evm:/work/usb# chmod 777 g_file_storage.ko
root@omap3evm:/work/usb# insmod g_file_storage.ko  file=/dev/mtdblock4 stall=0 r
emovable=1
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: /dev/mtdblock4

when the 3730 board is disconnected from pc , the terminal show musb g_file_storage gadget disconnected

root@omap3evm:/work/usb# musb g_file_storage gadget disconnected.

the windows pc show the device is not identified,;I have captured  the data between pc and dm3730   ;

 19                                   CMD    00 00 00 00  00 00        TEST UNIT READY   586ms         5.1.0(9)     2012/07/  30  15:32:14.783  unknown 

  16.1                             31  OUT    55 53 42 43  00 8e 4f 89  USBC..O.          233us         6.1.0(9)     2012/07/30  15:32:14.783  unknown      
                                              00 00 00 00  00 00 06 00  ........                        6.1.8                                               
                                              00 00 00 00  00 00 00 00  ........                        6.1.16                                              
                                              00 00 00 00  00 00 00     .......                         6.1.24                                              
  16.2                             13  IN     55 53 42 53  00 8e 4f 89  USBS..O.          372us         7.1.0(9)     2012/07/30  15:32:14.783  unknown      
                                              00 00 00 00  01           .....                           7.1.8                                               
  16.1                             31  OUT    55 53 42 43  00 8e 4f 89  USBC..O.          345us         8.1.0(9)     2012/07/30  15:32:14.783  unknown      
                                              12 00 00 00  80 00 0c 03  ........                        8.1.8                                               
                                              00 00 00 12  00 00 00 00  ........                        8.1.16                                              
                                              00 00 00 00  00 00 00     .......                         8.1.24                                              
  16.2                             18  IN     70 00 02 00  00 00 00 0a  p.......          966us         9.1.0(9)     2012/07/30  15:32:14.783  unknown      
                                              00 00 00 00  3a 00 00 00  ....:...                        9.1.8                                               
                                              00 00                     ..                              9.1.16                                              
  16.2                             13  IN     55 53 42 53  00 8e 4f 89  USBS..O.          370us        10.1.0(9)     2012/07/30  15:32:14.783  unknown      
                                              00 00 00 00  00           .....                          10.1.8                                               
  19                               18  SENSE  70 00 02 00  00 00 00 0a  no media            9us         5.2.0        2012/07/30  15:32:14.783               
                                              00 00 00 00  3a 00 00 00                                  5.2.8                                               
                                              00 00                                                     5.2.16                                              
  13.1                              1  IN     02                        .                 8.5sc        59.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              93us        60.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                              4  IN     03 05 00 00               ....               23us        60.2.0        2012/07/30  15:32:23.317               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS         14us        61.1.0        2012/07/30  15:32:23.317  usbhub       
  13.0                              4  IN     01 01 01 00               ...  231us        61.2.0        2012/07/30  15:32:23.317

 11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              58us        62.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                              4  IN     03 05 00 00               ....               17us        62.2.0        2012/07/30  15:32:23.317               
  13.0                                 CTL    23 01 10 00  01 00 00 00  CLEAR FEATURE      13us        63.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS             423us        64.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                              4  IN     03 05 00 00               ....               19us        64.2.0        2012/07/30  15:32:23.317               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS         13us        65.1.0        2012/07/30  15:32:23.317  usbhub       
  13.0                              4  IN     01 01 00 00               ....              193us        65.2.0        2012/07/30  15:32:23.317               
  13.1                              1  IN     02                        .                 2.8ms        66.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              80us        67.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                              4  IN     03 05 00 00               ....               18us        67.2.0        2012/07/30  15:32:23.317               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS         13us        68.1.0        2012/07/30  15:32:23.317  usbhub       
  13.0                              4  IN     01 01 01 00               ....              261us        68.2.0        2012/07/30  15:32:23.317               
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              68us        69.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                              4  IN     03 05 00 00               ....               18us        69.2.0        2012/07/30  15:32:23.317               
  13.0                                 CTL    23 01 10 00  01 00 00 00  CLEAR FEATURE      14us        70.1.0        2012/07/30  15:32:23.317  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS             176ms        71.1.0        2012/07/30  15:32:23.504  usbhub       
  11.0                              4  IN     03 05 00 00               ....               29us        71.2.0        2012/07/30  15:32:23.504               
  13.0                                 CTL    23 03 04 00  01 00 00 00  SET FEATURE        14us        72.1.0        2012/07/30  15:32:23.504  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS             215us        73.1.0        2012/07/30  15:32:23.504  usbhub       
  11.0                              4  IN     03 05 00 00               ....               14us        73.2.0        2012/07/30  15:32:23.504               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS          9us        74.1.0        2012/07/30  15:32:23.504  usbhub       
  13.0                              4  IN     11 01 00 00               ....              202us        74.2.0        2012/07/30  15:32:23.504               
  13.1                              1  IN     02                        .                  14ms        75.1.0        2012/07/30  15:32:23.504  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              82us        76.1.0        2012/07/30  15:32:23.504  usbhub       
  11.0                              4  IN     03 05 00 00               ....               18us        76.2.0        2012/07/30  15:32:23.504               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS         14us        77.1.0        2012/07/30  15:32:23.504  usbhub       
  13.0                              4  IN     03 05 10 00               ....              251us        77.2.0        2012/07/30  15:32:23.520               
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS              49us        78.1.0        2012/07/30  15:32:23.520  usbhub       
  11.0                              4  IN     03 05 00 00               ....               17us        78.2.0        2012/07/30  15:32:23.520               
  13.0                                 CTL    23 01 14 00  01 00 00 00  CLEAR FEATURE      13us        79.1.0        2012/07/30  15:32:23.520  usbhub       
  11.0                                 CTL    a3 00 00 00  01 00 04 00  CLASS             194us        80.1.0        2012/07/30  15:32:23.520  usbhub       
  11.0                              4  IN     03 05 00 00               ....               13us        80.2.0        2012/07/30  15:32:23.520               
  13.0                                 CTL    a3 00 00 00  01 00 04 00  GET STATUS         10us        81.1.0        2012/07/30  15:32:23.520  usbhub       
  13.0                              4  IN     03 05 00 00               ....              137us