[ELDK] USB on Kilauea

Dave Rensberger David.Rensberger at ambientcorp.com
Thu Aug 14 21:00:39 CEST 2008


With the latest 2.6.26 kernel from the git repository and the ID jumper
connected and the host/device jumper connected, I was able to get the
Kilauea to boot up in host mode.   It seems to recognize that there's a
flash storage device present, but the dwc driver still crashes with a
kernel oops after it detects the device (see output below).

--Dave

usb 1-1: new full speed USB device using dwc_otg and address 2
Unable to handle kernel paging request for data at address 0x00000000
Faulting instruction address: 0xc01c2fd4
Oops: Kernel access of bad area, sig: 11 [#1]
Kilauea
Modules linked in:
NIP: c01c2fd4 LR: c01c2dd4 CTR: 00000000
REGS: cf8e1c80 TRAP: 0300   Not tainted  (2.6.26)
MSR: 00021030 <ME,IR,DR>  CR: 48004028  XER: 2000005f
DEAR: 00000000, ESR: 00000000
TASK = cf8a78e0[56] 'khubd' THREAD: cf8e0000
GPR00: 00000000 cf8e1d30 cf8a78e0 cf893440 00000000 00000000 cf893464
00000000
GPR08: 00000040 00000000 00000040 cf9ef000 48004028 00000000 00000002
c02e39e4
GPR16: c034b360 c037d194 00000032 00000000 80000080 cf9ef0ec cf9ef060
00000000
GPR24: 00000002 80000080 00000000 cf9e78c0 cf893940 cf9e78c0 cf97d400
cf893440
NIP [c01c2fd4] dwc_otg_hcd_qh_init+0x22c/0x264
LR [c01c2dd4] dwc_otg_hcd_qh_init+0x2c/0x264
Call Trace:
[cf8e1d30] [c0004ca0] do_softirq+0x58/0x5c (unreliable)
[cf8e1d50] [c01c3054] dwc_otg_hcd_qh_create+0x48/0x60
[cf8e1d70] [c01c3130] dwc_otg_hcd_qtd_add+0xc4/0xd8
[cf8e1d90] [c01c0238] dwc_otg_hcd_urb_enqueue+0x68/0xa0
[cf8e1db0] [c018cb64] usb_hcd_submit_urb+0x1ec/0x95c
[cf8e1e70] [c018d550] usb_submit_urb+0x120/0x274
[cf8e1e80] [c018e098] usb_start_wait_urb+0x44/0xd8
[cf8e1eb0] [c018e34c] usb_control_msg+0xe8/0x114
[cf8e1ef0] [c0188b4c] hub_port_init+0x3b0/0x5d8
[cf8e1f50] [c0189d18] hub_thread+0x3f8/0xca8
[cf8e1fd0] [c00354e8] kthread+0x48/0x84
[cf8e1ff0] [c000db38] kernel_thread+0x44/0x60
Instruction dump:
b01f001e b13f001a b01f001c 80010024 bba10014 7c0803a6 38210020 4e800020
812b001c 2f890000 41befebc 81290000 <80090000> 2f800001 41befeac
38000001
---[ end trace 5c98b9589f8de8a8 ]---

-----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