Hi,
I am starting to work with USB devices
I tried to use net2280 over PCI card as mass
storage device on Linux
My working environment Fedora-2 with kernel
2.6.5-1.358 on i686
I put net2280 card in PCI slot and Hardware Browser
detect USB 2.0
I open debug messages in file_storage.c
file
I compiled net2280.ko and g_file_storage.ko
modules
I did all instructions as described in Chapter 3.
Using Linux USB
=> insmod net2280.ko
=> dd bs=1M count=64 if=/dev/zero
of=/root/data/backing_file
=> mkfs -t vfat
/root/data/backing_file
=> insmod g_file_storage.ko
file=/root/data/backing_file
After that I connected net2280 card to my Laptop
USB port
But unfortunatly my laptop (windows 2000) see USB
mass storage device, but can't start it
There are output generated on Linux
side:
Can somebody to help me undestand what is wrong
?
Thanks in advance
Dima's net2280 module
<7>g_file_storage gadget-lun0: open backing file: /root/data/backing_file <6>g_file_storage gadget: File-backed Storage Gadget, version: 21 March 2004 <6>g_file_storage gadget: Number of LUNs=1 <6>g_file_storage gadget-lun0: ro=0, file: /root/data/backing_file <7>g_file_storage gadget: transport=Bulk-only (x50) <7>g_file_storage gadget: protocol=Transparent SCSI (x06) <7>g_file_storage gadget: VendorID=x0525, ProductID=xa4a5, Release=x0301 <7>g_file_storage gadget: removable=0, stall=1, buflen=16384 <7>g_file_storage gadget: I/O thread pid: 29050 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 01 00 00 40 00 <7>g_file_storage gadget: get device descriptor <7>g_file_storage gadget: ep0-in, length 18: <7> 0: 12 01 00 02 00 00 00 40 25 05 a5 a4 01 03 01 02 <7> 10: 03 01 <7>g_file_storage gadget: disconnect or port reset <7>g_file_storage gadget-lun0: fdatasync -> 0 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 01 00 00 12 00 <7>g_file_storage gadget: get device descriptor <7>g_file_storage gadget: ep0-in, length 18: <7> 0: 12 01 00 02 00 00 00 40 25 05 a5 a4 01 03 01 02 <7> 10: 03 01 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 02 00 00 09 00 <7>g_file_storage gadget: get configuration descriptor <7>g_file_storage gadget: ep0-in, length 9: <7> 0: 09 02 20 00 01 01 00 c0 01 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 03 00 00 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 4: <7> 0: 04 03 09 04 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 03 03 09 04 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 26: <7> 0: 1a 03 33 00 32 00 33 00 31 00 32 00 30 00 34 00 <7> 10: 44 00 36 00 31 00 37 00 32 00 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 02 00 00 ff 00 <7>g_file_storage gadget: get configuration descriptor <7>g_file_storage gadget: ep0-in, length 32: <7> 0: 09 02 20 00 01 01 00 c0 01 09 04 00 00 02 08 06 <7> 10: 50 00 07 05 81 02 40 00 00 07 05 02 02 40 00 00 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 03 00 00 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 4: <7> 0: 04 03 09 04 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 02 03 09 04 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 54: <7> 0: 36 03 46 00 69 00 6c 00 65 00 2d 00 62 00 61 00 <7> 10: 63 00 6b 00 65 00 64 00 20 00 53 00 74 00 6f 00 <7> 20: 72 00 61 00 67 00 65 00 20 00 47 00 61 00 64 00 <7> 30: 67 00 65 00 74 00 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 03 00 00 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 4: <7> 0: 04 03 09 04 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 02 03 09 04 ff 00 <7>g_file_storage gadget: get string descriptor <7>g_file_storage gadget: ep0-in, length 54: <7> 0: 36 03 46 00 69 00 6c 00 65 00 2d 00 62 00 61 00 <7> 10: 63 00 6b 00 65 00 64 00 20 00 53 00 74 00 6f 00 <7> 20: 72 00 61 00 67 00 65 00 20 00 47 00 61 00 64 00 <7> 30: 67 00 65 00 74 00 <7>g_file_storage gadget: ep0-setup, lengt 8 7 : 00 00 00 20 7gfl_trg agt e eiedsrpo <7>g_file_storgegde:e0i,lnt 8 7 : 20 00 00 04 2 5a 40 30 2<> 0 0 1<7>g_file_storage gadget: ep0-setup, leng th 8: <7> 0: 80 06 00 02 00 00 09 00 <7>g_file_storage gadget: get configuration descriptor <7>g_file_storage gadget: ep0-in, length 9: <7> 0: 09 02 20 00 01 01 00 c0 01 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 02 00 00 20 00 <7>g_file_storage gadget: get configuration descriptor <7>g_file_storage gadget: ep0-in, length 32: <7> 0: 09 02 20 00 01 01 00 c0 01 09 04 00 00 02 08 06 <7> 10: 50 00 07 05 81 02 40 00 00 07 05 02 02 40 00 00 _esoaegde:e0i,lnt :<> 0 0 3ede:e0stp egh8 7 : 00 00 00 40 7gfl_trg agt e tigdsrpo ltrg agt p-n egh4 7 : 40 90 de:e0stp egh8 7 : 00 30 90 20 7gfl_trg agt e tigdsrpo fl_trg agt p-n egh2 7 : a0 gt p-eu,lnt :<> 0 8 60 30 41 0<>_iesoaegde:gtsrn ecitrat p-n egh2:<> 0 1 33 0 3 03 0 10 20 00 40 7 1: 40 60 10 70 3 0ggde:e0stp egh8 7 : 00 10 00 00 7gfl_trg agt e ofgrto <7>g_file_storage gadget stitrae0<>_iesoaegde:fl pe ofg# oegde-u0 dtsn >0<7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 01 00 00 12 00 <7>g_file_storage gadget: get device descriptor <7>g_file_storage gadget: ep0-in, length 18: <7> 0: 12 01 00 02 00 00 00 40 25 05 a5 a4 01 03 01 02 <7> 10: 03 01 <7>g_file_storage gadget-lun0: fdatasync -> 0 <7>g_file_storage gadget: reset config <7>g_file_storage gadget: reset interface <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 01 00 00 40 00 <7>g_file_storage gadget: get device descriptor <7>g_file_storage gadget: disconnect or port reset <7>g_file_storage gadget-lun0: fdatasync -> 0 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 01 00 00 12 00 <7>g_file_storage gadget: get device descriptor <7>g_file_storage gadget: ep0-in, length 18: <7> 0: 12 01 00 02 00 00 00 40 25 05 a5 a4 01 03 01 02 <7> 10: 03 01 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 80 06 00 02 00 00 09 00 <7>g_file_storage gadget: get configuration descriptor <7>g_file_storage gadget: ep0-in, length 9: <7> 0: 09 02 20 00 01 01 00 c0 01 <7>g_file_storage gadget: ep0-setup, length 8: <7> 0: 00 09 01 00 00 00 00 00 <7>g_file_storage gadget: set configuration <7>g_file_storage gadget: set interface 0 <6>g_file_storage gadget: full speed config #1 <7>g_file_storage gadget: bulk-out, length 0: <7>g_file_storage gadget: bulk_out_complete --> -108, 0/31 <7>g_file_storage gadget: disconnect or port reset agde:e0stp egh8 7 : 00 00 00 00 7gfl_trg agt e eiedsrpo <7>g_file_storage gadget: ep0-in, length 18: <7> 0: 12 01 00 02 00 00 00 40 25 05 a5 a4 01 03 01 02 <7> 10: 03 01 <7>g_file_toaegde:dsonc rpr ee 7gfl_trg agtln:faayc- ede:e0stp egh8 7 : 00 00 00 20 7gfl_trg agt e eiedsrpo Thanks
Dima |