qemu trouble...

John Seghers jseghers at cequint.com
Thu Jul 26 00:42:51 CEST 2007


Did you run "modprobe gadgetfs default_uid=<your uid>" before running QEMU?

I get continual kernel ring messages (dmesg, also reported in syslog) of:
dummy_udc dummy_udc: dequeued req deb73c40 from ep-c, len 4096, buf xxxxxxxx

Additionally, there are three lines output from QEMU's stdout/err:
s3c_udc_handle_packet: EP0 overrun
pcf_write: automatic Fast-charge enabled
s3c_udc_handle_packet: EP0 overrun

However, if I go ahead and configure the USB interface and connect via ssh,
it works:

ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.0
ssh root at 192.168.0.202

- John
PS: I found that the error output someone else was quoting,
"Warning: could not find USB gadgetfs" near the beginning of QEMU's run is
due to not having mounted /dev/gadget.


Tim Niemeyer wrote:
> Sent: Wednesday, July 25, 2007 6:29 AM
> To: community at lists.openmoko.org
> Subject: Re: qemu trouble...
> 
> Hello
> 
> I have also some problems with qemu.
> I have build everything with the MokoMakefile and it works really nice!
> ;-)
> 
> But when i want to use the gadged system to ssh into my moko, i get some
> trouble...
> I figured out that i had to recompile my default Debian Etch Kernel an did
> it. Now it seems to be all like in the wiki describes:
> http://wiki.openmoko.org/wiki/OpenMoko_under_QEMU#Setting_up_USB_connectio
> n
> 
> Has anyone an idea for me? Is something wrong?
> 
> But when i then do the "usb_add gadget:1" command the qemu repeats:
> 
> ##########################################################################
> #####
> gadget_read: event error: 4
> gadget_read: event error: 4
> gadget_read: event error: 4
> gadget_read: event error: 4
> gadget_read: event error: 4
> ##########################################################################
> #####
> 
> 
> In my Syslog i can see many entrys:
> 
> ##########################################################################
> #####
> dummy_udc dummy_udc: binding gadget driver 'gadgetfs'
> gadgetfs: bound to dummy_udc driver
> dummy_hcd dummy_hcd: port status 0x00010101 has changes
> dummy_hcd dummy_hcd: port status 0x00010101 has changes
> dummy_hcd dummy_hcd: port status 0x00100503 has changes
> usb 6-1: new high speed USB device using dummy_hcd and address 5
> gadgetfs: connected
> gadgetfs: disconnected
> dummy_hcd dummy_hcd: port status 0x00100503 has changes
> dummy_udc dummy_udc: set_address = 5
> gadgetfs: connected
> dummy_udc dummy_udc: enabled ep-a (ep3in-intr) maxpacket 16
> dummy_udc dummy_udc: disabled ep-a
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> usb 6-1: string descriptor 0 read error: -32
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> dummy_udc dummy_udc: stale req = dd372840
> dummy_hcd dummy_hcd: ep ep0 halted, urb e912d5c0
> usb 6-1: string descriptor 0 read error: -32
> usb 6-1: configuration #1 chosen from 1 choice
> gadgetfs: configuration #1
> ##########################################################################
> #####
> 
> 
> This seems to repeat till i kill qemu and see this in my syslog:
> 
> ##########################################################################
> #####
> BUG: warning at drivers/usb/gadget/dummy_hcd.c:49 8/dummy_free_request()
>  [<f8cf156c>] dummy_free_request+0x41/0x4e [dummy _hcd]
>  [<f8cf7413>] gadgetfs_unbind+0x47/0x50 [gadgetfs ]
>  [<f8cf13a6>] usb_gadget_unregister_driver+0x79/0 xd2 [dummy_hcd]
>  [<f8cf721f>] dev_release+0x11/0x44 [gadgetfs]
>  [<c015ae41>] __fput+0x8a/0x13f
>  [<c01589aa>] filp_close+0x4e/0x54
>  [<c011ead3>] put_files_struct+0x65/0xa7
>  [<c011fa43>] do_exit+0x1d1/0x71b
>  [<c0120003>] sys_exit_group+0x0/0xd
>  [<c0127a6d>] get_signal_to_deliver+0x395/0x3bc
>  [<c01023a6>] do_notify_resume+0x71/0x5d7
>  [<c0126fc1>] group_send_sig_info+0x4e/0x56
>  [<c0117778>] default_wake_function+0x0/0xc
>  [<c0124657>] do_gettimeofday+0x31/0xce
>  [<c0131ffc>] sys_futex+0xdc/0xf1
>  [<c0102d0a>] work_notifysig+0x13/0x19
> dummy_hcd dummy_hcd: port status 0x00010100 has c hanges
> dummy_hcd dummy_hcd: port status 0x00010100 has c hanges
> usb 6-1: USB disconnect, address 5
> ##########################################################################
> #####
> 
> Thanks...
> 
> Tim Niemeyer





More information about the community mailing list