Hi,

after switching on and connecting the emtrion HICO.ARM9 demo board to a 
Windows 2000 PC in the device manager appears a "USB device" with a 
yellow exclamation mark. This might be o.k. because at this time no 
operating system is running on the demo board. After booting the kernel 
(with compiled in at91_udc driver), the yellow marked "USB device" still 
is present.
After loading the g_file_storage module the yellow marked "USB device" 
disappears. No other device appears!
When I try to rmmod g_file_storage the yellow marked "USB device" 
re-appears and the board seems to hang. Switching on debug messages shows 
a fast repeating
g_file_storage gadget: disconnect or port reset

Here is a (quite long) log what happens when connecting the gadget with a 
Linux host. To show more details, I added something like DBG("%s\n", 
__FUNCTION__) on top of every function. As noted earlier - the host PC 
does not recognise the attaching of the gadget, but it recognises the 
rmmod g_file_storage:

modprobe g_file_storage (with USB cable removed):

g_file_storage: fsg_init
g_file_storage: fsg_alloc
udc: usb_gadget_register_driver
g_file_storage: fsg_bind
g_file_storage: check_parameters
g_file_storage: open_backing_file
g_file_storage gadget-lun0: open backing file: /dev/mmcblk0p1
udc: at91_ep_alloc_request
udc: at91_ep_alloc_buffer
udc: at91_ep_alloc_buffer
udc: at91_ep_alloc_buffer
udc: at91_set_selfpowered
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 
2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mmcblk0p1
g_file_storage gadget: transport=Bulk-only (x50)
g_file_storage gadget: protocol=Transparent SCSI (x06)
g_file_storage gadget: VendorID=x0525, ProductID=xa4a5, Release=x0313
g_file_storage gadget: removable=0, stall=1, buflen=16384
g_file_storage gadget: I/O thread pid: 351
udc: pullup
udc: inactive
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: udc_reinit
udc: clk_off
udc: bound to g_file_storage
g_file_storage: fsg_main_thread
g_file_storage gadget: exception_in_progress
g_file_storage: sleep_thread

cat proc/driver/udc:

at91_udc: version 3 May 2006
vbus off, pullup enabled, self powered, gadget g_file_storage

(not clocked)

plug in cable:

udc: at91_vbus_session
udc: vbus on
udc: pullup
udc: active
udc: clk_on
udc: at91_udc_irq

[no reaction from host PC !!!]

cat proc/driver/udc:

at91_udc: version 3 May 2006
vbus present, pullup active, self powered, gadget g_file_storage

frame 00000: frame=0
glbstate 00:
faddr   100: fen fadd=0
imr    1200: endbusres rxrsm
isr    0100: rxsusp

ep0, maxpacket 8 out
csr 00000000 rxbytes=0 disabled DATA0 control OUT
        (queue empty)

remove USB cable:

udc: at91_vbus_irq
udc: at91_vbus_session
udc: vbus off
udc: pullup
udc: inactive
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: udc_reinit
udc: clk_off

plug in cable:

udc: at91_vbus_irq
udc: at91_vbus_session
udc: vbus on
udc: pullup
udc: active
udc: clk_on
udc: at91_udc_irq
udc: end bus reset
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: udc_reinit
g_file_storage gadget: suspend
udc: at91_udc_irq
g_file_storage gadget: resume

rmmod g_file_storage and switching off target after some seconds:

g_file_storage: fsg_cleanup
udc: usb_gadget_unregister_driver
udc: pullup
udc: inactive
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
g_file_storage gadget: disconnect or port reset
g_file_storage: raise_exception
udc: udc_reinit
udc: clk_off
udc: at91_udc_irq
udc: end bus reset
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: udc_reinit
udc: end bus reset
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
g_file_storage gadget: disconnect or port reset
g_file_storage: raise_exception
udc: udc_reinit
udc: end bus reset
udc: stop_activity
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
udc: nuke
g_file_storage gadget: disconnect or port reset
g_file_storage: raise_exception
udc: udc_reinit
udc: end bus reset
udc: stop_activity
udc: nuke
....
This would repeat forever

[host PC messages:]

hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100
ehci_hcd 0000:00:1d.7: GetStatus port 8 status 001803 POWER sig=j CSC 
CONNECT
hub 1-0:1.0: port 8, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:1d.7: port 8 full speed --> companion
ehci_hcd 0000:00:1d.7: GetStatus port 8 status 003801 POWER OWNER sig=j 
CONNECT
usb usb5: wakeup_rh (auto-start)
hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004
uhci_hcd 0000:00:1d.3: port 2 portsc 0093,00
hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 5-2: new full speed USB device using uhci_hcd and address 2
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
usb 5-2: new full speed USB device using uhci_hcd and address 3
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
usb 5-2: new full speed USB device using uhci_hcd and address 4
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device not accepting address 4, error -71
hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004
usb usb5: suspend_rh (auto-stop)

-- 
Regards,
Thomas Viehweger

-------------------------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to