[ELDK] USB on Kilauea

Dave Rensberger David.Rensberger at ambientcorp.com
Fri Aug 15 00:38:30 CEST 2008


Do you guys know which version of the driver you tested?

I'm using "dwc_otg: version 2.60a 22-NOV-2006", which sort of works now
that I have the jumpers set properly, but seems to have a lot of
problems.   Any time I try to sync or umount(umount probably just fails
because it does a sync) the flash disk, Linux hangs for about 30 seconds
and then produces an IO error followed by the "kernel oops" that I've
attached below.  I think this is probably a driver, rather than a
hardware problem, because I've tried several different types of USB
flash disks on 2 different Kilauea boards, as well as on our own
hardware (which is based on the Kilauea design).   I see the same
problem regardless of which CPU board or usb flash disk I try.

--Dave   

usb 1-1: device descriptor read/64, error -110
Unable to handle kernel paging request for data at address 0x00000000
Faulting instruction address: 0xc019bc30
Oops: Kernel access of bad area, sig: 11 [#1]
Kilauea
Modules linked in:
NIP: c019bc30 LR: c01a5e38 CTR: c01a5d8c
REGS: cfb03cb0 TRAP: 0300   Not tainted  (2.6.25.5)
MSR: 00021030 <ME,IR,DR>  CR: 44004082  XER: 0000005f
DEAR: 00000000, ESR: 00000000
TASK = cfaa4000[1051] 'usb-storage' THREAD: cfb02000
GPR00: 50000000 cfb03d60 cfaa4000 cf8f5080 00000000 0000000d c0188dac
00000021
GPR08: 00000001 40000000 cfb10014 cf96d180 44004084 00000000 c02bfd14
c02c32e4
GPR16: 00000002 c0350000 00000032 00000000 80000080 cfabecec cfabec60
00000002
GPR24: ffffff94 00000000 cf98f6c0 cf98f600 00021030 cfb10000 cfafe340
00000000
NIP [c019bc30] dwc_otg_hc_halt+0x4/0x154
LR [c01a5e38] dwc_otg_hcd_urb_dequeue+0xac/0x168
Call Trace:
[cfb03d60] [c01a5dfc] dwc_otg_hcd_urb_dequeue+0x70/0x168 (unreliable)
[cfb03d90] [c018666c] unlink1+0xb0/0xcc
[cfb03db0] [c01871e0] usb_hcd_flush_endpoint+0x5c/0x10c
[cfb03dd0] [c0188574] usb_disable_endpoint+0x70/0x90
[cfb03de0] [c0182928] ep0_reinit+0x1c/0x48
[cfb03e00] [c01832a4] hub_port_init+0x3d8/0x64c
[cfb03e60] [c0183694] usb_reset_device+0xe8/0x41c
[cfb03ec0] [c0183aa4] usb_reset_composite_device+0xdc/0x118
[cfb03ee0] [c019525c] usb_stor_port_reset+0x4c/0x94
[cfb03f00] [c01964ac] usb_stor_invoke_transport+0x218/0x288
[cfb03f70] [c0195044] usb_stor_transparent_scsi_command+0x10/0x20
[cfb03f80] [c0196bac] usb_stor_control_thread+0x188/0x25c
[cfb03fd0] [c0034c24] kthread+0x48/0x84
[cfb03ff0] [c000d8f4] kernel_thread+0x44/0x60
Instruction dump:
4be84045 3bff0001 801e0040 5400073e 7f80f800 419dffc0 80010024 7c0803a6
bba10014 38210020 4e800020 8163000c <89240000> 5529103a 7d295a14
81490008
---[ end trace c7d18beacdc7036e ]---


-----Original Message-----
From: Stefan Roese [mailto:sr at denx.de] 
Sent: Thursday, August 14, 2008 2:12 PM
To: eldk at lists.denx.de
Cc: Dave Rensberger; wd at denx.de
Subject: Re: [ELDK] USB on Kilauea

Dave,

On Thursday 14 August 2008, Dave Rensberger wrote:
> Do you remember if you had to do anything out of the ordinary to force
> the OTG controller on the Kilauea to act as a host, rather than a
> device, or was that automatically taken care of by the HNP protocol
> and/or having the right cable?

IIRC, then there is a jumper on the Kilauea to configure the USB ID pin
(pull 
to GND). This could be worth a try. Should be documented in the Kilauea
users 
manual.

And I suggest that you don't hotplug the USB stick but have it connected

before powering and booting the board.

BTW: Which board revision do you have? There have been issues with
earlier 
board revisions. And which Linux version are you using?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the eldk mailing list