From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 2 05:31:55 2008 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 239451065672 for ; Wed, 2 Jul 2008 05:31:55 +0000 (UTC) (envelope-from goaengel@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 836E08FC24 for ; Wed, 2 Jul 2008 05:31:54 +0000 (UTC) (envelope-from goaengel@gmx.net) Received: (qmail invoked by alias); 02 Jul 2008 05:31:52 -0000 Received: from p54988536.dip0.t-ipconnect.de (EHLO localhost) [84.152.133.54] by mail.gmx.net (mp007) with SMTP; 02 Jul 2008 07:31:52 +0200 X-Authenticated: #39106949 X-Provags-ID: V01U2FsdGVkX18rjA5AR08rqJADt3jWrQleXfijuZFerr02Nn3Iof s3QnAq0ezb3CO2 Date: Wed, 2 Jul 2008 07:36:30 +0200 From: Tino Engel To: Tino Engel Message-ID: <20080702073630.48b84df9@gmx.net> In-Reply-To: <20080701231553.56092a51@gmx.net> References: <20080701231553.56092a51@gmx.net> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 Cc: freebsd-hardware@freebsd.org Subject: Re: USB Quirk attempts in scsi_da.c failing X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 05:31:55 -0000 Hi, Okay the problem is solvable, and as I have supposed, I did something wrong doing the quirk. I commented out all synchronize chache stuff in scsi_da.c and voila, I can mount my device. (it just has only /dev/da0) So I will engineer the correct format of the quirk and post a patch then. Regards, Tino On Tue, 1 Jul 2008 23:15:53 +0200 Tino Engel wrote: > Dear freebsd people, > > I am trying to get a new usb mass storage device working. > > But every attmpt fails as follows: > > root:/usr/src# dmesg | tail -6 > umass0: > on uhub2 da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 3855MB (7895552 512 byte sectors: 255H 63S/T 491C) > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi > status == 0x0 > > > The problem is: > elgrande:/home/elgrande/vidz# ls -d /dev/da* > /dev/da0 > > /dev/da0s1 is not there, and so i cannot mount the drive, of course... > > > I tried to add the device to scsi_da.c quirk list, and rbuilt the > kernel. (not world cause /usb/da/atapicam is in my kernel, but i am > trying this currently, to be sure). > > root:/usr/src# diff sys/cam/scsi/scsi_da.c sys/cam/scsi/scsi_da.c.orig > 516,522d515 > < * SAMSUNG YP-U3 > < */ > < {T_DIRECT, SIP_MEDIA_FIXED, "SAMSUNG", "*", "*"}, > < /*quirks*/ DA_Q_NO_SYNC_CACHE > < }, > < { > < /* > > Remark: I also tried > {T_DIRECT, SIP_MEDIA_FIXED, "SAMSUNG", "YP-U3", "*"} > but it made no difference. > > root:/usr/src# usbdevs -v | grep "port 5 addr 2" > port 5 addr 2: high speed, power 500 mA, config 1, YP-U3(0x507c), > Samsung Electronics(0x04e8), rev 2.20 But rebuilding and installing > kernel did not work. > > > > As additional info I can give: > > > root:/usr/src# usbdevs -v | grep "port 5 addr 2" > port 5 addr 2: high speed, power 500 mA, config 1, YP-U3(0x507c), > Samsung Electronics(0x04e8), rev 2.20 > > > > The device is working on several windows pc's at work, as a normal > external disk drive. > > > I would be very happy to receive help, what i can do, to get it > working... (I do not have the money for another new player ;)) > > I really think, that I am doing something wrond with the usb quirk, > because I still get the "synchronize chache failed" errors, and > synchronizing is what i tried to disable... > > Best regards, > Tino > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to > "freebsd-hardware-unsubscribe@freebsd.org"