[U-Boot] At91 mass storage device
E Robertson
e.robertson.svg at gmail.com
Fri Mar 13 20:00:23 CET 2009
On Fri, Mar 13, 2009 at 11:19 AM, E Robertson <e.robertson.svg at gmail.com> wrote:
> On Thu, Mar 12, 2009 at 5:50 PM, Remy Bohmer <linux at bohmer.net> wrote:
> ...
>
> One thing I never understood is that after a power cycle with a usb
> memory stick plugged in,
> I always have to start and restart the usb probe to recognize the
> storage device.
> This happened in a previous version of u-boot (like 1.2.0) and it's
> also the case with the current source.
> Is their a reason for that? Perhaps an inadequate peripheral reset?
>
I decided to do some digging and I see the not responding error reported below.
I added a wait of 2ms to the *dl_reverse_done_list(ohci_t *ohci)
loop. I'm not sure
how this affects everything else.
However, although I did not get the no response error, I did get the
STALL PID error.
(Re)start USB...
USB: INFO: aligned ghcca 27f79c00
scanning bus for devices... INFO: submit_control_msg
INFO: Root-Hub: adr: 0 cmd(8): 00000680 0100 0000 0040
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000500 0001 0000 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0100 0000 0012
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0200 0000 0009
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0200 0000 0019
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000900 0001 0000 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0300 0000 00ff
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0301 0409 00ff
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000006a0 2900 0000 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000006a0 2900 0000 0009
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a0 0000 0000 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0008 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0008 0002 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0010 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0004 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0014 0001 0000
INFO: submit_control_msg
ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to
token (IN) or did
not provide a handshake (OUT) (5)
ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token
(IN) or did
not provide a handshake (OUT) (5)
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0001 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0002 0004
2 USB Device(s) found
scanning bus for storage devices... i=0
i=1
i=2
0 Storage Device(s) found
> usb start
(Re)start USB...
USB: INFO: aligned ghcca 27f79c00
scanning bus for devices... INFO: submit_control_msg
INFO: Root-Hub: adr: 0 cmd(8): 00000680 0100 0000 0040
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000500 0001 0000 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0100 0000 0012
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0200 0000 0009
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0200 0000 0019
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000900 0001 0000 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0300 0000 00ff
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000680 0301 0409 00ff
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000006a0 2900 0000 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000006a0 2900 0000 0009
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a0 0000 0000 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0008 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0008 0002 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0010 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0004 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0014 0001 0000
INFO: submit_control_msg
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000323 0004 0001 0000
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0001 0004
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 00000123 0014 0001 0000
INFO: submit_control_msg
INFO: submit_control_msg
INFO: submit_control_msg
INFO: submit_control_msg
INFO: submit_control_msg
INFO: submit_control_msg
INFO: Root-Hub: adr: 1 cmd(8): 000000a3 0000 0002 0004
2 USB Device(s) found
scanning bus for storage devices... i=0
i=1
USB Mass Storage device detected
Transport: Bulk/Bulk/Bulk
Endpoints In 1 Out 1 Int 0
BBB_reset
INFO: submit_control_msg
ERROR: USB-error: STALL: TD was moved to the Done Queue because the
endpoint returned a STALL PID
(4)
ERROR: USB-error: STALL: TD was moved to the Done Queue because the
endpoint returned a STALL PID (
4)
RESET:stall
address 2
COMMAND phase
INFO: submit_bulk_msg
DATA phase
INFO: submit_bulk_msg
STATUS phase
INFO: submit_bulk_msg
inquiry returns 0
ISO Vers 2, Response Data 2
COMMAND phase
INFO: submit_bulk_msg
STATUS phase
INFO: submit_bulk_msg
COMMAND phase
INFO: submit_bulk_msg
DATA phase
INFO: submit_bulk_msg
STATUS phase
INFO: submit_bulk_msg
Read Capacity returns: 0x7fe70100, 0x20000
Capacity = 0x1e780, blocksz = 0x200
address 2
partype: 0
usb_read: dev 0
COMMAND phase
INFO: submit_bulk_msg
STATUS phase
INFO: submit_bulk_msg
usb_read: dev 0 startblk 0, blccnt 1 buffer 27ed2934
read10: start 0 blocks 1
COMMAND phase
INFO: submit_bulk_msg
DATA phase
INFO: submit_bulk_msg
STATUS phase
INFO: submit_bulk_msg
usb_read: end startblk 1, blccnt 1 buffer 27ed2b34
partype: 2
i=2
1 Storage Device(s) found
More information about the U-Boot
mailing list