Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2008 23:15:53 +0200
From:      Tino Engel <goaengel@gmx.net>
To:        freebsd-hardware@freebsd.org
Subject:   USB Quirk attempts in scsi_da.c failing
Message-ID:  <20080701231553.56092a51@gmx.net>

next in thread | raw e-mail | index | archive | help
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: <Samsung Electronics YP-U3, class 0/0, rev 2.00/2.20, addr 2>
on uhub2 da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Samsung YP-U3 1.00> 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



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