public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] USB OHCI issue
@ 2007-10-13 17:03 Matthias Fuchs
  2007-10-15  9:32 ` Markus Klotzbücher
  0 siblings, 1 reply; 10+ messages in thread
From: Matthias Fuchs @ 2007-10-13 17:03 UTC (permalink / raw)
  To: u-boot

Hi everybody,

I am currently playing around with U-Boot's (PCI) OHCI driver
on a 405 board. U-Boot's USB stuff is running fine on this board. I can
read files from an USB stick without any problems.

But when I start Linux with a (rather old) 2.4.21 kernel, the still connected USB
stick is not detected as storage device. I have two ways to get USB working 
under this Linux kernel:

a) I do not start the USB subsystem at the U-Boot prompt ('usb start')
b) I disconnect and reconnect the USB stick when Linux is running.

Both options are not really what I want.
Calling 'usb stop' before booting Linux does not help.

I am not sure if this is a Linux or U-Boot issue. Perhaps a newer kernel does not
show this issue, but upgrading is currently not an option:-)

Can anybody verify this behavior with other 2.4.x kernels? 

Regards
Matthias

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [U-Boot-Users] usb ohci issue
@ 2007-12-24  1:57 Wang, Steven
  2007-12-24  8:54 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Wang, Steven @ 2007-12-24  1:57 UTC (permalink / raw)
  To: u-boot

Hi All, 
I am porting the usb ohci host/kbd SW under uboot-1.3.0. I am cannot
make usb keyboard work, the following is the log. Please give me some
suggestion. Thanks in advance!
Best regards,
Steven 

usb_control_msg: request: 0x0, requesttype: 0xA3

value 0x0 index 0x1 length 0x4

INFO: submit_control_msg

DEBUG: SUB URB:[ f19] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000

DEBUG: SUB(rh) URB:[ f1f] dev: 1,ep: 0-I,type:CTRL,len:0/4
stat:0x80000000

INFO: Root-Hub: adr:  1 cmd(8): 000000a3 0000 0001 0004

DEBUG: roothub.a: 0a001203 POTPGT=10 NOCP NPS NDP=3

DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000

DEBUG: roothub.status: 00000000

DEBUG: roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS

DEBUG: RET(rh) URB:[ f44] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x0

usb_ohci.c: cmd(8): a3 00 00 00 01 00 04 00

usb_ohci.c: data(0/4):

portstatus 303, change 10, Low 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

INFO: submit_control_msg

DEBUG: SUB URB:[ fae] 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:[ fb8] 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

INFO: Root-Hub: adr:  1 cmd(8): 00000123 0014 0001 0000

INFO: WR:portstatus[0] 0x100000

DEBUG: roothub.a: 0a001203 POTPGT=10 NOCP NPS NDP=3

DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000

DEBUG: roothub.status: 00000000

DEBUG: roothub.portstatus [0] = 0x00000303 LSDA PPS PES CCS

DEBUG: RET(rh) URB:[ fe4] 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 0x40

INFO: submit_control_msg

DEBUG: SUB URB:[1108] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: SUB URB:[113f] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: %

DEBUG: ***************************************USB-error/status: 5 :
800cf300

DEBUG: ConditionCode 0x5

DEBUG: RET(ctlr) URB:[1187] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x20

usb_new_device: 64 byte descr

usb_control_msg: request: 0x6, requesttype: 0x80

value 0x100 index 0x0 length 0x40

INFO: submit_control_msg

DEBUG: SUB URB:[11f6] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: SUB URB:[122d] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: hc_interrupt: returning..

DEBUG: %

DEBUG: ******************************USB-error/status: 5 : 800cf3c0

DEBUG: ConditionCode 0x5

DEBUG: RET(ctlr) URB:[1278] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x20

usb_new_device: 64 byte descr

usb_control_msg: request: 0x6, requesttype: 0x80

value 0x100 index 0x0 length 0x40

INFO: submit_control_msg

DEBUG: SUB URB:[12e7] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: SUB URB:[131e] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x80000000

DEBUG: hc_interrupt: returning..

 

DEBUG: %

DEBUG: ************************USB-error/status: 5 : 800cf380

DEBUG: ConditionCode 0x5

DEBUG: RET(ctlr) URB:[1369] dev: 0,ep: 0-I,type:CTRL,len:0/64 stat:0x20

usb_new_device: 64 byte descr

hub_port_reset: resetting port 0...

usb_control_msg: request: 0x3, requesttype: 0x23

value 0x4 index 0x1 length 0x0

INFO: submit_control_msg

DEBUG: SUB URB:[146f] 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:[1479] 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

INFO: Root-Hub: adr:  1 cmd(8): 00000323 0004 0001 0000

INFO: WR:portstatus[0]     0x10

DEBUG: roothub.a: 0a001203 POTPGT=10 NOCP NPS NDP=3

DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000

DEBUG: roothub.status: 00000000

DEBUG: roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS

DEBUG: RET(rh) URB:[14a5] 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

INFO: submit_control_msg

DEBUG: SUB URB:[15c8] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x80000000

DEBUG: SUB(rh) URB:[15ce] dev: 1,ep: 0-I,type:CTRL,len:0/4
stat:0x80000000

INFO: Root-Hub: adr:  1 cmd(8): 000000a3 0000 0001 0004

DEBUG: roothub.a: 0a001203 POTPGT=10 NOCP NPS NDP=3

DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000

DEBUG: roothub.status: 00000000

DEBUG: roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS

DEBUG: RET(rh) URB:[15f3] dev: 1,ep: 0-I,type:CTRL,len:0/4 stat:0x0

usb_ohci.c: cmd(8): a3 00 00 00 01 00 04 00

usb_ohci.c: data(0/4):

portstatus 303, change 10, Low 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

INFO: submit_control_msg

DEBUG: SUB URB:[165d] 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:[1667] 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

INFO: Root-Hub: adr:  1 cmd(8): 00000123 0014 0001 0000

INFO: WR:portstatus[0] 0x100000

DEBUG: roothub.a: 0a001203 POTPGT=10 NOCP NPS NDP=3

DEBUG: roothub.b: 00000000 PPCM=0000 DR=0000

DEBUG: roothub.status: 00000000

DEBUG: roothub.portstatus [0] = 0x00000303 LSDA PPS PES CCS

DEBUG: RET(rh) URB:[1693] 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

set address 2

usb_control_msg: request: 0x5, requesttype: 0x0

value 0x2 index 0x0 length 0x0

INFO: submit_control_msg

DEBUG: SUB URB:[1706] dev: 0,ep: 0-O,type:CTRL,len:0/0 stat:0x80000000

usb_ohci.c: cmd(8): 00 05 02 00 00 00 00 00

ERROR: submit_control_message: pipesize for pipe 84000000 is zero

      USB device not accepting new address (error=80000000)

hub: disabling port 1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071224/f9b697ef/attachment.htm 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [U-Boot-Users] USB OHCI issue
@ 2005-11-29 17:19 Mohammed Amine SAYA
  2005-11-29 19:39 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Mohammed Amine SAYA @ 2005-11-29 17:19 UTC (permalink / raw)
  To: u-boot

Hi all,
I am trying to port usb_ohci code (u-boot-1.1.3 version) from 
cpu/arm920t/s3c24x0 to our chip.
I added low_level specific functions and It seems to work correctly with 
a low
speed device (mouse...).
Things get a little more compilcated when I use a disk-on-key.
when I perform a : usb start

U-Boot> usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
Device NOT ready
   Request Sense returned 00 00 00
0 Storage Device(s) found



But when I perform a usb tree I get this :
U-Boot> usb tree

Device Tree:
  1  Hub (12MBit/s, 0mA)
  |   OHCI Root Hub
  |
  +-2  Mass Storage (12MBit/s, 94mA)
       M-Sys DiskOnKey 2730C3409173AB63

or a usb info :

U-Boot> usb info
1: Hub,  USB Revision 1.10
 -  OHCI Root Hub
 - Class: Hub
 - PacketSize: 8  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 0.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Settings 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 2 Interval 255ms

2: Mass Storage,  USB Revision 2.0
 - M-Sys DiskOnKey 2730C3409173AB63
 - Class: (from Interface) Mass Storage
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x08ec  Product 0x0012 Version 2.0
   Configuration: 1
   - Interfaces: 1 Bus Powered 94mA
     Interface: 0
     - Alternate Settings 0, Endpoints: 2
     - Class Mass Storage, Transp. SCSI, Bulk only
     - Endpoint 1 In Bulk MaxPacket 64
     - Endpoint 2 Out Bulk MaxPacket 64


But when I perform a usb storage I get this :

U-Boot> usb storage
No storage devices, perhaps not 'usb start'ed..?



Do you know why all this mess around the disk-on-key ?

Do you know how to solve this ?

Should I try code from cvs instead of that of 1.1.3 version ?

Best regards,

Amine.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-03  5:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-13 17:03 [U-Boot-Users] USB OHCI issue Matthias Fuchs
2007-10-15  9:32 ` Markus Klotzbücher
  -- strict thread matches above, loose matches on Subject: below --
2007-12-24  1:57 [U-Boot-Users] usb ohci issue Wang, Steven
2007-12-24  8:54 ` Wolfgang Denk
2007-12-24  8:57   ` Wang, Steven
2008-01-02  9:41     ` Zhang Wei
2008-01-03  5:40       ` Wang, Steven
2008-01-03  5:47         ` Zhang Wei
2005-11-29 17:19 [U-Boot-Users] USB OHCI issue Mohammed Amine SAYA
2005-11-29 19:39 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox