From: Alexander Varnin <fenixk19@mail.ru>
To: u-boot@lists.denx.de
Subject: [U-Boot] USB storage problem with SCSI commands
Date: Sun, 24 Jan 2010 12:45:35 +0300 [thread overview]
Message-ID: <4B5C16BF.5050806@mail.ru> (raw)
Hello. I'm making custom version of u-boot for our device, based on
1.1.6. I can't get usb storage to work. My usb host successfully gets
initiated, finds storage device, and fails to connect it. The problem
probably is on SCSI commands level. In usb storage driver(file
common/usb_storage.c), there is the function usb_stor_get_info(). It
sends different SCSI commands. I got the following things. Inquiry
command passes well. In the source version, there was test_unit_ready
command, that failed every time. I've tried to place it before inquiry,
and i also have tried to place request_sense before them all. These
commands failed, and caused device to disconnect, so no more commands
can be passed. What can be problem, that makes these commands fail? Usb
flash stick works good with Linux.
Here is some debug output.
Test unit ready:
COMMAND phase
cbw.dCBWSignature == 43425355
CBWSIGNATURE==43425355
td->hwBE == 33fffda6 td->hwCBP == 33fffd88 td->hwNextTD == 33e55580
STATUS phase
td->hwBE == 33fffde8 td->hwCBP == 33fffddc td->hwNextTD == 33e555c0
dCSWSignature == 53425355
dCSWTag == 0
dCSWDataResidue == 0
bCSWStatus == 1
ptr[0] 0x55 ptr[1] 0x53 ptr[2] 0x42 ptr[3] 0x53 ptr[4] 0x0 ptr[5]
0x0 ptr[6] 0x0 ptr[7
FAILED
Request sense:
COMMAND phase
td->hwBE == 33fffda6 td->hwCBP == 33fffd88 td->hwNextTD == 33e55580
DATA phase
td->hwBE == 33e525d5 td->hwCBP == 33e525c4 td->hwNextTD == 33e555c0
stat = USB_ST_CRC_ERR;
usb_bulk_msg error status 32
Inquiry:
COMMAND phase
td->hwBE == 33fffdb6 td->hwCBP == 33fffd98 td->hwNextTD == 33e55580
DATA phase
td->hwBE == 33e523d7 td->hwCBP == 33e523b4 td->hwNextTD == 33e555c0
pdata[0] 0x0 pdata[1] 0x80 pdata[2] 0x0 pdata[3] 0x1 pdata[4] 0x1f
pdata[5] 0x0 pdata[
STATUS phase
td->hwBE == 33fffdf8 td->hwCBP == 33fffdec td->hwNextTD == 33e55500
dCSWSignature == 53425355
dCSWTag == 0
dCSWDataResidue == 0
bCSWStatus == 0
ptr[0] 0x55 ptr[1] 0x53 ptr[2] 0x42 ptr[3] 0x53 ptr[4] 0x0 ptr[5]
0x0 ptr[6] 0x0 ptr[7
inquiry returns 0
vendor:
product: silicon-power
revision: PMAP
type == 0
ISO Vers 0, Response Data 1
next reply other threads:[~2010-01-24 9:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-24 9:45 Alexander Varnin [this message]
2010-01-24 10:23 ` [U-Boot] USB storage problem with SCSI commands Remy Bohmer
2010-01-24 12:09 ` Alexander Varnin
2010-01-24 14:20 ` Wolfgang Denk
2010-01-24 14:34 ` Alexander Varnin
2010-01-24 14:39 ` Wolfgang Denk
2010-01-24 14:45 ` Alexander Varnin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B5C16BF.5050806@mail.ru \
--to=fenixk19@mail.ru \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox