Thx,Dave,Alan for helping me this periods.
Now,my dm320_udc can finish get_descriptor and set_address.
I can say i finish the first step.

But today,i met another problem:
At the gadget side,I just finished
 SETUP 80.06 v0305 i0409 l00ff(Descriptor type is STRING,the Index is 5
the language is 0x0409,the length is 0xff)
and i get the confirmation from the host side.then,i can an oops errors:
Unable to handle kernel NULL pointer dereference at virtual address
00000004
pgd = c0004000
[00000004] *pgd=00000000
Internal error: Oops: 17 [#1]
Modules linked in: fsg udc
CPU: 0
pc : [<bf0021b0>]    lr : [<bf002b9c>]    Not tainted
sp : c024dea8  ip : c024dec8  fp : c024dec4
r10: c0283af8  r9 : c024c000  r8 : c024df54
r7 : 00000000  r6 : 00000000  r5 : 40000013  r4 : c0897988
r3 : c08979a0  r2 : c08979a0  r1 : c024c000  r0 : c0897988
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  Segment kernel
Control: 5317F  Table: 01330000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc024c194)
Stack: (0xc024dea8 to 0xc024e000)
dea0:                   c0897800 40000013 00000000 0000000f c024dedc
c024dec8
dec0: bf002b9c bf00219c c07747a0 00000000 c024df00 c024dee0 c002101c
bf002aa4
dee0: c0283e04 0000000f c07747a0 c024df54 c024df54 c024df20 c024df04
c0021194
df00: c0020fc4 0000000f c0283e04 c02a7dc4 00000002 c024df50 c024df24
c0021328
df20: c00210ec 00989641 c024df54 ffffffff c024df88 c02a7dc4 00000002
00000001
df40: 0091bd78 c024dfa8 c024df54 c001fed8 c00212e4 00000000 0005317f
0005217f
df60: 60000013 c024c000 c0021d94 c02a7dc4 c02be108 0091bda8 41069263
0091bd78
df80: c024dfa8 c024dfac c024df9c c0021dd0 c0021ddc 60000013 ffffffff
c024dfc0
dfa0: c024dfac c0021e34 c0021da4 00053175 c028365c c024dfd0 c024dfc4
c001f030
dfc0: c0021df4 c024dff4 c024dfd4 c0008978 c001f010 c0008464 c0284548
00053175
dfe0: c02844dc c024fa84 00000000 c024dff8 00908094 c0008808 00000000
00000000
Backtrace:
Function entered at [<bf00218c>] from [<bf002b9c>]
 r7 = 0000000F  r6 = 00000000  r5 = 40000013  r4 = C0897800
Function entered at [<bf002a94>] from [<c002101c>]
 r5 = 00000000  r4 = C07747A0
Function entered at [<c0020fb4>] from [<c0021194>]
 r8 = C024DF54  r7 = C024DF54  r6 = C07747A0  r5 = 0000000F
 r4 = C0283E04
Function entered at [<c00210dc>] from [<c0021328>]
 r7 = 00000002  r6 = C02A7DC4  r5 = C0283E04  r4 = 0000000F
Function entered at [<c00212d4>] from [<c001fed8>]
Function entered at [<c0021d94>] from [<c0021e34>]
Function entered at [<c0021de4>] from [<c001f030>]
 r5 = C028365C  r4 = 00053175
Function entered at [<c001f000>] from [<c0008978>]
Function entered at [<c00087f8>] from [<00908094>]
Code: e2803018 e5902018 e1520003 12427028 (e5973004)
 <0>Kernel panic - not syncing: Aiee, killing interrupt handler!
I look up at my System.map,and find the error is at
_do_irq,_do_edge_irq.

The host debug mesg are:(2.6.11.10,using demsg -c)
hub 2-0:1.0: state 5 ports 3 chg 0000 evt 0008
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00010100 CSC
PPS
hub 2-0:1.0: port 3, status 0100, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x100
hub 1-0:1.0: state 5 ports 8 chg 0000 evt ff80
ehci_hcd 0000:00:03.3: GetStatus port 7 status 001002 POWER sig=se0  CSC
hub 1-0:1.0: port 7, status 0100, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 7: total 100ms stable 100ms status 0x100
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
hub 1-0:1.0: port 8, status 0000, change 0001, 12 Mb/s

....... 
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
hub 1-0:1.0: debounce: port 8: total 1500ms stable 0ms status 0x0
hub 1-0:1.0: connect-debounce failed, port 8 disabled
hub 1-0:1.0: state 5 ports 8 chg 0000 evt ff80
ehci_hcd 0000:00:03.3: GetStatus port 7 status 001803 POWER sig=j  CSC
CONNECT
hub 1-0:1.0: port 7, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 7: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:03.3: port 7 full speed --> companion
ehci_hcd 0000:00:03.3: GetStatus port 7 status 003801 POWER OWNER sig=j
CONNECT
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
hub 1-0:1.0: port 8, status 0000, change 0001, 12 Mb/s
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
ehci_hcd 0000:00:03.3: GetStatus port 8 status 003002 POWER OWNER
sig=se0  CSC
hub 1-0:1.0: debounce: port 8: total 1500ms stable 0ms status 0x0
hub 1-0:1.0: connect-debounce failed, port 8 disabled
hub 2-0:1.0: state 5 ports 3 chg 0000 evt 0008
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00010101 CSC
PPS CCS
hub 2-0:1.0: port 3, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00100103
PRSC PPS PES CCS
usb 2-3: new full speed USB device using ohci_hcd and address 109
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00100103
PRSC PPS PES CCS
usb 2-3: not running at top speed; connect to a high speed hub
usb 2-3: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-3: default language 0x0409
usb 2-3: Product: File-backed Storage Gadget
usb 2-3: SerialNumber: 3230204F6374
usb 2-3: hotplug
usb 2-3: adding 2-3:1.0 (config #1, interface 0)
usb 2-3:1.0: hotplug
usbserial_generic 2-3:1.0: usb_probe_interface
usbserial_generic 2-3:1.0: usb_probe_interface - got id
usb-storage 2-3:1.0: usb_probe_interface
usb-storage 2-3:1.0: usb_probe_interface - got id
usb-storage: USB Mass Storage device detected
usb-storage: -- associate_dev
usb-storage: Vendor: 0x0451, Product: 0x9002, Revision: 0x0000
usb-storage: Interface Subclass: 0x06, Protocol: 0x50
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
usb-storage: Vendor: Unknown,  Product: Unknown
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00
len=1
ohci_hcd 0000:00:03.0: urb dc80cd80 path 3 ep0in 82d60000 cc 8 -->
status -75
usb-storage: GetMaxLUN command result is -75, data is 106
usb-storage: *** thread sleeping.
scsi12 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 109
usb-storage: waiting for device to settle before scanning
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x6b L 36 F 128 Trg 0 LUN 0 CL
6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
usb-storage: command_abort called
usb-storage: usb_stor_stop_transport called
usb-storage: -- cancelling URB
usb-storage: Status code -104; transferred 0/36
usb-storage: -- transfer cancelled
usb-storage: Bulk data transfer result 0x4
usb-storage: -- command was aborted
usb-storage: usb_stor_Bulk_reset called
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00
len=0

Can u tell me what happened?





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to