Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 09:37:06 -0500
From:      Brian T.Schellenberger <bts@babbleon.org>
To:        <jstocker@tzi.de>
Cc:        freebsd-questions@freebsd.org, freebsd-scsi@freebsd.org
Subject:   Re: USB drive -- problems
Message-ID:  <20020211143707.22A834074@i8k.babbleon.org>
In-Reply-To: <000901c1b2d9$89cac820$fe02010a@twoflower.liebende.de>
References:  <000901c1b2d9$89cac820$fe02010a@twoflower.liebende.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit


Bingo!

That was it!  It's working beautifully now.

ThankyouThankyouThankyouThankyou.

I'll submit the patches to a committer so I don't have to re-patch every time 
I upgrade the source.

PS: Did you submit your patch so it can be integrated into the offiical 
source?

PPS: Anyway know of any particular reason why DA_Q_NO_6_BYTE isn't just the 
default?  Looking at the scsi file it sure seems like a large number of 
devices need this . . . at any rate it seems like it might be cool if i/o 
errors of this nature could be recognized and the feature dynamically turned 
off . . .


PS: Just in case there's somebody on the scsi list who'd like to commit my 
change, my patch is attached.


On Monday 11 February 2002 03:53 am, Jan Stocker wrote:
> Excuse me for the late reply...
>
> src/sys/cam/scsi/scsi_da.c contains quirks for each da device...
>
> ive added one for my digicam:
>
> {
> 	/* MINOLTA DIMAGE 2330 */
> 	{T_DIRECT, SIP_MEDIA_REMOVABLE, "MINOLTA", "DIMAGE 2330*","*"},
> 	/*quirks*/ DA_Q_NO_6_BYTE
> },
>
> so no 6-byte commands will be send to the device... search for a device
> entry similar to your disc controller, add an entry and recompile...
>
> Jan
>
> P.S: Your surname looks quite german....
>
> > -----Original Message-----
> > From: Brian T.Schellenberger [mailto:bts@babbleon.org]
> > Sent: Saturday, February 09, 2002 12:31 AM
> > To: jstocker@tzi.de
> > Subject: Re: USB drive -- problems
> >
> > On Monday 04 February 2002 08:00 am, you wrote:
> > > A maybe better discussion group will be freebsd-scsi.
> > >
> > > Maybe you need to turn off 6-byte commands with a quirk...
> >
> > Hmm . . . perhaps.  But I'm afraid I don't even know what that means.
> > Can you clarify, or tell me what I should be reading that I'm not?
> >
> > > Jan
> > >
> > > > PPS: Why, oh why is there a /dev/ad0 and a /dev/da0?  What do
> > > > they stand for?
> > >
> > > Okay... da is for the DirectAccess drives on USB/SCSI
> > > ad represent the ATA-Drives. So ad0 is the primary-master ATA-IDE
> > > drive.
> > >
> > > > -----Original Message-----
> > > > From: owner-freebsd-hardware@FreeBSD.ORG
> > > > [mailto:owner-freebsd-hardware@FreeBSD.ORG]On Behalf Of Brian
> > > > T.Schellenberger
> > > > Sent: Sunday, February 03, 2002 3:20 PM
> > > > To: freebsd-question@FreeBSD.ORG; freebsd-hardware@FreeBSD.ORG
> > > > Subject: USB drive -- problems
> > > >
> > > >
> > > >
> > > > Ok, with little confidence it would work, since I could find
> >
> > no very good
> >
> > > > info on USB & FreeBSD, and there was no response to my query on
> > > > the subject,
> > > > I decided in a "what the hell" moment to get a USB drive and see what
> > > > happened.
> > > >
> > > > I have a LaCie 80G drive.  It was $250 for 80, USB 2, and if
> >
> > it works it
> >
> > > > should be pretty darn cool.
> > > >
> > > > It is recognized by the kernel, so I thought I was doing
> >
> > pretty well, but
> >
> > > > when I try to actually do anything with it, I run into
> >
> > trouble.  Here are
> >
> > > > some messages from /var/log messages, first hte successful
> >
> > boot stuff and
> >
> > > > then the failure messages:
> > > >
> > > > Feb  3 04:31:21 i8k /kernel: uhci0: <Intel 82801BA/BAM (ICH2) USB
> > > > controller
> > > > USB-A> port 0xbce0-0xbcff irq 11 at device 31.2 on pci0
> > > > Feb  3 04:31:21 i8k /kernel: usb0: <Intel 82801BA/BAM (ICH2) USB
> > > > controller
> > > > USB-A> on uhci0
> > > > Feb  3 04:31:21 i8k /kernel: usb0: USB revision 1.0
> > > > Feb  3 04:31:21 i8k /kernel: uhub0: Intel UHCI root hub,
> >
> > class 9/0, rev
> >
> > > > 1.00/1.00, addr 1
> > > > Feb  3 04:31:21 i8k /kernel: uhub0: 2 ports with 2 removable, self
> > > > powered Feb  3 04:31:21 i8k /kernel: umass0: LaCie LaCie
> >
> > StudioDrive USB2
> >
> > > > ,
> > > > rev 2.00/10.06, addr 2
> > > >
> > > >
> > > > Feb  3 04:31:21 i8k /kernel: da0 at umass-sim0 bus 0 target 0 lun 0
> > > > Feb  3 04:31:22 i8k /kernel: da0: <Maxtor 4 D080H4 DAH0> Fixed
> > > > Direct Access
> > > > SCSI-0 device
> > > > Feb  3 04:31:22 i8k /kernel: da0: 650KB/s transfers
> > > > Feb  3 04:31:22 i8k /kernel: da0: 78167MB (160086528 512 byte
> > > > sectors: 64H
> > > > 32S/T 12631C)
> > > >
> > > >
> > > > Feb  3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): READ(06).
> > > > CDB: 8 0 0 0 1
> > > > 0
> > > > Feb  3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
> > > > REQUEST asc:21,0
> > > > Feb  3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): Logical
> > > > block address
> > > > out of range
> > > > Feb  3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): READ(06).
> > > > CDB: 8 0 0 0 1
> > > > 0
> > > > Feb  3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): ILLEGAL
> > > > REQUEST asc:21,0
> > > > Feb  3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): Logical
> > > > block address
> > > > out of range
> > > >
> > > > The set of error messages above were returned when I did a simple
> > > >
> > > > dd if=/dev/da0
> > > >
> > > >
> > > > PS: I might not recieve mail for a couple days so don't be
> >
> > surprised if
> >
> > > > responses are a little slow.  Based on previous response to USB
> > > > queries on
> > > > the questions list I doubt that excessive responses will be a big
> > > > problem.
> > > > I'm including the questions list here more as an "FYI" sort of thing.
> > > >
> > > >  It's darn confusing and it makes me nervous as heck doing
> > > > "dangerous" operations where I am one swapped letter pair away from
> > > > wiping out my primary
> > > > drive!
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
> > > > Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
> > > >                                 ME -->  http://www.babbleon.org
> > > > http://www.eff.org   <-- GOOD GUYS -->
> > > > http://www.programming-freedom.org
> > > >
> > > >
> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > with "unsubscribe freebsd-hardware" in the body of the message
> >
> > --
> > Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
> > Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
> >                                 ME -->  http://www.babbleon.org
> > http://www.eff.org   <-- GOOD GUYS -->
>
> http://www.programming-freedom.org

-- 
Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
                                ME -->  http://www.babbleon.org
http://www.eff.org   <-- GOOD GUYS -->  http://www.programming-freedom.org 

--------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="sys_cam_scsi_scsi_da.c.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="sys_cam_scsi_scsi_da.c.patch"

*** scsi_da.c.org	Mon Feb 11 07:18:39 2002
--- scsi_da.c	Mon Feb 11 07:23:18 2002
***************
*** 255,265 ****
  		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "*"},
  		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
  	},
!         {
  		/*
  		 * Maxtor 3000LE USB Drive
  		 */
  		{T_DIRECT, SIP_MEDIA_FIXED, "MAXTOR*", "K040H2*", "*"},
  		/*quirks*/ DA_Q_NO_6_BYTE
  	},
  	{
--- 255,272 ----
  		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "*"},
  		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
  	},
!     {
  		/*
  		 * Maxtor 3000LE USB Drive
  		 */
  		{T_DIRECT, SIP_MEDIA_FIXED, "MAXTOR*", "K040H2*", "*"},
+ 		/*quirks*/ DA_Q_NO_6_BYTE
+ 	},
+     {
+ 		/*
+ 		 * LaCie USB drive, among others
+ 		 */
+ 		{T_DIRECT, SIP_MEDIA_FIXED, "Maxtor*", "D080H4*", "*"},
  		/*quirks*/ DA_Q_NO_6_BYTE
  	},
  	{

--------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020211143707.22A834074>