Matthew Dharm wrote:
> Okay, something very strange is going on here...
>
> The message "Bulk logical error" should only get printed if at least one of
> the following conditions has been met:
>
> (o) The signature does not equal 0x55425355
> (o) The 'partial' is != 13
> (o) The Stat is > 2
> (o) The 'T' value in the status differs from that of the command
>
Okay, I can see that..
> As far as I can tell from these logs, none of those apply, yet the
> conditional is getting triggered.
>
> What compiler are you using? Is this a redhat installation and you forgot
> to use kgcc?
I'm using a RedHat 6.2 install, upgraded to 2.4 kernel.
[root@aucharn log]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
gcc should be okay.
>
> The only other thing I could suggest is re-parenthising the if() clause, to
> be excessively clear about order of operations. But that shouldn't
> matter...
Tried it with no luck.
I'm also trying things with the check commented out, and it looks like
the first error is in the READ_CAPACITY command:
Jun 13 22:58:57 aucharn kernel: usb-storage: Command READ_CAPACITY (10
bytes)
Jun 13 22:58:57 aucharn kernel: usb-storage: 25 00 00 00 00 00 00 00 00
00 00 00
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk command S 0x43425355 T
0xa Trg 0 LUN 0 L 8 F 128 CL 10
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk command transfer
result=0
Jun 13 22:58:57 aucharn kernel: usb-storage:
usb_stor_transfer_partial(): xfer 8 bytes
Jun 13 22:58:57 aucharn kernel: usb-uhci.c: interrupt, status 3, frame#
714
Jun 13 22:58:57 aucharn kernel: usb-storage: usb_stor_bulk_msg()
returned -32 xferred 0/8
Jun 13 22:58:57 aucharn kernel: usb-storage: clearing endpoint halt for
pipe 0xc0010380
Jun 13 22:58:57 aucharn kernel: usb-storage:
usb_stor_transfer_partial(): unknown error
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk data transfer result
0x2
Jun 13 22:58:57 aucharn kernel: usb-storage: Attempting to get CSW...
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk status result = 0
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk status partial = 13
Jun 13 22:58:57 aucharn kernel: usb-storage: Bulk status Sig 0x55425355
T 0xa R 8 Stat 0x1
Jun 13 22:58:57 aucharn kernel: usb-storage: -- transport indicates
command failure
I'll hack around and see what I can find out...
jf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users