主题 : 2416平台、U-BOOT-1.3.4,支持U盘问题。。。 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 30316
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-10-14
最后登录: 2011-08-20
楼主  发表于: 2011-07-15 16:32

 2416平台、U-BOOT-1.3.4,支持U盘问题。。。

          最近接到任务,要在2416平台上u-boot中支持U盘,以便实现从U盘烧写内核和文件系统的功能。
          问题出现,一下子困扰了我半个月了。问题就是:usb host controller 始终不正常工作。相应的DEBUG信息如下:
DEBUG: USB HC reset_hc usb-s3c2460: ctrl = 0x8F ;

(Re)start USB...
USB:  
MISCCR = 0xd0000040

clk_power_base->epll = 0x80200103

clk_power_base->epll_k = 0x0

clk_power_base->sclkcon = 0xffffdfff

gohci.hcca->frame_no = 0x2801

gohci.hcca->pad1 = 0x382

gohci.hcca->done_head = 0x5812000

gohci.irq = 0x0

gohci.disabled = 0x0

gohci.sleeping = 0x0

gohci.regs->revision = 0xea000015

gohci.regs->control = 0xe59ff014

gohci.regs->cmdstatus = 0xe59ff014

gohci.regs->intrstatus = 0xe59ff014

gohci.regs->intrenable = 0xe59ff014

gohci.regs->intrdisable = 0xe59ff014

gohci.regs->hcca = 0xe59ff014

gohci.regs->ed_periodcurrent = 0xe59ff014

gohci.regs->ed_controlhead = 0xc3e00240

gohci.regs->ed_controlcurrent = 0xc3e00260

gohci.regs->donehead = 0xc3e00300

gohci.regs->fminterval = 0xc3e00320

gohci.regs->fmremaining = 0xc3e00360

gohci.regs->fmnumber = 0xdeadbeef

gohci.regs->periodicstart = 0xc3e00000

gohci.intrstatus = 0x0

gohci.hc_control = 0x0
DEBUG: USB HC reset_hc usb-s3c2460: ctrl = 0xC0 ;


Init ... complete start!
DEBUG: OHCI controller usb-s3c2460 state
DEBUG: control: 0x0000008f HCFS=operational IE PLE CBSR=3
DEBUG: cmdstatus: 0x00000000 SOC=0
DEBUG: intrstatus: 0x00000044 RHSC SF
DEBUG: intrenable: 0x00000053 RHSC UE WDH SO
DEBUG: hcca frame #0000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS

gohci.regs.intrenable = 0x53

gohci.regs.intrdisable = 0x53

Init ... complete end!
gohci.hcca->frame_no = 0x0
gohci.hcca->pad1 = 0x0
gohci.hcca->done_head = 0x0
gohci.irq = 0xffffffff
gohci.disabled = 0x0
gohci.sleeping = 0x0
gohci.regs->revision = 0x10
gohci.regs->control = 0x8f
gohci.regs->cmdstatus = 0x0
gohci.regs->intrstatus = 0x44
gohci.regs->hcca = 0xc3e51100
gohci.regs->ed_periodcurrent = 0x0
gohci.regs->ed_controlhead = 0x0
gohci.regs->ed_controlcurrent = 0x0
gohci.regs->donehead = 0x0
gohci.regs->fminterval = 0x27782edf
gohci.regs->fmremaining = 0x2278
gohci.regs->fmnumber = 0x6d
gohci.regs->periodicstart = 0x2a2f
gohci.intrstatus = 0x0
gohci.hc_control = 0x8f
scanning bus for devices... New Device 0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x8
DEBUG: SUB URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:8/8 stat:0x0
usb_ohci.c: cmd(8): 80 06 00 01 00 00 08 00
usb_ohci.c: data(8/8): 12 01 10 01 09 00 00 08
set address 1
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 length 0x0
DEBUG: SUB URB:[   0] dev: 0,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 00 05 01 00 00 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 0,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 00 05 01 00 00 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 0,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 00 05 01 00 00 00 00 00
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x12
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/18 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/18 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:18/18 stat:0x0
usb_ohci.c: cmd(8): 80 06 00 01 00 00 12 00
usb_ohci.c: data(18/18): 12 01 10 01 09 00 00 08 00 00 00 00 00 00 00 01...
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x8
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:8/8 stat:0x0
usb_ohci.c: cmd(8): 80 06 00 02 00 00 08 00
usb_ohci.c: data(8/8): 09 02 19 00 01 01 00 40
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x19
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/25 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/25 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:25/25 stat:0x0
usb_ohci.c: cmd(8): 80 06 00 02 00 00 19 00
usb_ohci.c: data(25/25): 09 02 19 00 01 01 00 40 00 09 04 00 00 01 09 00...
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 2
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 00 09 01 00 00 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 00 09 01 00 00 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 00 09 01 00 00 00 00 00
new device strings: Mfr=0, Product=1, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index 0x0 length 0xFF
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/255 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/255 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:255/255 stat:0x0
usb_ohci.c: cmd(8): 80 06 00 03 00 00 ff 00
usb_ohci.c: data(255/255): 04 03 09 04 24 07 e4 c3 30 f8 ff c3 60 62 e1 c3...
USB device number 1 default language ID 0x409
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index 0x409 length 0xFF
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/255 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/255 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:255/255 stat:0x0
usb_ohci.c: cmd(8): 80 06 01 03 09 04 ff 00
usb_ohci.c: data(255/255): 1c 03 4f 00 48 00 43 00 49 00 20 00 52 00 6f 00...
Manufacturer
Product      OHCI Root Hub
SerialNumber
USB hub found
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a0 06 00 29 00 00 04 00
usb_ohci.c: data(4/4): 09 29 02 10
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x9
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/9 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/9 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:9/9 stat:0x0
usb_ohci.c: cmd(8): a0 06 00 29 00 00 09 00
usb_ohci.c: data(9/9): 09 29 02 10 00 02 00 00 ff
2 ports detected
ganged power switching
standalone hub
no over-current protection
power on to power good time: 4ms
hub controller current requirement: 0mA
port 1 is not removable
port 2 is not removable
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a0 00 00 00 00 00 04 00
usb_ohci.c: data(4/4): 00 00 00 00
get_hub_status returned status 0, change 0
local power source is good
no over-current condition exists
enabling power on all ports
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 08 00 01 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 08 00 01 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 03 08 00 01 00 00 00
port 1 returns 0
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x2 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 08 00 02 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 08 00 02 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 03 08 00 02 00 00 00
port 2 returns 0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a3 00 00 00 01 00 04 00
usb_ohci.c: data(4/4): 01 01 01 00
Port 1 Status 101 Change 1
port 1 connection change
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00010101 CSC PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a3 00 00 00 01 00 04 00
usb_ohci.c: data(4/4): 01 01 01 00
portstatus 101, change 1, High Speed
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 index 0x1 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 10 00 01 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 10 00 01 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00000101 PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 01 10 00 01 00 00 00
hub_port_reset: resetting port 0...
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 04 00 01 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 03 04 00 01 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 03 04 00 01 00 00 00
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a3 00 00 00 01 00 04 00
usb_ohci.c: data(4/4): 03 01 10 00
portstatus 103, change 10, High Speed
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 14 00 01 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 14 00 01 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00000103 PPS PES CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 01 14 00 01 00 00 00
New Device 1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x8
DEBUG: SUB URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
DEBUG: SUB URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:0/8 stat:0x80000000
ohci->hcca->done_head = 0x0
!(m32_swap (ohci->hcca->done_head) & 0x01) = 1





ints = 0x44
stat = 000000ff
ohci->hcca->done_head = 0x0
!(m32_swap (ohci->hcca->done_head) & 0x01) = 1

ERROR: CTL:TIMEOUT
DEBUG: submit_common_msg: TO status ff

DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00000103 PPS PES CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(ctlr) URB:[   0] dev: 0,ep: 0-I,type:CTRL,len:0/8 stat:0x20

      USB device not responding, giving up (status=20)
err = -1
hub: disabling port 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x1 index 0x1 length 0x0
DEBUG: SUB URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 01 00 01 00 00 00
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000
usb_ohci.c: cmd(8): 23 01 01 00 01 00 00 00
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00000101 PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-O,type:CTRL,len:0/0 stat:0x0
usb_ohci.c: cmd(8): 23 01 01 00 01 00 00 00
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x2 length 0x4
DEBUG: SUB URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: SUB(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000
DEBUG: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000
DEBUG: roothub.status: 00000000
DEBUG: roothub.portstatus [0] = 0x00000101 PPS CCS
DEBUG: roothub.portstatus [1] = 0x00000100 PPS
DEBUG: RET(rh) URB:[   0] dev: 1,ep: 0-I,type:CTRL,len:4/4 stat:0x0
usb_ohci.c: cmd(8): a3 00 00 00 02 00 04 00
usb_ohci.c: data(4/4): 00 01 00 00
Port 2 Status 100 Change 0
2 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
SAM2416EDK #

其中,hcca frame始终为0,即HC根本就没有正常工作。使用USB分析仪抓取到的只有起始帧的信息,没有觅信息。u盘得灯约每3秒钟亮一次,一直持续。各USB相关的系统寄存器配置与内核中一样(在内核中可以识别使用U盘)。有哪位朋友知道问题所在或是也有碰到这个问题,可跟帖一起讨论一下,或加我QQ:3359699讨论。
级别: 新手上路
UID: 30316
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-10-14
最后登录: 2011-08-20
1楼  发表于: 2011-07-16 23:03
为什么有人看没人回呢,自己顶下先。。。
级别: 新手上路
UID: 30316
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-10-14
最后登录: 2011-08-20
2楼  发表于: 2011-07-19 09:52
该论坛这么冷清?